mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-06-01 01:54:00 +00:00
Fix style guide errors
This commit is contained in:
@@ -9,21 +9,23 @@ Checks: >
|
|||||||
-google-runtime-references
|
-google-runtime-references
|
||||||
|
|
||||||
CheckOptions:
|
CheckOptions:
|
||||||
# Enforce Google Naming Conventions
|
# Enforce Google Naming Conventions with valid clang-tidy strings
|
||||||
|
- key: readability-identifier-naming.ClassCase
|
||||||
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.ClassMemberCase
|
- key: readability-identifier-naming.ClassMemberCase
|
||||||
value: snake_case
|
value: lower_case
|
||||||
- key: readability-identifier-naming.ClassMemberSuffix
|
- key: readability-identifier-naming.ClassMemberSuffix
|
||||||
value: _
|
value: _
|
||||||
- key: readability-identifier-naming.ClassCase
|
|
||||||
value: PascalCase
|
|
||||||
- key: readability-identifier-naming.FunctionCase
|
- key: readability-identifier-naming.FunctionCase
|
||||||
value: PascalCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.StructCase
|
- key: readability-identifier-naming.StructCase
|
||||||
value: PascalCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.VariableCase
|
- key: readability-identifier-naming.VariableCase
|
||||||
value: snake_case
|
value: lower_case
|
||||||
- key: readability-identifier-naming.GlobalConstantCase
|
- key: readability-identifier-naming.GlobalConstantCase
|
||||||
value: kPascalCase
|
value: CamelCase
|
||||||
|
- key: readability-identifier-naming.GlobalConstantPrefix
|
||||||
|
value: k
|
||||||
|
|
||||||
# Ensure C++20 Modernization
|
# Ensure C++20 Modernization
|
||||||
- key: modernize-make-unique.MakeSmartPtrFunction
|
- key: modernize-make-unique.MakeSmartPtrFunction
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
struct llama_model;
|
struct llama_model;
|
||||||
struct llama_context;
|
struct llama_context;
|
||||||
struct llama_sampler;
|
struct LlamaSampler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Data generator implementation backed by llama.cpp.
|
* @brief Data generator implementation backed by llama.cpp.
|
||||||
@@ -74,7 +74,7 @@ class LlamaGenerator final : public DataGenerator {
|
|||||||
SamplerState(SamplerState&&) = delete;
|
SamplerState(SamplerState&&) = delete;
|
||||||
SamplerState& operator=(SamplerState&&) = delete;
|
SamplerState& operator=(SamplerState&&) = delete;
|
||||||
|
|
||||||
llama_sampler* chain = nullptr;
|
LlamaSampler* chain = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -44,18 +44,18 @@ class MockGenerator final : public DataGenerator {
|
|||||||
*/
|
*/
|
||||||
static std::size_t DeterministicHash(const Location& location);
|
static std::size_t DeterministicHash(const Location& location);
|
||||||
|
|
||||||
inline static constexpr std::array<std::string_view, 18> kBreweryAdjectives =
|
static constexpr std::array<std::string_view, 18> kBreweryAdjectives =
|
||||||
{"Craft", "Heritage", "Local", "Artisan", "Pioneer", "Golden",
|
{"Craft", "Heritage", "Local", "Artisan", "Pioneer", "Golden",
|
||||||
"Modern", "Classic", "Summit", "Northern", "Riverstone", "Barrel",
|
"Modern", "Classic", "Summit", "Northern", "Riverstone", "Barrel",
|
||||||
"Hinterland", "Harbor", "Wild", "Granite", "Copper", "Maple"};
|
"Hinterland", "Harbor", "Wild", "Granite", "Copper", "Maple"};
|
||||||
|
|
||||||
inline static constexpr std::array<std::string_view, 18> kBreweryNouns = {
|
static constexpr std::array<std::string_view, 18> kBreweryNouns = {
|
||||||
"Brewing Co.", "Brewery", "Bier Haus", "Taproom", "Works",
|
"Brewing Co.", "Brewery", "Bier Haus", "Taproom", "Works",
|
||||||
"House", "Fermentery", "Ale Co.", "Cellars", "Collective",
|
"House", "Fermentery", "Ale Co.", "Cellars", "Collective",
|
||||||
"Project", "Foundry", "Malthouse", "Public House", "Co-op",
|
"Project", "Foundry", "Malthouse", "Public House", "Co-op",
|
||||||
"Lab", "Beer Hall", "Guild"};
|
"Lab", "Beer Hall", "Guild"};
|
||||||
|
|
||||||
inline static constexpr std::array<std::string_view, 18>
|
static constexpr std::array<std::string_view, 18>
|
||||||
kBreweryDescriptions = {
|
kBreweryDescriptions = {
|
||||||
"Handcrafted pale ales and seasonal IPAs with local ingredients.",
|
"Handcrafted pale ales and seasonal IPAs with local ingredients.",
|
||||||
"Traditional lagers and experimental sours in small batches.",
|
"Traditional lagers and experimental sours in small batches.",
|
||||||
@@ -90,14 +90,14 @@ class MockGenerator final : public DataGenerator {
|
|||||||
"Destination taproom known for balanced IPAs and cocoa-rich "
|
"Destination taproom known for balanced IPAs and cocoa-rich "
|
||||||
"stouts."};
|
"stouts."};
|
||||||
|
|
||||||
inline static constexpr std::array<std::string_view, 18> kUsernames = {
|
static constexpr std::array<std::string_view, 18> kUsernames = {
|
||||||
"hopseeker", "malttrail", "yeastwhisper", "lagerlane",
|
"hopseeker", "malttrail", "yeastwhisper", "lagerlane",
|
||||||
"barrelbound", "foamfinder", "taphunter", "graingeist",
|
"barrelbound", "foamfinder", "taphunter", "graingeist",
|
||||||
"brewscout", "aleatlas", "caskcompass", "hopsandmaps",
|
"brewscout", "aleatlas", "caskcompass", "hopsandmaps",
|
||||||
"mashpilot", "pintnomad", "fermentfriend", "stoutsignal",
|
"mashpilot", "pintnomad", "fermentfriend", "stoutsignal",
|
||||||
"sessionwander", "kettlekeeper"};
|
"sessionwander", "kettlekeeper"};
|
||||||
|
|
||||||
inline static constexpr std::array<std::string_view, 18> kBios = {
|
static constexpr std::array<std::string_view, 18> kBios = {
|
||||||
"Always chasing balanced IPAs and crisp lagers across local taprooms.",
|
"Always chasing balanced IPAs and crisp lagers across local taprooms.",
|
||||||
"Weekend brewery explorer with a soft spot for dark, roasty stouts.",
|
"Weekend brewery explorer with a soft spot for dark, roasty stouts.",
|
||||||
"Documenting tiny brewpubs, fresh pours, and unforgettable beer "
|
"Documenting tiny brewpubs, fresh pours, and unforgettable beer "
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
*/
|
*/
|
||||||
struct BreweryResult {
|
struct BreweryResult {
|
||||||
/// @brief Brewery display name.
|
/// @brief Brewery display name.
|
||||||
std::string name;
|
std::string name{};
|
||||||
|
|
||||||
/// @brief Brewery description text.
|
/// @brief Brewery description text.
|
||||||
std::string description;
|
std::string description{};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BIERGARTEN_PIPELINE_INCLUDES_DATA_MODEL_BREWERY_RESULT_H_
|
#endif // BIERGARTEN_PIPELINE_INCLUDES_DATA_MODEL_BREWERY_RESULT_H_
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
struct EnrichedCity {
|
struct EnrichedCity {
|
||||||
Location location;
|
Location location;
|
||||||
std::string region_context;
|
std::string region_context{};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BIERGARTEN_PIPELINE_INCLUDES_DATA_MODEL_ENRICHED_CITY_H_
|
#endif // BIERGARTEN_PIPELINE_INCLUDES_DATA_MODEL_ENRICHED_CITY_H_
|
||||||
|
|||||||
@@ -13,25 +13,25 @@
|
|||||||
*/
|
*/
|
||||||
struct Location {
|
struct Location {
|
||||||
/// @brief City name.
|
/// @brief City name.
|
||||||
std::string city;
|
std::string city{};
|
||||||
|
|
||||||
/// @brief State or province name.
|
/// @brief State or province name.
|
||||||
std::string state_province;
|
std::string state_province{};
|
||||||
|
|
||||||
/// @brief ISO 3166-2 subdivision code.
|
/// @brief ISO 3166-2 subdivision code.
|
||||||
std::string iso3166_2;
|
std::string iso3166_2{};
|
||||||
|
|
||||||
/// @brief Country name.
|
/// @brief Country name.
|
||||||
std::string country;
|
std::string country{};
|
||||||
|
|
||||||
/// @brief ISO 3166-1 country code.
|
/// @brief ISO 3166-1 country code.
|
||||||
std::string iso3166_1;
|
std::string iso3166_1{};
|
||||||
|
|
||||||
/// @brief Latitude in decimal degrees.
|
/// @brief Latitude in decimal degrees.
|
||||||
double latitude;
|
double latitude{};
|
||||||
|
|
||||||
/// @brief Longitude in decimal degrees.
|
/// @brief Longitude in decimal degrees.
|
||||||
double longitude;
|
double longitude{};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BIERGARTEN_PIPELINE_INCLUDES_DATA_MODEL_LOCATION_H_
|
#endif // BIERGARTEN_PIPELINE_INCLUDES_DATA_MODEL_LOCATION_H_
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
*/
|
*/
|
||||||
struct UserResult {
|
struct UserResult {
|
||||||
/// @brief Username handle.
|
/// @brief Username handle.
|
||||||
std::string username;
|
std::string username{};
|
||||||
|
|
||||||
/// @brief Short user biography.
|
/// @brief Short user biography.
|
||||||
std::string bio;
|
std::string bio{};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BIERGARTEN_PIPELINE_INCLUDES_DATA_MODEL_USER_RESULT_H_
|
#endif // BIERGARTEN_PIPELINE_INCLUDES_DATA_MODEL_USER_RESULT_H_
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ std::optional<ApplicationOptions> ParseArguments(const int argc,
|
|||||||
const bool has_llm_params = !variables_map["temperature"].defaulted() ||
|
const bool has_llm_params = !variables_map["temperature"].defaulted() ||
|
||||||
!variables_map["top-p"].defaulted() ||
|
!variables_map["top-p"].defaulted() ||
|
||||||
!variables_map["top-k"].defaulted() ||
|
!variables_map["top-k"].defaulted() ||
|
||||||
!variables_map["seed"].defaulted();
|
!variables_map["seed"].defaulted() = false;
|
||||||
|
|
||||||
if (use_mocked && has_llm_params) {
|
if (use_mocked && has_llm_params) {
|
||||||
spdlog::warn(
|
spdlog::warn(
|
||||||
|
|||||||
Reference in New Issue
Block a user