<commit_before>#ifndef LIBICS3_ICS3_BAUDRATE_H_
#define LIBICS3_ICS3_BAUDRATE_H_

#include<termios.h>

namespace ics {
  class Baudrate {
  public:
    static constexpr Baudrate RATE115200() noexcept;
    //static constexpr Baudrate RATE625000() noexcept;
    //static constexpr Baudrate RATE1250000() noexcept;
    constexpr speed_t getSpeed() const noexcept;
    constexpr operator speed_t() const noexcept;
    constexpr uint16_t getRomData() const noexcept;
    constexpr operator uint16_t() const noexcept;
  private:
    explicit constexpr Baudrate(speed_t, uint16_t) noexcept;

    const speed_t baudrate;
    const uint16_t romdata;
  };

  constexpr Baudrate Baudrate::RATE115200() noexcept {
    return Baudrate {B115200, 10};
  }

  constexpr speed_t Baudrate::getSpeed() const noexcept {
    return baudrate;
  }

  constexpr Baudrate::operator speed_t() const noexcept {
    return getSpeed();
  }

  constexpr uint16_t Baudrate::getRomData() const noexcept {
    return romdata;
  }

  constexpr Baudrate::operator uint16_t() const noexcept {
    return getRomData();
  }

  constexpr Baudrate::Baudrate(speed_t baudrate, uint16_t romdata) noexcept
  : baudrate {baudrate},
    romdata {romdata}
  {}
}

#endif // LIBICS3_ICS3_BAUDRATE_H_
<commit_msg>Update return type of RATE115200()<commit_after>#ifndef LIBICS3_ICS3_BAUDRATE_H_
#define LIBICS3_ICS3_BAUDRATE_H_

#include<termios.h>

namespace ics {
  class Baudrate {
  public:
    static constexpr const Baudrate RATE115200() noexcept;
    //static constexpr Baudrate RATE625000() noexcept;
    //static constexpr Baudrate RATE1250000() noexcept;
    constexpr speed_t getSpeed() const noexcept;
    constexpr operator speed_t() const noexcept;
    constexpr uint16_t getRomData() const noexcept;
    constexpr operator uint16_t() const noexcept;
  private:
    explicit constexpr Baudrate(speed_t, uint16_t) noexcept;

    const speed_t baudrate;
    const uint16_t romdata;
  };

  constexpr const Baudrate Baudrate::RATE115200() noexcept {
    return Baudrate {B115200, 10};
  }

  constexpr speed_t Baudrate::getSpeed() const noexcept {
    return baudrate;
  }

  constexpr Baudrate::operator speed_t() const noexcept {
    return getSpeed();
  }

  constexpr uint16_t Baudrate::getRomData() const noexcept {
    return romdata;
  }

  constexpr Baudrate::operator uint16_t() const noexcept {
    return getRomData();
  }

  constexpr Baudrate::Baudrate(speed_t baudrate, uint16_t romdata) noexcept
  : baudrate {baudrate},
    romdata {romdata}
  {}
}

#endif // LIBICS3_ICS3_BAUDRATE_H_

{'fraction_non_alphanumeric': 0.08271556769410847, 'fraction_numerical': 0.04369879047990636, 'mean_word_length': 4.330561330561331, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1971715', 'n_tokens_mistral': 975, 'n_tokens_neox': 884, 'n_words': 216}