<commit_before>#include "simulation/AbstractSimulation.hpp"
#include "solver/AbstractSolver.hpp"

namespace Simulation
{

    AbstractSimulation::AbstractSimulation(const Initialization::SimulationPlan & in, const vector<std::shared_ptr<Solver::ISolver>> & solver)
            : _solver(solver),
              _maxIterations(std::numeric_limits<size_type>::max() - 2)
    {

        assert(solver.size() > 0);
        _simulationEndTime = std::numeric_limits<real_type>::max();
        for (size_type i = 0; i < _solver.size(); ++i)
            if (_solver[i]->getEndTime() < _simulationEndTime)  // select simulation end by fmu which is shortest in time
                _simulationEndTime = _solver[i]->getEndTime();
    }

    const vector<Solver::SolverSPtr>& AbstractSimulation::getSolver() const
    {
        return _solver;
    }

    vector<Solver::SolverSPtr>& AbstractSimulation::getSolver()
    {
        return _solver;
    }

    real_type AbstractSimulation::getSimulationEndTime() const
    {
        return _simulationEndTime;
    }

    void AbstractSimulation::initialize()
    {
        for (Solver::SolverSPtr& solver : _solver)
        {
            solver->initialize();
        }
    }

    void AbstractSimulation::setSimulationEndTime(real_type simEnd)
    {<commit_msg>Cosmetic changes: Remove empty line and dummy braces<commit_after>#include "simulation/AbstractSimulation.hpp"
#include "solver/AbstractSolver.hpp"

namespace Simulation
{

    AbstractSimulation::AbstractSimulation(const Initialization::SimulationPlan & in, const vector<std::shared_ptr<Solver::ISolver>> & solver)
            : _solver(solver),
              _maxIterations(std::numeric_limits<size_type>::max() - 2)
    {
        assert(solver.size() > 0);
        _simulationEndTime = std::numeric_limits<real_type>::max();
        for (size_type i = 0; i < _solver.size(); ++i)
            if (_solver[i]->getEndTime() < _simulationEndTime)  // select simulation end by fmu which is shortest in time
                _simulationEndTime = _solver[i]->getEndTime();
    }

    const vector<Solver::SolverSPtr>& AbstractSimulation::getSolver() const
    {
        return _solver;
    }

    vector<Solver::SolverSPtr>& AbstractSimulation::getSolver()
    {
        return _solver;
    }

    real_type AbstractSimulation::getSimulationEndTime() const
    {
        return _simulationEndTime;
    }

    void AbstractSimulation::initialize()
    {
        for (Solver::SolverSPtr& solver : _solver)
            solver->initialize();
    }

    void AbstractSimulation::setSimulationEndTime(real_type simEnd)
    {
{'fraction_non_alphanumeric': 0.11464723926380369, 'fraction_numerical': 0.0023006134969325155, 'mean_word_length': 3.1744, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, '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': '351453', 'n_tokens_mistral': 809, 'n_tokens_neox': 781, 'n_words': 139}