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,828
|
public String toString() { return toString(VocabularyImpl.EMPTY_VOCABULARY); }
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"toString",
"(",
"VocabularyImpl",
".",
"EMPTY_VOCABULARY",
")",
";",
"}"
] |
public override String ToString() { return ToString(Vocabulary.EmptyVocabulary); }
|
train
| false
|
3,829
|
public void updateFormulasAfterCellShift(FormulaShifter shifter, int externSheetIndex) {for (int i = 0; i < _cfHeaders.size(); i++) {CFRecordsAggregate subAgg = _cfHeaders.get(i);boolean shouldKeep = subAgg.updateFormulasAfterCellShift(shifter, externSheetIndex);if (!shouldKeep) {_cfHeaders.remove(i);i--;}}}
|
[
"public",
"void",
"updateFormulasAfterCellShift",
"(",
"FormulaShifter",
"shifter",
",",
"int",
"externSheetIndex",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"_cfHeaders",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"CFRecordsAggregate",
"subAgg",
"=",
"_cfHeaders",
".",
"get",
"(",
"i",
")",
";",
"boolean",
"shouldKeep",
"=",
"subAgg",
".",
"updateFormulasAfterCellShift",
"(",
"shifter",
",",
"externSheetIndex",
")",
";",
"if",
"(",
"!",
"shouldKeep",
")",
"{",
"_cfHeaders",
".",
"remove",
"(",
"i",
")",
";",
"i",
"--",
";",
"}",
"}",
"}"
] |
public void UpdateFormulasAfterCellShift(FormulaShifter shifter, int externSheetIndex){for (int i = 0; i < _cfHeaders.Count; i++){CFRecordsAggregate subAgg = (CFRecordsAggregate)_cfHeaders[i];bool shouldKeep = subAgg.UpdateFormulasAfterCellShift(shifter, externSheetIndex);if (!shouldKeep){_cfHeaders.RemoveAt(i);i--;}}}
|
train
| false
|
3,830
|
public void insertCell(CellValueRecordInterface cvRec) {_valuesAgg.insertCell(cvRec);}
|
[
"public",
"void",
"insertCell",
"(",
"CellValueRecordInterface",
"cvRec",
")",
"{",
"_valuesAgg",
".",
"insertCell",
"(",
"cvRec",
")",
";",
"}"
] |
public void InsertCell(CellValueRecordInterface cvRec){_valuesAgg.InsertCell(cvRec);}
|
train
| false
|
3,831
|
public ShingleFilter create(TokenStream input) {ShingleFilter r = new ShingleFilter(input, minShingleSize, maxShingleSize);r.setOutputUnigrams(outputUnigrams);r.setOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles);r.setTokenSeparator(tokenSeparator);r.setFillerToken(fillerToken);return r;}
|
[
"public",
"ShingleFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"ShingleFilter",
"r",
"=",
"new",
"ShingleFilter",
"(",
"input",
",",
"minShingleSize",
",",
"maxShingleSize",
")",
";",
"r",
".",
"setOutputUnigrams",
"(",
"outputUnigrams",
")",
";",
"r",
".",
"setOutputUnigramsIfNoShingles",
"(",
"outputUnigramsIfNoShingles",
")",
";",
"r",
".",
"setTokenSeparator",
"(",
"tokenSeparator",
")",
";",
"r",
".",
"setFillerToken",
"(",
"fillerToken",
")",
";",
"return",
"r",
";",
"}"
] |
public override TokenStream Create(TokenStream input){ShingleFilter r = new ShingleFilter(input, minShingleSize, maxShingleSize);r.SetOutputUnigrams(outputUnigrams);r.SetOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles);r.SetTokenSeparator(tokenSeparator);r.SetFillerToken(fillerToken);return r;}
|
train
| false
|
3,833
|
public ReplaceRouteTableAssociationResult replaceRouteTableAssociation(ReplaceRouteTableAssociationRequest request) {request = beforeClientExecution(request);return executeReplaceRouteTableAssociation(request);}
|
[
"public",
"ReplaceRouteTableAssociationResult",
"replaceRouteTableAssociation",
"(",
"ReplaceRouteTableAssociationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeReplaceRouteTableAssociation",
"(",
"request",
")",
";",
"}"
] |
public virtual ReplaceRouteTableAssociationResponse ReplaceRouteTableAssociation(ReplaceRouteTableAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceRouteTableAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceRouteTableAssociationResponseUnmarshaller.Instance;return Invoke<ReplaceRouteTableAssociationResponse>(request, options);}
|
train
| true
|
3,834
|
public void setObjectIdFromRaw(byte[] bs, int p) {final int n = Constants.OBJECT_ID_LENGTH;System.arraycopy(bs, p, idBuffer(), idOffset(), n);}
|
[
"public",
"void",
"setObjectIdFromRaw",
"(",
"byte",
"[",
"]",
"bs",
",",
"int",
"p",
")",
"{",
"final",
"int",
"n",
"=",
"Constants",
".",
"OBJECT_ID_LENGTH",
";",
"System",
".",
"arraycopy",
"(",
"bs",
",",
"p",
",",
"idBuffer",
"(",
")",
",",
"idOffset",
"(",
")",
",",
"n",
")",
";",
"}"
] |
public virtual void SetObjectIdFromRaw(byte[] bs, int p){int n = Constants.OBJECT_ID_LENGTH;System.Array.Copy(bs, p, IdBuffer, IdOffset, n);}
|
train
| false
|
3,835
|
public ListTablesResult listTables(Integer limit) {return listTables(new ListTablesRequest().withLimit(limit));}
|
[
"public",
"ListTablesResult",
"listTables",
"(",
"Integer",
"limit",
")",
"{",
"return",
"listTables",
"(",
"new",
"ListTablesRequest",
"(",
")",
".",
"withLimit",
"(",
"limit",
")",
")",
";",
"}"
] |
public virtual ListTablesResponse ListTables(int limit){var request = new ListTablesRequest();request.Limit = limit;return ListTables(request);}
|
train
| false
|
3,836
|
public DeleteDeviceGroupRequest() {super("LinkFace", "2018-07-20", "DeleteDeviceGroup");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
|
[
"public",
"DeleteDeviceGroupRequest",
"(",
")",
"{",
"super",
"(",
"\"LinkFace\"",
",",
"\"2018-07-20\"",
",",
"\"DeleteDeviceGroup\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public DeleteDeviceGroupRequest(): base("LinkFace", "2018-07-20", "DeleteDeviceGroup"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
train
| false
|
3,837
|
public void addRecords(RecordStream rs) {while (true) {if (!readARecord(rs)) {break;}}}
|
[
"public",
"void",
"addRecords",
"(",
"RecordStream",
"rs",
")",
"{",
"while",
"(",
"true",
")",
"{",
"if",
"(",
"!",
"readARecord",
"(",
"rs",
")",
")",
"{",
"break",
";",
"}",
"}",
"}"
] |
public void AddRecords(RecordStream rs){while (true){if (!ReadARecord(rs)){break;}}}
|
train
| false
|
3,838
|
public static Collection<String> getSupportedFunctionNames() {Collection<String> lst = new TreeSet<>();for (int i = 0; i < functions.length; i++) {Function func = functions[i];FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByIndex(i);if (func != null && !(func instanceof NotImplementedFunction)) {lst.add(metaData.getName());}}lst.add("INDIRECT"); return Collections.unmodifiableCollection(lst);}
|
[
"public",
"static",
"Collection",
"<",
"String",
">",
"getSupportedFunctionNames",
"(",
")",
"{",
"Collection",
"<",
"String",
">",
"lst",
"=",
"new",
"TreeSet",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"functions",
".",
"length",
";",
"i",
"++",
")",
"{",
"Function",
"func",
"=",
"functions",
"[",
"i",
"]",
";",
"FunctionMetadata",
"metaData",
"=",
"FunctionMetadataRegistry",
".",
"getFunctionByIndex",
"(",
"i",
")",
";",
"if",
"(",
"func",
"!=",
"null",
"&&",
"!",
"(",
"func",
"instanceof",
"NotImplementedFunction",
")",
")",
"{",
"lst",
".",
"add",
"(",
"metaData",
".",
"getName",
"(",
")",
")",
";",
"}",
"}",
"lst",
".",
"add",
"(",
"\"INDIRECT\"",
")",
";",
"return",
"Collections",
".",
"unmodifiableCollection",
"(",
"lst",
")",
";",
"}"
] |
public static ReadOnlyCollection<String> GetSupportedFunctionNames(){List<String> lst = new List<String>();for (int i = 0; i < functions.Length; i++){Function func = functions[i];FunctionMetadata metaData = FunctionMetadataRegistry.GetFunctionByIndex(i);if (func != null && !(func is NotImplementedFunction)){lst.Add(metaData.Name);}}lst.Add("INDIRECT"); return lst.AsReadOnly(); }
|
train
| false
|
3,839
|
public PendingTaskCount countPendingActivityTasks(CountPendingActivityTasksRequest request) {request = beforeClientExecution(request);return executeCountPendingActivityTasks(request);}
|
[
"public",
"PendingTaskCount",
"countPendingActivityTasks",
"(",
"CountPendingActivityTasksRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCountPendingActivityTasks",
"(",
"request",
")",
";",
"}"
] |
public virtual CountPendingActivityTasksResponse CountPendingActivityTasks(CountPendingActivityTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = CountPendingActivityTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = CountPendingActivityTasksResponseUnmarshaller.Instance;return Invoke<CountPendingActivityTasksResponse>(request, options);}
|
train
| true
|
3,840
|
public List<SegToken> process(String sentence) {SegGraph segGraph = createSegGraph(sentence);BiSegGraph biSegGraph = new BiSegGraph(segGraph);List<SegToken> shortPath = biSegGraph.getShortPath();return shortPath;}
|
[
"public",
"List",
"<",
"SegToken",
">",
"process",
"(",
"String",
"sentence",
")",
"{",
"SegGraph",
"segGraph",
"=",
"createSegGraph",
"(",
"sentence",
")",
";",
"BiSegGraph",
"biSegGraph",
"=",
"new",
"BiSegGraph",
"(",
"segGraph",
")",
";",
"List",
"<",
"SegToken",
">",
"shortPath",
"=",
"biSegGraph",
".",
"getShortPath",
"(",
")",
";",
"return",
"shortPath",
";",
"}"
] |
public virtual IList<SegToken> Process(string sentence){SegGraph segGraph = CreateSegGraph(sentence);BiSegGraph biSegGraph = new BiSegGraph(segGraph);IList<SegToken> shortPath = biSegGraph.GetShortPath();return shortPath;}
|
train
| false
|
3,841
|
public Area3DPtg(AreaReference arearef, int externIdx) {super(arearef);setExternSheetIndex(externIdx);}
|
[
"public",
"Area3DPtg",
"(",
"AreaReference",
"arearef",
",",
"int",
"externIdx",
")",
"{",
"super",
"(",
"arearef",
")",
";",
"setExternSheetIndex",
"(",
"externIdx",
")",
";",
"}"
] |
public Area3DPtg(AreaReference arearef, int externIdx):base(arearef){ExternSheetIndex=(externIdx);}
|
train
| false
|
3,842
|
public EnableRuleResult enableRule(EnableRuleRequest request) {request = beforeClientExecution(request);return executeEnableRule(request);}
|
[
"public",
"EnableRuleResult",
"enableRule",
"(",
"EnableRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeEnableRule",
"(",
"request",
")",
";",
"}"
] |
public virtual EnableRuleResponse EnableRule(EnableRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableRuleResponseUnmarshaller.Instance;return Invoke<EnableRuleResponse>(request, options);}
|
train
| true
|
3,844
|
public boolean isExpectDataAfterPackFooter() {return expectDataAfterPackFooter;}
|
[
"public",
"boolean",
"isExpectDataAfterPackFooter",
"(",
")",
"{",
"return",
"expectDataAfterPackFooter",
";",
"}"
] |
public virtual bool IsExpectDataAfterPackFooter(){return expectDataAfterPackFooter;}
|
train
| false
|
3,845
|
public ListIncomingTypedLinksResult listIncomingTypedLinks(ListIncomingTypedLinksRequest request) {request = beforeClientExecution(request);return executeListIncomingTypedLinks(request);}
|
[
"public",
"ListIncomingTypedLinksResult",
"listIncomingTypedLinks",
"(",
"ListIncomingTypedLinksRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListIncomingTypedLinks",
"(",
"request",
")",
";",
"}"
] |
public virtual ListIncomingTypedLinksResponse ListIncomingTypedLinks(ListIncomingTypedLinksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIncomingTypedLinksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIncomingTypedLinksResponseUnmarshaller.Instance;return Invoke<ListIncomingTypedLinksResponse>(request, options);}
|
train
| true
|
3,846
|
public void removeRevNumber() {remove1stProperty(PropertyIDMap.PID_REVNUMBER);}
|
[
"public",
"void",
"removeRevNumber",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_REVNUMBER",
")",
";",
"}"
] |
public void RemoveRevNumber(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_REVNUMBER);}
|
train
| false
|
3,847
|
public DeleteMonitoringScheduleResult deleteMonitoringSchedule(DeleteMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteMonitoringSchedule(request);}
|
[
"public",
"DeleteMonitoringScheduleResult",
"deleteMonitoringSchedule",
"(",
"DeleteMonitoringScheduleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteMonitoringSchedule",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteMonitoringScheduleResponse DeleteMonitoringSchedule(DeleteMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMonitoringScheduleResponseUnmarshaller.Instance;return Invoke<DeleteMonitoringScheduleResponse>(request, options);}
|
train
| false
|
3,848
|
public synchronized boolean put(FacetLabel categoryPath, int ordinal) {boolean ret = cache.put(categoryPath, ordinal);if (ret) {cache.makeRoomLRU();}return ret;}
|
[
"public",
"synchronized",
"boolean",
"put",
"(",
"FacetLabel",
"categoryPath",
",",
"int",
"ordinal",
")",
"{",
"boolean",
"ret",
"=",
"cache",
".",
"put",
"(",
"categoryPath",
",",
"ordinal",
")",
";",
"if",
"(",
"ret",
")",
"{",
"cache",
".",
"makeRoomLRU",
"(",
")",
";",
"}",
"return",
"ret",
";",
"}"
] |
public virtual bool Put(FacetLabel categoryPath, int ordinal){lock (this){bool ret = cache.Put(categoryPath, ordinal);if (ret){cache.MakeRoomLRU();}return ret;}}
|
train
| false
|
3,849
|
public void pushNewRecursionContext(ParserRuleContext localctx, int state, int ruleIndex) {ParserRuleContext previous = _ctx;previous.parent = localctx;previous.invokingState = state;previous.stop = _input.LT(-1);_ctx = localctx;_ctx.start = previous.start;if (_buildParseTrees) {_ctx.addChild(previous);}if ( _parseListeners != null ) {triggerEnterRuleEvent(); }}
|
[
"public",
"void",
"pushNewRecursionContext",
"(",
"ParserRuleContext",
"localctx",
",",
"int",
"state",
",",
"int",
"ruleIndex",
")",
"{",
"ParserRuleContext",
"previous",
"=",
"_ctx",
";",
"previous",
".",
"parent",
"=",
"localctx",
";",
"previous",
".",
"invokingState",
"=",
"state",
";",
"previous",
".",
"stop",
"=",
"_input",
".",
"LT",
"(",
"-",
"1",
")",
";",
"_ctx",
"=",
"localctx",
";",
"_ctx",
".",
"start",
"=",
"previous",
".",
"start",
";",
"if",
"(",
"_buildParseTrees",
")",
"{",
"_ctx",
".",
"addChild",
"(",
"previous",
")",
";",
"}",
"if",
"(",
"_parseListeners",
"!=",
"null",
")",
"{",
"triggerEnterRuleEvent",
"(",
")",
";",
"}",
"}"
] |
public virtual void PushNewRecursionContext(ParserRuleContext localctx, int state, int ruleIndex){ParserRuleContext previous = _ctx;previous.Parent = localctx;previous.invokingState = state;previous.Stop = _input.LT(-1);_ctx = localctx;_ctx.Start = previous.Start;if (_buildParseTrees){_ctx.AddChild(previous);}if (_parseListeners != null){TriggerEnterRuleEvent();}}
|
train
| false
|
3,850
|
public Writer() {output = new ByteArrayOutputStream();}
|
[
"public",
"Writer",
"(",
")",
"{",
"output",
"=",
"new",
"ByteArrayOutputStream",
"(",
")",
";",
"}"
] |
protected internal Writer(){@lock = this;}
|
train
| false
|
3,851
|
public String getSignerType() {return null;}
|
[
"public",
"String",
"getSignerType",
"(",
")",
"{",
"return",
"null",
";",
"}"
] |
public override string GetSignerType(){return null;}
|
train
| false
|
3,852
|
public void add(Ptg token) {if (token == null) {throw new IllegalArgumentException("token must not be null");}_ptgs[_offset] = token;_offset++;}
|
[
"public",
"void",
"add",
"(",
"Ptg",
"token",
")",
"{",
"if",
"(",
"token",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"token must not be null\"",
")",
";",
"}",
"_ptgs",
"[",
"_offset",
"]",
"=",
"token",
";",
"_offset",
"++",
";",
"}"
] |
public void Add(Ptg token){if (token == null){throw new ArgumentException("token must not be null");}_ptgs[_offset] = token;_offset++;}
|
train
| false
|
3,853
|
public Repository build() throws IOException {FileRepository repo = new FileRepository(setup());if (isMustExist() && !repo.getObjectDatabase().exists())throw new RepositoryNotFoundException(getGitDir());return repo;}
|
[
"public",
"Repository",
"build",
"(",
")",
"throws",
"IOException",
"{",
"FileRepository",
"repo",
"=",
"new",
"FileRepository",
"(",
"setup",
"(",
")",
")",
";",
"if",
"(",
"isMustExist",
"(",
")",
"&&",
"!",
"repo",
".",
"getObjectDatabase",
"(",
")",
".",
"exists",
"(",
")",
")",
"throw",
"new",
"RepositoryNotFoundException",
"(",
"getGitDir",
"(",
")",
")",
";",
"return",
"repo",
";",
"}"
] |
public override FileRepository Build(){FileRepository repo = new FileRepository(Setup());if (IsMustExist() && !((ObjectDirectory)repo.ObjectDatabase).Exists()){throw new RepositoryNotFoundException(GetGitDir());}return repo;}
|
train
| false
|
3,854
|
public List<WeightedFragInfo> getWeightedFragInfoList( List<WeightedFragInfo> src ) {Collections.sort( src, new ScoreComparator() );return src;}
|
[
"public",
"List",
"<",
"WeightedFragInfo",
">",
"getWeightedFragInfoList",
"(",
"List",
"<",
"WeightedFragInfo",
">",
"src",
")",
"{",
"Collections",
".",
"sort",
"(",
"src",
",",
"new",
"ScoreComparator",
"(",
")",
")",
";",
"return",
"src",
";",
"}"
] |
public override IList<WeightedFragInfo> GetWeightedFragInfoList(IList<WeightedFragInfo> src){CollectionUtil.TimSort(src, new ScoreComparer());return src;}
|
train
| false
|
3,855
|
public String toString() {return "epsilon";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"epsilon\"",
";",
"}"
] |
public override string ToString(){return "epsilon";}
|
train
| false
|
3,856
|
public DescribeDBLogFilesResult describeDBLogFiles(DescribeDBLogFilesRequest request) {request = beforeClientExecution(request);return executeDescribeDBLogFiles(request);}
|
[
"public",
"DescribeDBLogFilesResult",
"describeDBLogFiles",
"(",
"DescribeDBLogFilesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDBLogFiles",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDBLogFilesResponse DescribeDBLogFiles(DescribeDBLogFilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBLogFilesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBLogFilesResponseUnmarshaller.Instance;return Invoke<DescribeDBLogFilesResponse>(request, options);}
|
train
| true
|
3,857
|
public NoteRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_col = in.readShort();field_3_flags = in.readShort();field_4_shapeid = in.readUShort();int length = in.readShort();field_5_hasMultibyte = in.readByte() != 0x00;if (field_5_hasMultibyte) {field_6_author = StringUtil.readUnicodeLE(in, length);} else {field_6_author = StringUtil.readCompressedUnicode(in, length);}if (in.available() == 1) {field_7_padding = Byte.valueOf(in.readByte());} else if (in.available() == 2 && length == 0) {field_7_padding = Byte.valueOf(in.readByte());in.readByte();}}
|
[
"public",
"NoteRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_row",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"field_2_col",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_flags",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_4_shapeid",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"int",
"length",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_5_hasMultibyte",
"=",
"in",
".",
"readByte",
"(",
")",
"!=",
"0x00",
";",
"if",
"(",
"field_5_hasMultibyte",
")",
"{",
"field_6_author",
"=",
"StringUtil",
".",
"readUnicodeLE",
"(",
"in",
",",
"length",
")",
";",
"}",
"else",
"{",
"field_6_author",
"=",
"StringUtil",
".",
"readCompressedUnicode",
"(",
"in",
",",
"length",
")",
";",
"}",
"if",
"(",
"in",
".",
"available",
"(",
")",
"==",
"1",
")",
"{",
"field_7_padding",
"=",
"Byte",
".",
"valueOf",
"(",
"in",
".",
"readByte",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"in",
".",
"available",
"(",
")",
"==",
"2",
"&&",
"length",
"==",
"0",
")",
"{",
"field_7_padding",
"=",
"Byte",
".",
"valueOf",
"(",
"in",
".",
"readByte",
"(",
")",
")",
";",
"in",
".",
"readByte",
"(",
")",
";",
"}",
"}"
] |
public NoteRecord(RecordInputStream in1){field_1_row = in1.ReadShort();field_2_col = in1.ReadUShort();field_3_flags = in1.ReadShort();field_4_shapeid = in1.ReadUShort();int length = in1.ReadShort();field_5_hasMultibyte = in1.ReadByte() != 0x00;if (field_5_hasMultibyte) {field_6_author = StringUtil.ReadUnicodeLE(in1, length);} else {field_6_author = StringUtil.ReadCompressedUnicode(in1, length);}if (in1.Available() == 1) {field_7_padding = (byte)in1.ReadByte();}else if (in1.Available() == 2 && length == 0){field_7_padding = (byte)in1.ReadByte();in1.ReadByte();}}
|
train
| false
|
3,858
|
public CherryPickCommand setOurCommitName(String ourCommitName) {this.ourCommitName = ourCommitName;return this;}
|
[
"public",
"CherryPickCommand",
"setOurCommitName",
"(",
"String",
"ourCommitName",
")",
"{",
"this",
".",
"ourCommitName",
"=",
"ourCommitName",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.CherryPickCommand SetOurCommitName(string ourCommitName){this.ourCommitName = ourCommitName;return this;}
|
train
| false
|
3,859
|
public GetCloudFormationStackRecordsResult getCloudFormationStackRecords(GetCloudFormationStackRecordsRequest request) {request = beforeClientExecution(request);return executeGetCloudFormationStackRecords(request);}
|
[
"public",
"GetCloudFormationStackRecordsResult",
"getCloudFormationStackRecords",
"(",
"GetCloudFormationStackRecordsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCloudFormationStackRecords",
"(",
"request",
")",
";",
"}"
] |
public virtual GetCloudFormationStackRecordsResponse GetCloudFormationStackRecords(GetCloudFormationStackRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCloudFormationStackRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCloudFormationStackRecordsResponseUnmarshaller.Instance;return Invoke<GetCloudFormationStackRecordsResponse>(request, options);}
|
train
| true
|
3,860
|
public XPathTokenAnywhereElement(String tokenName, int tokenType) {super(tokenName);this.tokenType = tokenType;}
|
[
"public",
"XPathTokenAnywhereElement",
"(",
"String",
"tokenName",
",",
"int",
"tokenType",
")",
"{",
"super",
"(",
"tokenName",
")",
";",
"this",
".",
"tokenType",
"=",
"tokenType",
";",
"}"
] |
public XPathTokenAnywhereElement(string tokenName, int tokenType): base(tokenName){this.tokenType = tokenType;}
|
train
| false
|
3,861
|
public boolean isExpired() {long now = System.currentTimeMillis();return now >= expiration - refreshIntervalInMillSeconds;}
|
[
"public",
"boolean",
"isExpired",
"(",
")",
"{",
"long",
"now",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"return",
"now",
">=",
"expiration",
"-",
"refreshIntervalInMillSeconds",
";",
"}"
] |
public bool IsExpired(){return refreshIntervalInMillSeconds * 1000 * 10 >= RemainTicks();}
|
train
| false
|
3,862
|
public ListDetectorsResult listDetectors(ListDetectorsRequest request) {request = beforeClientExecution(request);return executeListDetectors(request);}
|
[
"public",
"ListDetectorsResult",
"listDetectors",
"(",
"ListDetectorsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDetectors",
"(",
"request",
")",
";",
"}"
] |
public virtual ListDetectorsResponse ListDetectors(ListDetectorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDetectorsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDetectorsResponseUnmarshaller.Instance;return Invoke<ListDetectorsResponse>(request, options);}
|
train
| true
|
3,863
|
public void add(int index, T element) {if (index == size) {add(element);} else if (index < 0 || size < index) {throw new IndexOutOfBoundsException(String.valueOf(index));} else {add(null); for (int oldIdx = size - 2; index <= oldIdx; oldIdx--)set(oldIdx + 1, get(oldIdx));set(index, element);}}
|
[
"public",
"void",
"add",
"(",
"int",
"index",
",",
"T",
"element",
")",
"{",
"if",
"(",
"index",
"==",
"size",
")",
"{",
"add",
"(",
"element",
")",
";",
"}",
"else",
"if",
"(",
"index",
"<",
"0",
"||",
"size",
"<",
"index",
")",
"{",
"throw",
"new",
"IndexOutOfBoundsException",
"(",
"String",
".",
"valueOf",
"(",
"index",
")",
")",
";",
"}",
"else",
"{",
"add",
"(",
"null",
")",
";",
"for",
"(",
"int",
"oldIdx",
"=",
"size",
"-",
"2",
";",
"index",
"<=",
"oldIdx",
";",
"oldIdx",
"--",
")",
"set",
"(",
"oldIdx",
"+",
"1",
",",
"get",
"(",
"oldIdx",
")",
")",
";",
"set",
"(",
"index",
",",
"element",
")",
";",
"}",
"}"
] |
public override void Add(int index, T element){if (index == size){AddItem(element);}else{if (index < 0 || size < index){throw new IndexOutOfRangeException(index.ToString());}else{AddItem(default(T));for (int oldIdx = size - 2; index <= oldIdx; oldIdx--){Set(oldIdx + 1, this[oldIdx]);}Set(index, element);}}}
|
train
| false
|
3,864
|
public static int intersect(CellRangeAddress crA, CellRangeAddress crB ){int firstRow = crB.getFirstRow();int lastRow = crB.getLastRow();int firstCol = crB.getFirstColumn();int lastCol = crB.getLastColumn();if (gt(crA.getFirstRow(), lastRow) || lt(crA.getLastRow(), firstRow) ||gt(crA.getFirstColumn(), lastCol) || lt(crA.getLastColumn(), firstCol)){return NO_INTERSECTION;}else if( contains(crA, crB) ){return INSIDE;}else if( contains(crB, crA)){return ENCLOSES;}else{return OVERLAP;}}
|
[
"public",
"static",
"int",
"intersect",
"(",
"CellRangeAddress",
"crA",
",",
"CellRangeAddress",
"crB",
")",
"{",
"int",
"firstRow",
"=",
"crB",
".",
"getFirstRow",
"(",
")",
";",
"int",
"lastRow",
"=",
"crB",
".",
"getLastRow",
"(",
")",
";",
"int",
"firstCol",
"=",
"crB",
".",
"getFirstColumn",
"(",
")",
";",
"int",
"lastCol",
"=",
"crB",
".",
"getLastColumn",
"(",
")",
";",
"if",
"(",
"gt",
"(",
"crA",
".",
"getFirstRow",
"(",
")",
",",
"lastRow",
")",
"||",
"lt",
"(",
"crA",
".",
"getLastRow",
"(",
")",
",",
"firstRow",
")",
"||",
"gt",
"(",
"crA",
".",
"getFirstColumn",
"(",
")",
",",
"lastCol",
")",
"||",
"lt",
"(",
"crA",
".",
"getLastColumn",
"(",
")",
",",
"firstCol",
")",
")",
"{",
"return",
"NO_INTERSECTION",
";",
"}",
"else",
"if",
"(",
"contains",
"(",
"crA",
",",
"crB",
")",
")",
"{",
"return",
"INSIDE",
";",
"}",
"else",
"if",
"(",
"contains",
"(",
"crB",
",",
"crA",
")",
")",
"{",
"return",
"ENCLOSES",
";",
"}",
"else",
"{",
"return",
"OVERLAP",
";",
"}",
"}"
] |
public static int Intersect(CellRangeAddress crA, CellRangeAddress crB){int firstRow = crB.FirstRow;int lastRow = crB.LastRow;int firstCol = crB.FirstColumn;int lastCol = crB.LastColumn;if(gt(crA.FirstRow, lastRow) ||lt(crA.LastRow, firstRow) ||gt(crA.FirstColumn, lastCol) ||lt(crA.LastColumn, firstCol)){return NO_INTERSECTION;}else if (Contains(crA, crB)){return INSIDE;}else if (Contains(crB, crA)){return ENCLOSES;}else{return OVERLAP;}}
|
train
| false
|
3,865
|
public short getXFAt(int coffset) {return _xfs[coffset];}
|
[
"public",
"short",
"getXFAt",
"(",
"int",
"coffset",
")",
"{",
"return",
"_xfs",
"[",
"coffset",
"]",
";",
"}"
] |
public short GetXFAt(int coffset){return _xfs[coffset];}
|
train
| false
|
3,866
|
public static final boolean isId(@Nullable String id) {if (id == null) {return false;}if (id.length() != Constants.OBJECT_ID_STRING_LENGTH)return false;try {for (int i = 0; i < Constants.OBJECT_ID_STRING_LENGTH; i++) {RawParseUtils.parseHexInt4((byte) id.charAt(i));}return true;} catch (ArrayIndexOutOfBoundsException e) {return false;}}
|
[
"public",
"static",
"final",
"boolean",
"isId",
"(",
"@",
"Nullable",
"String",
"id",
")",
"{",
"if",
"(",
"id",
"==",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"id",
".",
"length",
"(",
")",
"!=",
"Constants",
".",
"OBJECT_ID_STRING_LENGTH",
")",
"return",
"false",
";",
"try",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"Constants",
".",
"OBJECT_ID_STRING_LENGTH",
";",
"i",
"++",
")",
"{",
"RawParseUtils",
".",
"parseHexInt4",
"(",
"(",
"byte",
")",
"id",
".",
"charAt",
"(",
"i",
")",
")",
";",
"}",
"return",
"true",
";",
"}",
"catch",
"(",
"ArrayIndexOutOfBoundsException",
"e",
")",
"{",
"return",
"false",
";",
"}",
"}"
] |
public static bool IsId(string id){if (id.Length != Constants.OBJECT_ID_STRING_LENGTH){return false;}try{for (int i = 0; i < Constants.OBJECT_ID_STRING_LENGTH; i++){RawParseUtils.ParseHexInt4(unchecked((byte)id[i]));}return true;}catch (IndexOutOfRangeException){return false;}}
|
train
| false
|
3,867
|
@Override public boolean isEmpty() {return countMap.isEmpty();}
|
[
"@",
"Override",
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"countMap",
".",
"isEmpty",
"(",
")",
";",
"}"
] |
public override bool isEmpty(){return this._enclosing._size == 0;}
|
train
| false
|
3,868
|
public ByteVector(byte[] a, int capacity) {if (capacity > 0) {blockSize = capacity;} else {blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = 0;}
|
[
"public",
"ByteVector",
"(",
"byte",
"[",
"]",
"a",
",",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
">",
"0",
")",
"{",
"blockSize",
"=",
"capacity",
";",
"}",
"else",
"{",
"blockSize",
"=",
"DEFAULT_BLOCK_SIZE",
";",
"}",
"array",
"=",
"a",
";",
"n",
"=",
"0",
";",
"}"
] |
public ByteVector(byte[] a, int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = 0;}
|
train
| false
|
3,869
|
public void write(int oneByte) throws IOException {write(new byte[] { (byte) oneByte }, 0, 1);}
|
[
"public",
"void",
"write",
"(",
"int",
"oneByte",
")",
"throws",
"IOException",
"{",
"write",
"(",
"new",
"byte",
"[",
"]",
"{",
"(",
"byte",
")",
"oneByte",
"}",
",",
"0",
",",
"1",
")",
";",
"}"
] |
public override void write(int oneByte){throw new System.NotImplementedException();}
|
train
| false
|
3,870
|
public SegmentCommitInfo info(int i) {return segments.get(i);}
|
[
"public",
"SegmentCommitInfo",
"info",
"(",
"int",
"i",
")",
"{",
"return",
"segments",
".",
"get",
"(",
"i",
")",
";",
"}"
] |
public SegmentCommitInfo Info(int i) {return segments[i];}
|
train
| false
|
3,871
|
public ListDistributionsByWebACLIdResult listDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request) {request = beforeClientExecution(request);return executeListDistributionsByWebACLId(request);}
|
[
"public",
"ListDistributionsByWebACLIdResult",
"listDistributionsByWebACLId",
"(",
"ListDistributionsByWebACLIdRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDistributionsByWebACLId",
"(",
"request",
")",
";",
"}"
] |
public virtual ListDistributionsByWebACLIdResponse ListDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDistributionsByWebACLIdRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDistributionsByWebACLIdResponseUnmarshaller.Instance;return Invoke<ListDistributionsByWebACLIdResponse>(request, options);}
|
train
| true
|
3,872
|
public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(iObjectKind);out.writeShort(iObjectContext);out.writeShort(iObjectInstance1);out.writeShort(iObjectInstance2);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"rt",
")",
";",
"out",
".",
"writeShort",
"(",
"grbitFrt",
")",
";",
"out",
".",
"writeShort",
"(",
"iObjectKind",
")",
";",
"out",
".",
"writeShort",
"(",
"iObjectContext",
")",
";",
"out",
".",
"writeShort",
"(",
"iObjectInstance1",
")",
";",
"out",
".",
"writeShort",
"(",
"iObjectInstance2",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(iObjectKind);out1.WriteShort(iObjectContext);out1.WriteShort(iObjectInstance1);out1.WriteShort(iObjectInstance2);}
|
train
| false
|
3,873
|
public CreateDeliveryStreamResult createDeliveryStream(CreateDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeCreateDeliveryStream(request);}
|
[
"public",
"CreateDeliveryStreamResult",
"createDeliveryStream",
"(",
"CreateDeliveryStreamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDeliveryStream",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateDeliveryStreamResponse CreateDeliveryStream(CreateDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeliveryStreamResponseUnmarshaller.Instance;return Invoke<CreateDeliveryStreamResponse>(request, options);}
|
train
| true
|
3,874
|
public ResetDBParameterGroupResult resetDBParameterGroup(ResetDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetDBParameterGroup(request);}
|
[
"public",
"ResetDBParameterGroupResult",
"resetDBParameterGroup",
"(",
"ResetDBParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeResetDBParameterGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual ResetDBParameterGroupResponse ResetDBParameterGroup(ResetDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetDBParameterGroupResponseUnmarshaller.Instance;return Invoke<ResetDBParameterGroupResponse>(request, options);}
|
train
| true
|
3,875
|
public DescribeDocumentClassificationJobResult describeDocumentClassificationJob(DescribeDocumentClassificationJobRequest request) {request = beforeClientExecution(request);return executeDescribeDocumentClassificationJob(request);}
|
[
"public",
"DescribeDocumentClassificationJobResult",
"describeDocumentClassificationJob",
"(",
"DescribeDocumentClassificationJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDocumentClassificationJob",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDocumentClassificationJobResponse DescribeDocumentClassificationJob(DescribeDocumentClassificationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDocumentClassificationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDocumentClassificationJobResponseUnmarshaller.Instance;return Invoke<DescribeDocumentClassificationJobResponse>(request, options);}
|
train
| true
|
3,876
|
public DescribeSecurityGroupsResult describeSecurityGroups(DescribeSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeSecurityGroups(request);}
|
[
"public",
"DescribeSecurityGroupsResult",
"describeSecurityGroups",
"(",
"DescribeSecurityGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSecurityGroups",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeSecurityGroupsResponse DescribeSecurityGroups(DescribeSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSecurityGroupsResponseUnmarshaller.Instance;return Invoke<DescribeSecurityGroupsResponse>(request, options);}
|
train
| true
|
3,877
|
public UpdateTrafficPolicyInstanceResult updateTrafficPolicyInstance(UpdateTrafficPolicyInstanceRequest request) {request = beforeClientExecution(request);return executeUpdateTrafficPolicyInstance(request);}
|
[
"public",
"UpdateTrafficPolicyInstanceResult",
"updateTrafficPolicyInstance",
"(",
"UpdateTrafficPolicyInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateTrafficPolicyInstance",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateTrafficPolicyInstanceResponse UpdateTrafficPolicyInstance(UpdateTrafficPolicyInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrafficPolicyInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrafficPolicyInstanceResponseUnmarshaller.Instance;return Invoke<UpdateTrafficPolicyInstanceResponse>(request, options);}
|
train
| true
|
3,878
|
public BinaryHunk getForwardBinaryHunk() {return forwardBinaryHunk;}
|
[
"public",
"BinaryHunk",
"getForwardBinaryHunk",
"(",
")",
"{",
"return",
"forwardBinaryHunk",
";",
"}"
] |
public virtual BinaryHunk GetForwardBinaryHunk(){return forwardBinaryHunk;}
|
train
| false
|
3,879
|
public static ByteBuffer allocateDirect(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteDirectByteBuffer(capacity);}
|
[
"public",
"static",
"ByteBuffer",
"allocateDirect",
"(",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"}",
"return",
"new",
"ReadWriteDirectByteBuffer",
"(",
"capacity",
")",
";",
"}"
] |
public static java.nio.ByteBuffer allocateDirect(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteHeapByteBuffer(capacity_1);}
|
train
| false
|
3,880
|
public void drawString(String str, int x, int y){if (str == null || str.isEmpty())return;Font excelFont = font;if ( font.getName().equals( "SansSerif" ) ){excelFont = new Font( "Arial", font.getStyle(), (int) ( font.getSize() / verticalPixelsPerPoint ) );}else{excelFont = new Font( font.getName(), font.getStyle(), (int) ( font.getSize() / verticalPixelsPerPoint ));}FontDetails d = StaticFontMetrics.getFontDetails( excelFont );int width = d.getStringWidth( str ) * 8 + 12;int height = (int) ( ( font.getSize() / verticalPixelsPerPoint ) + 6 ) * 2;y -= ( font.getSize() / verticalPixelsPerPoint ) + 2 * verticalPixelsPerPoint; HSSFTextbox textbox = escherGroup.createTextbox( new HSSFChildAnchor( x, y, x + width, y + height ) );textbox.setNoFill( true );textbox.setLineStyle( HSSFShape.LINESTYLE_NONE );HSSFRichTextString s = new HSSFRichTextString( str );HSSFFont hssfFont = matchFont( excelFont );s.applyFont( hssfFont );textbox.setString( s );}
|
[
"public",
"void",
"drawString",
"(",
"String",
"str",
",",
"int",
"x",
",",
"int",
"y",
")",
"{",
"if",
"(",
"str",
"==",
"null",
"||",
"str",
".",
"isEmpty",
"(",
")",
")",
"return",
";",
"Font",
"excelFont",
"=",
"font",
";",
"if",
"(",
"font",
".",
"getName",
"(",
")",
".",
"equals",
"(",
"\"SansSerif\"",
")",
")",
"{",
"excelFont",
"=",
"new",
"Font",
"(",
"\"Arial\"",
",",
"font",
".",
"getStyle",
"(",
")",
",",
"(",
"int",
")",
"(",
"font",
".",
"getSize",
"(",
")",
"/",
"verticalPixelsPerPoint",
")",
")",
";",
"}",
"else",
"{",
"excelFont",
"=",
"new",
"Font",
"(",
"font",
".",
"getName",
"(",
")",
",",
"font",
".",
"getStyle",
"(",
")",
",",
"(",
"int",
")",
"(",
"font",
".",
"getSize",
"(",
")",
"/",
"verticalPixelsPerPoint",
")",
")",
";",
"}",
"FontDetails",
"d",
"=",
"StaticFontMetrics",
".",
"getFontDetails",
"(",
"excelFont",
")",
";",
"int",
"width",
"=",
"d",
".",
"getStringWidth",
"(",
"str",
")",
"*",
"8",
"+",
"12",
";",
"int",
"height",
"=",
"(",
"int",
")",
"(",
"(",
"font",
".",
"getSize",
"(",
")",
"/",
"verticalPixelsPerPoint",
")",
"+",
"6",
")",
"*",
"2",
";",
"y",
"-=",
"(",
"font",
".",
"getSize",
"(",
")",
"/",
"verticalPixelsPerPoint",
")",
"+",
"2",
"*",
"verticalPixelsPerPoint",
";",
"HSSFTextbox",
"textbox",
"=",
"escherGroup",
".",
"createTextbox",
"(",
"new",
"HSSFChildAnchor",
"(",
"x",
",",
"y",
",",
"x",
"+",
"width",
",",
"y",
"+",
"height",
")",
")",
";",
"textbox",
".",
"setNoFill",
"(",
"true",
")",
";",
"textbox",
".",
"setLineStyle",
"(",
"HSSFShape",
".",
"LINESTYLE_NONE",
")",
";",
"HSSFRichTextString",
"s",
"=",
"new",
"HSSFRichTextString",
"(",
"str",
")",
";",
"HSSFFont",
"hssfFont",
"=",
"matchFont",
"(",
"excelFont",
")",
";",
"s",
".",
"applyFont",
"(",
"hssfFont",
")",
";",
"textbox",
".",
"setString",
"(",
"s",
")",
";",
"}"
] |
public void DrawString(String str, int x, int y){if (string.IsNullOrEmpty(str))return;using (Font excelFont = new Font(font.Name.Equals("SansSerif") ? "Arial" : font.Name, (int)(font.Size / verticalPixelsPerPoint), font.Style)){FontDetails d = StaticFontMetrics.GetFontDetails(excelFont);int width = (int)((d.GetStringWidth(str) * 8) + 12);int height = (int)((font.Size / verticalPixelsPerPoint) + 6) * 2;y -= Convert.ToInt32((font.Size / verticalPixelsPerPoint) + 2 * verticalPixelsPerPoint); HSSFTextbox textbox = escherGroup.CreateTextbox(new HSSFChildAnchor(x, y, x + width, y + height));textbox.IsNoFill = (true);textbox.LineStyle = LineStyle.None;HSSFRichTextString s = new HSSFRichTextString(str);HSSFFont hssfFont = MatchFont(excelFont);s.ApplyFont(hssfFont);textbox.String = (s);}}
|
train
| false
|
3,881
|
public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) {List<Query> luceneSubQueries = makeLuceneSubQueriesField(fieldName, qf);BooleanQuery.Builder bq = new BooleanQuery.Builder();bq.add( luceneSubQueries.get(0), BooleanClause.Occur.MUST);SrndBooleanQuery.addQueriesToBoolean(bq,luceneSubQueries.subList(1, luceneSubQueries.size()),BooleanClause.Occur.MUST_NOT);return bq.build();}
|
[
"public",
"Query",
"makeLuceneQueryFieldNoBoost",
"(",
"String",
"fieldName",
",",
"BasicQueryFactory",
"qf",
")",
"{",
"List",
"<",
"Query",
">",
"luceneSubQueries",
"=",
"makeLuceneSubQueriesField",
"(",
"fieldName",
",",
"qf",
")",
";",
"BooleanQuery",
".",
"Builder",
"bq",
"=",
"new",
"BooleanQuery",
".",
"Builder",
"(",
")",
";",
"bq",
".",
"add",
"(",
"luceneSubQueries",
".",
"get",
"(",
"0",
")",
",",
"BooleanClause",
".",
"Occur",
".",
"MUST",
")",
";",
"SrndBooleanQuery",
".",
"addQueriesToBoolean",
"(",
"bq",
",",
"luceneSubQueries",
".",
"subList",
"(",
"1",
",",
"luceneSubQueries",
".",
"size",
"(",
")",
")",
",",
"BooleanClause",
".",
"Occur",
".",
"MUST_NOT",
")",
";",
"return",
"bq",
".",
"build",
"(",
")",
";",
"}"
] |
public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf){var luceneSubQueries = MakeLuceneSubQueriesField(fieldName, qf);BooleanQuery bq = new BooleanQuery();bq.Add(luceneSubQueries.FirstOrDefault(), Occur.MUST);SrndBooleanQuery.AddQueriesToBoolean(bq,luceneSubQueries.Skip(1).ToList(),Occur.MUST_NOT);return bq;}
|
train
| false
|
3,882
|
public void reset(byte[] treeData) {attributesNode = null;raw = treeData;prevPtr = -1;currPtr = 0;if (eof())nextPtr = 0;elseparseEntry();}
|
[
"public",
"void",
"reset",
"(",
"byte",
"[",
"]",
"treeData",
")",
"{",
"attributesNode",
"=",
"null",
";",
"raw",
"=",
"treeData",
";",
"prevPtr",
"=",
"-",
"1",
";",
"currPtr",
"=",
"0",
";",
"if",
"(",
"eof",
"(",
")",
")",
"nextPtr",
"=",
"0",
";",
"elseparseEntry",
"(",
")",
";",
"}"
] |
public virtual void Reset(byte[] treeData){raw = treeData;prevPtr = -1;currPtr = 0;if (Eof){nextPtr = 0;}else{ParseEntry();}}
|
train
| false
|
3,883
|
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_save_link_values);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"field_1_save_link_values",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_save_link_values);}
|
train
| false
|
3,884
|
public static Boolean toBooleanOrNull(String stringValue) {if (stringValue == null)return null;if (equalsIgnoreCase("yes", stringValue) || equalsIgnoreCase("true", stringValue) || equalsIgnoreCase("1", stringValue) || equalsIgnoreCase("on", stringValue)) return Boolean.TRUE;else if (equalsIgnoreCase("no", stringValue) || equalsIgnoreCase("false", stringValue) || equalsIgnoreCase("0", stringValue) || equalsIgnoreCase("off", stringValue)) return Boolean.FALSE;else return null;}
|
[
"public",
"static",
"Boolean",
"toBooleanOrNull",
"(",
"String",
"stringValue",
")",
"{",
"if",
"(",
"stringValue",
"==",
"null",
")",
"return",
"null",
";",
"if",
"(",
"equalsIgnoreCase",
"(",
"\"yes\"",
",",
"stringValue",
")",
"||",
"equalsIgnoreCase",
"(",
"\"true\"",
",",
"stringValue",
")",
"||",
"equalsIgnoreCase",
"(",
"\"1\"",
",",
"stringValue",
")",
"||",
"equalsIgnoreCase",
"(",
"\"on\"",
",",
"stringValue",
")",
")",
"return",
"Boolean",
".",
"TRUE",
";",
"else",
"if",
"(",
"equalsIgnoreCase",
"(",
"\"no\"",
",",
"stringValue",
")",
"||",
"equalsIgnoreCase",
"(",
"\"false\"",
",",
"stringValue",
")",
"||",
"equalsIgnoreCase",
"(",
"\"0\"",
",",
"stringValue",
")",
"||",
"equalsIgnoreCase",
"(",
"\"off\"",
",",
"stringValue",
")",
")",
"return",
"Boolean",
".",
"FALSE",
";",
"else",
"return",
"null",
";",
"}"
] |
public static bool? ToBooleanOrNull(string stringValue){if (stringValue == null){return null;}if (EqualsIgnoreCase("yes", stringValue) || EqualsIgnoreCase("true", stringValue)|| EqualsIgnoreCase("1", stringValue) || EqualsIgnoreCase("on", stringValue)){return true;}else{if (EqualsIgnoreCase("no", stringValue) || EqualsIgnoreCase("false", stringValue)|| EqualsIgnoreCase("0", stringValue) || EqualsIgnoreCase("off", stringValue)){return false;}else{return null;}}}
|
train
| false
|
3,885
|
public RevObject lookupOrNull(AnyObjectId id) {return objects.get(id);}
|
[
"public",
"RevObject",
"lookupOrNull",
"(",
"AnyObjectId",
"id",
")",
"{",
"return",
"objects",
".",
"get",
"(",
"id",
")",
";",
"}"
] |
public virtual RevObject LookupOrNull(AnyObjectId id){return objects.Get(id);}
|
train
| false
|
3,886
|
public void cloneStyleFrom(FontRecord source) {field_1_font_height = source.field_1_font_height;field_2_attributes = source.field_2_attributes;field_3_color_palette_index = source.field_3_color_palette_index;field_4_bold_weight = source.field_4_bold_weight;field_5_super_sub_script = source.field_5_super_sub_script;field_6_underline = source.field_6_underline;field_7_family = source.field_7_family;field_8_charset = source.field_8_charset;field_9_zero = source.field_9_zero;field_11_font_name = source.field_11_font_name;}
|
[
"public",
"void",
"cloneStyleFrom",
"(",
"FontRecord",
"source",
")",
"{",
"field_1_font_height",
"=",
"source",
".",
"field_1_font_height",
";",
"field_2_attributes",
"=",
"source",
".",
"field_2_attributes",
";",
"field_3_color_palette_index",
"=",
"source",
".",
"field_3_color_palette_index",
";",
"field_4_bold_weight",
"=",
"source",
".",
"field_4_bold_weight",
";",
"field_5_super_sub_script",
"=",
"source",
".",
"field_5_super_sub_script",
";",
"field_6_underline",
"=",
"source",
".",
"field_6_underline",
";",
"field_7_family",
"=",
"source",
".",
"field_7_family",
";",
"field_8_charset",
"=",
"source",
".",
"field_8_charset",
";",
"field_9_zero",
"=",
"source",
".",
"field_9_zero",
";",
"field_11_font_name",
"=",
"source",
".",
"field_11_font_name",
";",
"}"
] |
public void CloneStyleFrom(FontRecord source){field_1_font_height = source.field_1_font_height;field_2_attributes = source.field_2_attributes;field_3_color_palette_index = source.field_3_color_palette_index;field_4_bold_weight = source.field_4_bold_weight;field_5_base_sub_script = source.field_5_base_sub_script;field_6_underline = source.field_6_underline;field_7_family = source.field_7_family;field_8_charset = source.field_8_charset;field_9_zero = source.field_9_zero;field_11_font_name = source.field_11_font_name;}
|
train
| false
|
3,887
|
public BrazilianStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"BrazilianStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public BrazilianStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
3,888
|
public static byte lookupCharacterClass(String characterClassName) {return (byte) CharacterClass.valueOf(characterClassName).ordinal();}
|
[
"public",
"static",
"byte",
"lookupCharacterClass",
"(",
"String",
"characterClassName",
")",
"{",
"return",
"(",
"byte",
")",
"CharacterClass",
".",
"valueOf",
"(",
"characterClassName",
")",
".",
"ordinal",
"(",
")",
";",
"}"
] |
public static byte LookupCharacterClass(string characterClassName){return (byte)Enum.Parse(typeof(CharacterClass), characterClassName, true);}
|
train
| false
|
3,889
|
public ArrayList(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}array = (capacity == 0 ? EmptyArray.OBJECT : new Object[capacity]);}
|
[
"public",
"ArrayList",
"(",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"}",
"array",
"=",
"(",
"capacity",
"==",
"0",
"?",
"EmptyArray",
".",
"OBJECT",
":",
"new",
"Object",
"[",
"capacity",
"]",
")",
";",
"}"
] |
public ArrayList(int capacity){if (capacity < 0){throw new System.ArgumentException();}array = (capacity == 0 ? libcore.util.EmptyArray.OBJECT : new object[capacity]);}
|
train
| false
|
3,890
|
public CreateHumanTaskUiResult createHumanTaskUi(CreateHumanTaskUiRequest request) {request = beforeClientExecution(request);return executeCreateHumanTaskUi(request);}
|
[
"public",
"CreateHumanTaskUiResult",
"createHumanTaskUi",
"(",
"CreateHumanTaskUiRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateHumanTaskUi",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateHumanTaskUiResponse CreateHumanTaskUi(CreateHumanTaskUiRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHumanTaskUiRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHumanTaskUiResponseUnmarshaller.Instance;return Invoke<CreateHumanTaskUiResponse>(request, options);}
|
train
| false
|
3,891
|
public GetSoftwareUpdatesResult getSoftwareUpdates(GetSoftwareUpdatesRequest request) {request = beforeClientExecution(request);return executeGetSoftwareUpdates(request);}
|
[
"public",
"GetSoftwareUpdatesResult",
"getSoftwareUpdates",
"(",
"GetSoftwareUpdatesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSoftwareUpdates",
"(",
"request",
")",
";",
"}"
] |
public virtual GetSoftwareUpdatesResponse GetSoftwareUpdates(GetSoftwareUpdatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSoftwareUpdatesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSoftwareUpdatesResponseUnmarshaller.Instance;return Invoke<GetSoftwareUpdatesResponse>(request, options);}
|
train
| false
|
3,892
|
public NamePtg createPtg() {return new NamePtg(_index);}
|
[
"public",
"NamePtg",
"createPtg",
"(",
")",
"{",
"return",
"new",
"NamePtg",
"(",
"_index",
")",
";",
"}"
] |
public NamePtg CreatePtg(){return new NamePtg(_index);}
|
train
| false
|
3,893
|
public ListFlowDefinitionsResult listFlowDefinitions(ListFlowDefinitionsRequest request) {request = beforeClientExecution(request);return executeListFlowDefinitions(request);}
|
[
"public",
"ListFlowDefinitionsResult",
"listFlowDefinitions",
"(",
"ListFlowDefinitionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListFlowDefinitions",
"(",
"request",
")",
";",
"}"
] |
public virtual ListFlowDefinitionsResponse ListFlowDefinitions(ListFlowDefinitionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFlowDefinitionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFlowDefinitionsResponseUnmarshaller.Instance;return Invoke<ListFlowDefinitionsResponse>(request, options);}
|
train
| false
|
3,894
|
public LittleEndianOutput createDelayedOutput(int size) {checkPosition(size);LittleEndianOutput result = new LittleEndianByteArrayOutputStream(_buf, _writeIndex, size);_writeIndex += size;return result;}
|
[
"public",
"LittleEndianOutput",
"createDelayedOutput",
"(",
"int",
"size",
")",
"{",
"checkPosition",
"(",
"size",
")",
";",
"LittleEndianOutput",
"result",
"=",
"new",
"LittleEndianByteArrayOutputStream",
"(",
"_buf",
",",
"_writeIndex",
",",
"size",
")",
";",
"_writeIndex",
"+=",
"size",
";",
"return",
"result",
";",
"}"
] |
public ILittleEndianOutput CreateDelayedOutput(int size){CheckPosition(size);ILittleEndianOutput result = new LittleEndianByteArrayOutputStream(_buf, _writeIndex, size);_writeIndex += size;return result;}
|
train
| false
|
3,895
|
public long get(int index) {return current.get(index);}
|
[
"public",
"long",
"get",
"(",
"int",
"index",
")",
"{",
"return",
"current",
".",
"get",
"(",
"index",
")",
";",
"}"
] |
public override long Get(int index){return current.Get(index);}
|
train
| false
|
3,896
|
public StemmerOverrideFilterFactory(Map<String,String> args) {super(args);dictionaryFiles = get(args, "dictionary");ignoreCase = getBoolean(args, "ignoreCase", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"StemmerOverrideFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"dictionaryFiles",
"=",
"get",
"(",
"args",
",",
"\"dictionary\"",
")",
";",
"ignoreCase",
"=",
"getBoolean",
"(",
"args",
",",
"\"ignoreCase\"",
",",
"false",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public StemmerOverrideFilterFactory(IDictionary<string, string> args): base(args){dictionaryFiles = Get(args, "dictionary");ignoreCase = GetBoolean(args, "ignoreCase", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
3,898
|
public DeleteDeploymentGroupResult deleteDeploymentGroup(DeleteDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDeploymentGroup(request);}
|
[
"public",
"DeleteDeploymentGroupResult",
"deleteDeploymentGroup",
"(",
"DeleteDeploymentGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDeploymentGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteDeploymentGroupResponse DeleteDeploymentGroup(DeleteDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeploymentGroupResponseUnmarshaller.Instance;return Invoke<DeleteDeploymentGroupResponse>(request, options);}
|
train
| true
|
3,899
|
public void setNamespaceAware(boolean awareness) {features.put (XmlPullParser.FEATURE_PROCESS_NAMESPACES, awareness);}
|
[
"public",
"void",
"setNamespaceAware",
"(",
"boolean",
"awareness",
")",
"{",
"features",
".",
"put",
"(",
"XmlPullParser",
".",
"FEATURE_PROCESS_NAMESPACES",
",",
"awareness",
")",
";",
"}"
] |
public virtual void setNamespaceAware(bool awareness){features.put(org.xmlpull.v1.XmlPullParserClass.FEATURE_PROCESS_NAMESPACES, awareness);}
|
train
| false
|
3,900
|
public static List<String> getBuiltinFormats() {return Arrays.asList(_builtinFormats);}
|
[
"public",
"static",
"List",
"<",
"String",
">",
"getBuiltinFormats",
"(",
")",
"{",
"return",
"Arrays",
".",
"asList",
"(",
"_builtinFormats",
")",
";",
"}"
] |
public static List<string> GetBuiltinFormats(){return builtinFormats;}
|
train
| false
|
3,901
|
public Snapshot authorizeSnapshotAccess(AuthorizeSnapshotAccessRequest request) {request = beforeClientExecution(request);return executeAuthorizeSnapshotAccess(request);}
|
[
"public",
"Snapshot",
"authorizeSnapshotAccess",
"(",
"AuthorizeSnapshotAccessRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAuthorizeSnapshotAccess",
"(",
"request",
")",
";",
"}"
] |
public virtual AuthorizeSnapshotAccessResponse AuthorizeSnapshotAccess(AuthorizeSnapshotAccessRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeSnapshotAccessRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeSnapshotAccessResponseUnmarshaller.Instance;return Invoke<AuthorizeSnapshotAccessResponse>(request, options);}
|
train
| true
|
3,902
|
public void split() throws IOException {boolean success = false;DirectoryReader reader = DirectoryReader.open(input);try {createIndex(config1, dir1, reader, docsInFirstIndex, false);createIndex(config2, dir2, reader, docsInFirstIndex, true);success = true;} finally {if (success) {IOUtils.close(reader);} else {IOUtils.closeWhileHandlingException(reader);}}}
|
[
"public",
"void",
"split",
"(",
")",
"throws",
"IOException",
"{",
"boolean",
"success",
"=",
"false",
";",
"DirectoryReader",
"reader",
"=",
"DirectoryReader",
".",
"open",
"(",
"input",
")",
";",
"try",
"{",
"createIndex",
"(",
"config1",
",",
"dir1",
",",
"reader",
",",
"docsInFirstIndex",
",",
"false",
")",
";",
"createIndex",
"(",
"config2",
",",
"dir2",
",",
"reader",
",",
"docsInFirstIndex",
",",
"true",
")",
";",
"success",
"=",
"true",
";",
"}",
"finally",
"{",
"if",
"(",
"success",
")",
"{",
"IOUtils",
".",
"close",
"(",
"reader",
")",
";",
"}",
"else",
"{",
"IOUtils",
".",
"closeWhileHandlingException",
"(",
"reader",
")",
";",
"}",
"}",
"}"
] |
public virtual void Split(){bool success = false;DirectoryReader reader = DirectoryReader.Open(input);try{CreateIndex(config1, dir1, reader, docsInFirstIndex, false);CreateIndex(config2, dir2, reader, docsInFirstIndex, true);success = true;}finally{if (success){IOUtils.Dispose(reader);}else{IOUtils.DisposeWhileHandlingException(reader);}}}
|
train
| false
|
3,903
|
@Override public boolean equals(Object object) {return mapEntry.equals(object);}
|
[
"@",
"Override",
"public",
"boolean",
"equals",
"(",
"Object",
"object",
")",
"{",
"return",
"mapEntry",
".",
"equals",
"(",
"object",
")",
";",
"}"
] |
public override bool Equals(object @object){return mapEntry.Equals(@object);}
|
train
| false
|
3,904
|
public synchronized E pop() {if (elementCount == 0) {throw new EmptyStackException();}final int index = --elementCount;final E obj = (E) elementData[index];elementData[index] = null;modCount++;return obj;}
|
[
"public",
"synchronized",
"E",
"pop",
"(",
")",
"{",
"if",
"(",
"elementCount",
"==",
"0",
")",
"{",
"throw",
"new",
"EmptyStackException",
"(",
")",
";",
"}",
"final",
"int",
"index",
"=",
"--",
"elementCount",
";",
"final",
"E",
"obj",
"=",
"(",
"E",
")",
"elementData",
"[",
"index",
"]",
";",
"elementData",
"[",
"index",
"]",
"=",
"null",
";",
"modCount",
"++",
";",
"return",
"obj",
";",
"}"
] |
public virtual E pop(){lock (this){if (elementCount == 0){throw new java.util.EmptyStackException();}int index = --elementCount;E obj = (E)elementData[index];elementData[index] = null;modCount++;return obj;}}
|
train
| false
|
3,905
|
public ListHealthChecksResult listHealthChecks() {return listHealthChecks(new ListHealthChecksRequest());}
|
[
"public",
"ListHealthChecksResult",
"listHealthChecks",
"(",
")",
"{",
"return",
"listHealthChecks",
"(",
"new",
"ListHealthChecksRequest",
"(",
")",
")",
";",
"}"
] |
public virtual ListHealthChecksResponse ListHealthChecks(){return ListHealthChecks(new ListHealthChecksRequest());}
|
train
| false
|
3,906
|
public boolean equals(Object obj) {if (!(obj instanceof File)) {return false;}return path.equals(((File) obj).getPath());}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"File",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"path",
".",
"equals",
"(",
"(",
"(",
"File",
")",
"obj",
")",
".",
"getPath",
"(",
")",
")",
";",
"}"
] |
public override bool Equals(object obj){if (!(obj is java.io.File)){return false;}return path.Equals(((java.io.File)obj).getPath());}
|
train
| false
|
3,907
|
public ListPhotoStoresRequest() {super("CloudPhoto", "2017-07-11", "ListPhotoStores", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
|
[
"public",
"ListPhotoStoresRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"ListPhotoStores\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] |
public ListPhotoStoresRequest(): base("CloudPhoto", "2017-07-11", "ListPhotoStores", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
train
| false
|
3,908
|
public PutAccessControlRuleResult putAccessControlRule(PutAccessControlRuleRequest request) {request = beforeClientExecution(request);return executePutAccessControlRule(request);}
|
[
"public",
"PutAccessControlRuleResult",
"putAccessControlRule",
"(",
"PutAccessControlRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutAccessControlRule",
"(",
"request",
")",
";",
"}"
] |
public virtual PutAccessControlRuleResponse PutAccessControlRule(PutAccessControlRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccessControlRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccessControlRuleResponseUnmarshaller.Instance;return Invoke<PutAccessControlRuleResponse>(request, options);}
|
train
| false
|
3,909
|
public StopTrainingEntityRecognizerResult stopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeStopTrainingEntityRecognizer(request);}
|
[
"public",
"StopTrainingEntityRecognizerResult",
"stopTrainingEntityRecognizer",
"(",
"StopTrainingEntityRecognizerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopTrainingEntityRecognizer",
"(",
"request",
")",
";",
"}"
] |
public virtual StopTrainingEntityRecognizerResponse StopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingEntityRecognizerResponseUnmarshaller.Instance;return Invoke<StopTrainingEntityRecognizerResponse>(request, options);}
|
train
| true
|
3,910
|
public GetRevisionResult getRevision(GetRevisionRequest request) {request = beforeClientExecution(request);return executeGetRevision(request);}
|
[
"public",
"GetRevisionResult",
"getRevision",
"(",
"GetRevisionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRevision",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRevisionResponse GetRevision(GetRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRevisionResponseUnmarshaller.Instance;return Invoke<GetRevisionResponse>(request, options);}
|
train
| false
|
3,911
|
public HSSFPicture createPicture(HSSFChildAnchor anchor, int pictureIndex) {HSSFPicture shape = new HSSFPicture(this, anchor);shape.setParent(this);shape.setAnchor(anchor);shape.setPictureIndex(pictureIndex);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",
"HSSFPicture",
"createPicture",
"(",
"HSSFChildAnchor",
"anchor",
",",
"int",
"pictureIndex",
")",
"{",
"HSSFPicture",
"shape",
"=",
"new",
"HSSFPicture",
"(",
"this",
",",
"anchor",
")",
";",
"shape",
".",
"setParent",
"(",
"this",
")",
";",
"shape",
".",
"setAnchor",
"(",
"anchor",
")",
";",
"shape",
".",
"setPictureIndex",
"(",
"pictureIndex",
")",
";",
"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 HSSFPicture CreatePicture(HSSFChildAnchor anchor, int pictureIndex){HSSFPicture shape = new HSSFPicture(this, anchor);shape.Parent = this;shape.Anchor = anchor;shape.PictureIndex=pictureIndex;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,912
|
public RecordSizingVisitor() {_totalSize = 0;}
|
[
"public",
"RecordSizingVisitor",
"(",
")",
"{",
"_totalSize",
"=",
"0",
";",
"}"
] |
public RecordSizingVisitor(){_totalSize = 0;}
|
train
| false
|
3,913
|
public UpdateApplicationSettingsResult updateApplicationSettings(UpdateApplicationSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateApplicationSettings(request);}
|
[
"public",
"UpdateApplicationSettingsResult",
"updateApplicationSettings",
"(",
"UpdateApplicationSettingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateApplicationSettings",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateApplicationSettingsResponse UpdateApplicationSettings(UpdateApplicationSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApplicationSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApplicationSettingsResponseUnmarshaller.Instance;return Invoke<UpdateApplicationSettingsResponse>(request, options);}
|
train
| true
|
3,914
|
public LogCommand addPath(String path) {checkCallable();pathFilters.add(PathFilter.create(path));return this;}
|
[
"public",
"LogCommand",
"addPath",
"(",
"String",
"path",
")",
"{",
"checkCallable",
"(",
")",
";",
"pathFilters",
".",
"add",
"(",
"PathFilter",
".",
"create",
"(",
"path",
")",
")",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.LogCommand AddPath(string path){CheckCallable();pathFilters.AddItem(PathFilter.Create(path));return this;}
|
train
| false
|
3,915
|
public GetRelationalDatabaseLogStreamsResult getRelationalDatabaseLogStreams(GetRelationalDatabaseLogStreamsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseLogStreams(request);}
|
[
"public",
"GetRelationalDatabaseLogStreamsResult",
"getRelationalDatabaseLogStreams",
"(",
"GetRelationalDatabaseLogStreamsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRelationalDatabaseLogStreams",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRelationalDatabaseLogStreamsResponse GetRelationalDatabaseLogStreams(GetRelationalDatabaseLogStreamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseLogStreamsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseLogStreamsResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseLogStreamsResponse>(request, options);}
|
train
| true
|
3,916
|
public FloatBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.FLOAT);byteBuffer.position(position * SizeOf.FLOAT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}
|
[
"public",
"FloatBuffer",
"compact",
"(",
")",
"{",
"if",
"(",
"byteBuffer",
".",
"isReadOnly",
"(",
")",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}",
"byteBuffer",
".",
"limit",
"(",
"limit",
"*",
"SizeOf",
".",
"FLOAT",
")",
";",
"byteBuffer",
".",
"position",
"(",
"position",
"*",
"SizeOf",
".",
"FLOAT",
")",
";",
"byteBuffer",
".",
"compact",
"(",
")",
";",
"byteBuffer",
".",
"clear",
"(",
")",
";",
"position",
"=",
"limit",
"-",
"position",
";",
"limit",
"=",
"capacity",
";",
"mark",
"=",
"UNSET_MARK",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.FloatBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.FLOAT);byteBuffer.position(_position * libcore.io.SizeOf.FLOAT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
|
train
| false
|
3,917
|
public void serialize(LittleEndianOutput out) {out.writeInt(field_1_lineColor);out.writeShort(field_2_linePattern);out.writeShort(field_3_weight);out.writeShort(field_4_format);out.writeShort(field_5_colourPaletteIndex);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeInt",
"(",
"field_1_lineColor",
")",
";",
"out",
".",
"writeShort",
"(",
"field_2_linePattern",
")",
";",
"out",
".",
"writeShort",
"(",
"field_3_weight",
")",
";",
"out",
".",
"writeShort",
"(",
"field_4_format",
")",
";",
"out",
".",
"writeShort",
"(",
"field_5_colourPaletteIndex",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_lineColor);out1.WriteShort(field_2_linePattern);out1.WriteShort(field_3_weight);out1.WriteShort(field_4_format);out1.WriteShort(field_5_colourPaletteIndex);}
|
train
| false
|
3,918
|
public DBInstanceAutomatedBackup deleteDBInstanceAutomatedBackup(DeleteDBInstanceAutomatedBackupRequest request) {request = beforeClientExecution(request);return executeDeleteDBInstanceAutomatedBackup(request);}
|
[
"public",
"DBInstanceAutomatedBackup",
"deleteDBInstanceAutomatedBackup",
"(",
"DeleteDBInstanceAutomatedBackupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDBInstanceAutomatedBackup",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteDBInstanceAutomatedBackupResponse DeleteDBInstanceAutomatedBackup(DeleteDBInstanceAutomatedBackupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBInstanceAutomatedBackupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBInstanceAutomatedBackupResponseUnmarshaller.Instance;return Invoke<DeleteDBInstanceAutomatedBackupResponse>(request, options);}
|
train
| true
|
3,919
|
public MultiSimilarity(Similarity sims[]) {this.sims = sims;}
|
[
"public",
"MultiSimilarity",
"(",
"Similarity",
"sims",
"[",
"]",
")",
"{",
"this",
".",
"sims",
"=",
"sims",
";",
"}"
] |
public MultiSimilarity(Similarity[] sims){this.m_sims = sims;}
|
train
| false
|
3,920
|
public final Explanation explain(BasicStats stats, double tfn) {return Explanation.match((float) (scoreTimes1pTfn(stats) / (1 + tfn)),getClass().getSimpleName()+ ", computed as (F + 1) / (n * (tfn + 1)) from:",Explanation.match((float) tfn, "tfn, normalized term frequency"),Explanation.match(stats.getTotalTermFreq(),"F, total number of occurrences of term across all documents + 1"),Explanation.match(stats.getDocFreq(),"n, number of documents containing term + 1"),Explanation.match((float) tfn, "tfn, normalized term frequency"));}
|
[
"public",
"final",
"Explanation",
"explain",
"(",
"BasicStats",
"stats",
",",
"double",
"tfn",
")",
"{",
"return",
"Explanation",
".",
"match",
"(",
"(",
"float",
")",
"(",
"scoreTimes1pTfn",
"(",
"stats",
")",
"/",
"(",
"1",
"+",
"tfn",
")",
")",
",",
"getClass",
"(",
")",
".",
"getSimpleName",
"(",
")",
"+",
"\", computed as (F + 1) / (n * (tfn + 1)) from:\"",
",",
"Explanation",
".",
"match",
"(",
"(",
"float",
")",
"tfn",
",",
"\"tfn, normalized term frequency\"",
")",
",",
"Explanation",
".",
"match",
"(",
"stats",
".",
"getTotalTermFreq",
"(",
")",
",",
"\"F, total number of occurrences of term across all documents + 1\"",
")",
",",
"Explanation",
".",
"match",
"(",
"stats",
".",
"getDocFreq",
"(",
")",
",",
"\"n, number of documents containing term + 1\"",
")",
",",
"Explanation",
".",
"match",
"(",
"(",
"float",
")",
"tfn",
",",
"\"tfn, normalized term frequency\"",
")",
")",
";",
"}"
] |
public override sealed Explanation Explain(BasicStats stats, float tfn){Explanation result = new Explanation();result.Description = this.GetType().Name + ", computed from: ";result.Value = Score(stats, tfn);result.AddDetail(new Explanation(tfn, "tfn"));result.AddDetail(new Explanation(stats.TotalTermFreq, "totalTermFreq"));result.AddDetail(new Explanation(stats.DocFreq, "docFreq"));return result;}
|
train
| false
|
3,921
|
public GetNodeResult getNode(GetNodeRequest request) {request = beforeClientExecution(request);return executeGetNode(request);}
|
[
"public",
"GetNodeResult",
"getNode",
"(",
"GetNodeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetNode",
"(",
"request",
")",
";",
"}"
] |
public virtual GetNodeResponse GetNode(GetNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetNodeResponseUnmarshaller.Instance;return Invoke<GetNodeResponse>(request, options);}
|
train
| false
|
3,922
|
public CreateCapacityProviderResult createCapacityProvider(CreateCapacityProviderRequest request) {request = beforeClientExecution(request);return executeCreateCapacityProvider(request);}
|
[
"public",
"CreateCapacityProviderResult",
"createCapacityProvider",
"(",
"CreateCapacityProviderRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCapacityProvider",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateCapacityProviderResponse CreateCapacityProvider(CreateCapacityProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCapacityProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCapacityProviderResponseUnmarshaller.Instance;return Invoke<CreateCapacityProviderResponse>(request, options);}
|
train
| false
|
3,923
|
public String[] listAll() throws IOException {List<String> files = new ArrayList<>();NoSuchFileException exc = null;try {for(String f : primaryDir.listAll()) {String ext = getExtension(f);if (primaryExtensions.contains(ext)) {files.add(f);}}} catch (NoSuchFileException e) {exc = e;}try {for(String f : secondaryDir.listAll()) {String ext = getExtension(f);if (primaryExtensions.contains(ext) == false) {files.add(f);}}} catch (NoSuchFileException e) {if (exc != null) {throw exc;}if (files.isEmpty()) {throw e;}}if (exc != null && files.isEmpty()) {throw exc;}String[] result = files.toArray(new String[files.size()]);Arrays.sort(result);return result;}
|
[
"public",
"String",
"[",
"]",
"listAll",
"(",
")",
"throws",
"IOException",
"{",
"List",
"<",
"String",
">",
"files",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"NoSuchFileException",
"exc",
"=",
"null",
";",
"try",
"{",
"for",
"(",
"String",
"f",
":",
"primaryDir",
".",
"listAll",
"(",
")",
")",
"{",
"String",
"ext",
"=",
"getExtension",
"(",
"f",
")",
";",
"if",
"(",
"primaryExtensions",
".",
"contains",
"(",
"ext",
")",
")",
"{",
"files",
".",
"add",
"(",
"f",
")",
";",
"}",
"}",
"}",
"catch",
"(",
"NoSuchFileException",
"e",
")",
"{",
"exc",
"=",
"e",
";",
"}",
"try",
"{",
"for",
"(",
"String",
"f",
":",
"secondaryDir",
".",
"listAll",
"(",
")",
")",
"{",
"String",
"ext",
"=",
"getExtension",
"(",
"f",
")",
";",
"if",
"(",
"primaryExtensions",
".",
"contains",
"(",
"ext",
")",
"==",
"false",
")",
"{",
"files",
".",
"add",
"(",
"f",
")",
";",
"}",
"}",
"}",
"catch",
"(",
"NoSuchFileException",
"e",
")",
"{",
"if",
"(",
"exc",
"!=",
"null",
")",
"{",
"throw",
"exc",
";",
"}",
"if",
"(",
"files",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"e",
";",
"}",
"}",
"if",
"(",
"exc",
"!=",
"null",
"&&",
"files",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"exc",
";",
"}",
"String",
"[",
"]",
"result",
"=",
"files",
".",
"toArray",
"(",
"new",
"String",
"[",
"files",
".",
"size",
"(",
")",
"]",
")",
";",
"Arrays",
".",
"sort",
"(",
"result",
")",
";",
"return",
"result",
";",
"}"
] |
public override string[] ListAll(){ISet<string> files = new JCG.HashSet<string>();DirectoryNotFoundException exc = null;try{foreach (string f in primaryDir.ListAll()){files.Add(f);}}catch (DirectoryNotFoundException e){exc = e;}try{foreach (string f in secondaryDir.ListAll()){files.Add(f);}}catch (DirectoryNotFoundException ){if (exc != null){throw exc;}if (files.Count == 0){throw; }}if (exc != null && files.Count == 0){throw exc;}return files.ToArray();}
|
train
| false
|
3,924
|
public int readUByte() {return readByte() & 0xFF;}
|
[
"public",
"int",
"readUByte",
"(",
")",
"{",
"return",
"readByte",
"(",
")",
"&",
"0xFF",
";",
"}"
] |
public int ReadUByte(){return _rc4.XorByte(_le.ReadUByte());}
|
train
| false
|
3,925
|
public NumberEval(double value) {_value = value;}
|
[
"public",
"NumberEval",
"(",
"double",
"value",
")",
"{",
"_value",
"=",
"value",
";",
"}"
] |
public NumberEval(double value){this._value = value;}
|
train
| false
|
3,926
|
@Override public Iterator<E> iterator() {synchronized (mutex) {return c.iterator();}}
|
[
"@",
"Override",
"public",
"Iterator",
"<",
"E",
">",
"iterator",
"(",
")",
"{",
"synchronized",
"(",
"mutex",
")",
"{",
"return",
"c",
".",
"iterator",
"(",
")",
";",
"}",
"}"
] |
public virtual java.util.Iterator<E> iterator(){lock (mutex){return c.iterator();}}
|
train
| false
|
3,927
|
public String getInflectionType(int wordId) {return null;}
|
[
"public",
"String",
"getInflectionType",
"(",
"int",
"wordId",
")",
"{",
"return",
"null",
";",
"}"
] |
public override string GetInflectionType(int wordId){return null;}
|
train
| false
|
3,928
|
public GetDeliverabilityDashboardOptionsResult getDeliverabilityDashboardOptions(GetDeliverabilityDashboardOptionsRequest request) {request = beforeClientExecution(request);return executeGetDeliverabilityDashboardOptions(request);}
|
[
"public",
"GetDeliverabilityDashboardOptionsResult",
"getDeliverabilityDashboardOptions",
"(",
"GetDeliverabilityDashboardOptionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDeliverabilityDashboardOptions",
"(",
"request",
")",
";",
"}"
] |
public virtual GetDeliverabilityDashboardOptionsResponse GetDeliverabilityDashboardOptions(GetDeliverabilityDashboardOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeliverabilityDashboardOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeliverabilityDashboardOptionsResponseUnmarshaller.Instance;return Invoke<GetDeliverabilityDashboardOptionsResponse>(request, options);}
|
train
| true
|
3,929
|
public static double getExcelDate(LocalDateTime date) {return getExcelDate(date, false);}
|
[
"public",
"static",
"double",
"getExcelDate",
"(",
"LocalDateTime",
"date",
")",
"{",
"return",
"getExcelDate",
"(",
"date",
",",
"false",
")",
";",
"}"
] |
public static double GetExcelDate(DateTime date){return GetExcelDate(date, false);}
|
train
| false
|
3,930
|
public String getBaseForm(int wordId, char surface[], int off, int len) {return null; }
|
[
"public",
"String",
"getBaseForm",
"(",
"int",
"wordId",
",",
"char",
"surface",
"[",
"]",
",",
"int",
"off",
",",
"int",
"len",
")",
"{",
"return",
"null",
";",
"}"
] |
public string GetBaseForm(int wordId, char[] surface, int off, int len){return null; }
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.