<commit_before>/**
 * Copyright (c) 2014, Platypus LLC. All rights reserved.
 */
#ifndef PLATYPUS_CONTROLLER_H
#define PLATYPUS_CONTROLLER_H

#include "Platypus.h"
#include "Board.h"
#include <array>

namespace platypus
{
namespace impl
{

/** This class actually implements the functionality of the Controller. */
class ControllerSingleton
{
public:
    setDriveModule(DrivePort &device);
    setDriveModules(DrivePort device[]);

    setMultiModule(MultiPort &device);
    setMultiModules(MultiPort device[]);

    Led& led() const;
    float battery() const;

    Stream &command() const;
    Stream &console() const;

protected:
    Controller();
    virtual ~Controller();

    Controller(const &Controller) = delete;
    void operator=(const Controller&) = delete;

    std::array<platypus::DrivePort, platypus::board::NUM_DRIVE_PORTS) drivePorts_;
    std::array<platypus::MultiPort, platypus::board::NUM_MULTI_PORTS) multiPorts_;
};

}
}

#endif // PLATYPUS_CONTROLLER_H<commit_msg>Reverted the controller.<commit_after>/**
 * Copyright (c) 2014, Platypus LLC. All rights reserved.
 */
#ifndef PLATYPUS_CONTROLLER_H
#define PLATYPUS_CONTROLLER_H

#include "Platypus.h"
#include "Board.h"
#include <array>

namespace platypus
{
namespace impl
{

class Controller : public platypus::Controller 
{
public:
    Controller();

    setDriveModule(DrivePort &device);
    setDriveModules(DrivePort device[]);

    setMultiModule(MultiPort &device);
    setMultiModules(MultiPort device[]);

    Led& led() const;
    float battery() const;

    Stream &command() const;
    Stream &console() const;

protected:
    Controller(const Controller &c) = delete;
    virtual ~Controller();

    std::array<platypus::DrivePort, platypus::board::NUM_DRIVE_PORTS) drivePorts_;
    std::array<platypus::MultiPort, platypus::board::NUM_MULTI_PORTS) multiPorts_;
};

}
}

#endif // PLATYPUS_CONTROLLER_H
{'fraction_non_alphanumeric': 0.1226215644820296, 'fraction_numerical': 0.004228329809725159, 'mean_word_length': 4.952830188679245, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '5754304', 'n_tokens_mistral': 653, 'n_tokens_neox': 628, 'n_words': 139}