<commit_before>#ifndef FIBONACCI_H
#define FIBONACCI_H

#include "../function.h"

namespace BuiltIn {
namespace Optimization {

// Class for finding minimum of function with Fibonacci method
class Fibonacci : public Function
{
public:
	Fibonacci();

	Rpn::Operand calculate(FunctionCalculator *calculator, QList<Rpn::Operand> actualArguments);
	QList<Rpn::Argument> requiredArguments();
	Rpn::OperandType returnValueType();

private:
	struct Interval {
		Number leftBorder;
		Number rightBorder;
	};

	Interval m_sourceInterval;
	FunctionCalculator* m_calculator;
	QString m_functionName;
	Number m_resultIntervalLength;
	Number m_differenceConstant;
	Number m_iterationsNumber;
<commit_msg>Fix for impicit conversions from double to int and vise versa.<commit_after>#ifndef FIBONACCI_H
#define FIBONACCI_H

#include "../function.h"

namespace BuiltIn {
namespace Optimization {

// Class for finding minimum of function with Fibonacci method
class Fibonacci : public Function
{
public:
	Fibonacci();

	Rpn::Operand calculate(FunctionCalculator *calculator, QList<Rpn::Operand> actualArguments);
	QList<Rpn::Argument> requiredArguments();
	Rpn::OperandType returnValueType();

private:
	struct Interval {
		Number leftBorder;
		Number rightBorder;
	};

	Interval m_sourceInterval;
	FunctionCalculator* m_calculator;
	QString m_functionName;
	Number m_resultIntervalLength;
	Number m_differenceConstant;
	int m_iterationsNumber;

{'fraction_non_alphanumeric': 0.0819327731092437, 'fraction_numerical': 0.0, 'mean_word_length': 6.601063829787234, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6632515', 'n_tokens_mistral': 459, 'n_tokens_neox': 440, 'n_words': 116}