Skip to content

Commit

Permalink
Use clang-format and fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
PodushkaPIR committed Feb 25, 2025
1 parent 439bde1 commit 52b3cad
Show file tree
Hide file tree
Showing 419 changed files with 2,937 additions and 2,460 deletions.
30 changes: 15 additions & 15 deletions src/core/algorithms/algebraic_constraints/ac_algorithm.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#include "ac_algorithm.h"

#include <algorithm> // for find_if, sort
#include <algorithm> // for find_if, sort
#include <assert.h> // for assert
#include <bits/chrono.h> // for duration_cast
#include <cmath>
#include <iostream>
#include <random>
#include <stdexcept> // for invalid_argument
#include <string_view> // for basic_string_...
#include <utility> // for move, pair

#include <assert.h> // for assert
#include <bits/chrono.h> // for duration_cast
#include <boost/any.hpp> // for any
#include <boost/type_index/type_index_facade.hpp> // for operator==
#include <stdexcept> // for invalid_argument
#include <string_view> // for basic_string_...
#include <utility> // for move, pair

#include <boost/any.hpp> // for any
#include <boost/type_index/type_index_facade.hpp> // for operator==
#include <easylogging++.h>

#include "algebraic_constraints/ac.h" // for ACPair
Expand All @@ -25,12 +25,12 @@
#include "common_option.h" // for CommonOption
#include "config/exceptions.h"
#include "config/tabular_data/input_table/option.h"
#include "descriptions.h" // for kDACSeed, kDB...
#include "names.h" // for kWeight, kACSeed
#include "option.h" // for Option
#include "table/column_layout_typed_relation_data.h" // for ColumnLayoutT...
#include "table/typed_column_data.h" // for TypedColumnData
#include "type.h" // for Type
#include "descriptions.h" // for kDACSeed, kDB...
#include "names.h" // for kWeight, kACSeed
#include "option.h" // for Option
#include "table/column_layout_typed_relation_data.h" // for ColumnLayoutT...
#include "table/typed_column_data.h" // for TypedColumnData
#include "type.h" // for Type
#include "types/create_type.h"

namespace algos {
Expand Down
15 changes: 10 additions & 5 deletions src/core/algorithms/algebraic_constraints/ac_algorithm.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <cstddef> // for size_t, byte
#include <cstddef> // for size_t, byte
#include <functional>
#include <memory> // for unique_ptr
#include <memory> // for unique_ptr
#include <vector>

#include <enum.h>
Expand All @@ -13,11 +13,16 @@
#include "bin_operation_enum.h"
#include "config/tabular_data/input_table_type.h"
#include "model/table/column_layout_typed_relation_data.h"
#include "numeric_type.h" // for INumericType
#include "numeric_type.h" // for INumericType
#include "ranges_collection.h"

namespace algos { struct ACException; }
namespace model { class TypedColumnData; }
namespace algos {
struct ACException;
}

namespace model {
class TypedColumnData;
}

namespace algos {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#include "ac_exception_finder.h"

#include <algorithm> // for find_if, sort
#include <memory> // for unique_ptr
#include <algorithm> // for find_if, sort
#include <memory> // for unique_ptr

#include "ac_algorithm.h"
#include "algebraic_constraints/ac_exception.h" // for ACException
#include "algebraic_constraints/ranges_collection.h" // for RangesCollection
#include "algebraic_constraints/typed_column_pair.h" // for TypedColumnPair
#include "bin_operation_enum.h"
#include "builtin.h" // for CompareResult
#include "create_type.h" // for CreateSpecificType
#include "numeric_type.h" // for INumericType
#include "table/typed_column_data.h" // for TypedColumnData
#include "builtin.h" // for CompareResult
#include "create_type.h" // for CreateSpecificType
#include "numeric_type.h" // for INumericType
#include "table/typed_column_data.h" // for TypedColumnData

namespace algos::algebraic_constraints {

Expand Down
13 changes: 9 additions & 4 deletions src/core/algorithms/algebraic_constraints/ac_exception_finder.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
#pragma once

#include <cstddef> // for size_t, byte
#include <utility> // for pair
#include <cstddef> // for size_t, byte
#include <utility> // for pair
#include <vector>

#include "ac_exception.h"

namespace algos { struct RangesCollection; }
namespace model { class TypedColumnData; }
namespace algos {
struct RangesCollection;
}

namespace model {
class TypedColumnData;
}

namespace algos {
class ACAlgorithm;
Expand Down
16 changes: 8 additions & 8 deletions src/core/algorithms/algo_factory.cpp
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#include "algo_factory.h"

#include <algorithm>
#include <iterator> // for back_insert_...
#include <iterator> // for back_insert_...
#include <stdexcept>
#include <type_traits>
#include <utility> // for pair
#include <utility> // for pair
#include <vector>

#include <boost/type_index.hpp> // for type_id
#include <boost/type_index/type_index_facade.hpp> // for operator==
#include <boost/type_index.hpp> // for type_id
#include <boost/type_index/type_index_facade.hpp> // for operator==

#include "algorithm.h" // for Algorithm
#include "algorithm_types.h" // for AlgorithmType
#include "algorithm.h" // for Algorithm
#include "algorithm_types.h" // for AlgorithmType
#include "algorithms/create_algorithm.h"
#include "algorithms/pipelines/typo_miner/typo_miner.h"
#include "config/names.h"
#include "csv_parser/csv_parser.h" // for CSVConfig
#include "tabular_data/input_table_type.h" // for InputTable
#include "csv_parser/csv_parser.h" // for CSVConfig
#include "tabular_data/input_table_type.h" // for InputTable
#include "tabular_data/input_tables_type.h"

namespace algos {
Expand Down
2 changes: 1 addition & 1 deletion src/core/algorithms/algo_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <memory>
#include <string>
#include <string_view>
#include <unordered_map> // for unordered_map
#include <unordered_map> // for unordered_map
#include <unordered_set>

#include <boost/any.hpp>
Expand Down
8 changes: 4 additions & 4 deletions src/core/algorithms/algorithm.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "algorithms/algorithm.h"

#include <stdexcept> // for logic_error
#include <string> // for char_traits, operator+, string
#include <stdexcept> // for logic_error
#include <string> // for char_traits, operator+, string

#include "config/exceptions.h"
#include "ioption.h" // for IOption
#include "progress.h" // for Progress
#include "ioption.h" // for IOption
#include "progress.h" // for Progress

namespace algos {

Expand Down
6 changes: 3 additions & 3 deletions src/core/algorithms/algorithm.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#pragma once

#include <memory> // for unique_ptr, make_unique
#include <assert.h> // for assert
#include <memory> // for unique_ptr, make_unique
#include <stdint.h> // for uint8_t
#include <string_view>
#include <typeindex>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

#include <assert.h> // for assert
#include <boost/any.hpp>
#include <stdint.h> // for uint8_t

#include "config/ioption.h"
#include "config/option.h"
Expand Down
6 changes: 3 additions & 3 deletions src/core/algorithms/association_rules/apriori.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "algorithms/association_rules/apriori.h"

#include <algorithm>
#include <bits/chrono.h> // for duration_cast
#include <cassert>
#include <iterator> // for next, prev
#include <utility> // for move
#include <iterator> // for next, prev
#include <utility> // for move

#include <bits/chrono.h> // for duration_cast
#include <easylogging++.h>

#include "association_rules/ar_algorithm.h" // for ARAlgorithm
Expand Down
8 changes: 4 additions & 4 deletions src/core/algorithms/association_rules/apriori.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#pragma once

#include <list>
#include <memory> // for unique...
#include <memory> // for unique...
#include <queue>
#include <set> // for set
#include <set> // for set
#include <stack>
#include <string> // for string
#include <unordered_map> // for unorde...
#include <string> // for string
#include <unordered_map> // for unorde...
#include <vector>

#include "algorithms/association_rules/candidate_hash_tree.h"
Expand Down
26 changes: 13 additions & 13 deletions src/core/algorithms/association_rules/ar_algorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

#include <algorithm>
#include <cassert>
#include <functional> // for function
#include <iterator> // for back_insert_iter...
#include <stdexcept> // for runtime_error
#include <utility> // for move, pair
#include <functional> // for function
#include <iterator> // for back_insert_iter...
#include <stdexcept> // for runtime_error
#include <utility> // for move, pair

#include <boost/type_index/type_index_facade.hpp> // for operator==
#include <boost/type_index/type_index_facade.hpp> // for operator==
#include <easylogging++.h>

#include "algorithm.h" // for Algorithm
#include "association_rules/ar.h" // for ARStrings, ArIDs
#include "association_rules/ar_algorithm_enums.h" // for InputFormat, ope...
#include "common_option.h" // for CommonOption
#include "algorithm.h" // for Algorithm
#include "association_rules/ar.h" // for ARStrings, ArIDs
#include "association_rules/ar_algorithm_enums.h" // for InputFormat, ope...
#include "common_option.h" // for CommonOption
#include "config/option_using.h"
#include "config/tabular_data/input_table/option.h"
#include "descriptions.h" // for kDFirstColumnTId
#include "names.h" // for kFirstColumnTId
#include "option.h" // for Option
#include "transaction/transactional_data.h" // for TransactionalData
#include "descriptions.h" // for kDFirstColumnTId
#include "names.h" // for kFirstColumnTId
#include "option.h" // for Option
#include "transaction/transactional_data.h" // for TransactionalData

namespace algos {

Expand Down
6 changes: 3 additions & 3 deletions src/core/algorithms/association_rules/ar_algorithm.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma once

#include <memory> // for shared_ptr, __shar...
#include <list>
#include <memory> // for shared_ptr, __shar...
#include <set>
#include <stack>
#include <string> // for string
#include <string_view> // for string_view
#include <string> // for string
#include <string_view> // for string_view
#include <vector>

#include "algorithms/algorithm.h"
Expand Down
4 changes: 2 additions & 2 deletions src/core/algorithms/association_rules/candidate_hash_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <algorithm>
#include <cassert>
#include <iterator> // for next
#include <utility> // for move, pair
#include <iterator> // for next
#include <utility> // for move, pair

#include "association_rules/node.h" // for Node
#include "transaction/itemset.h" // for Itemset
Expand Down
4 changes: 3 additions & 1 deletion src/core/algorithms/association_rules/candidate_hash_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

#include "node.h"

namespace model { class TransactionalData; }
namespace model {
class TransactionalData;
}

namespace algos {

Expand Down
24 changes: 12 additions & 12 deletions src/core/algorithms/cfd/cfd_discovery.cpp
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#include "cfd_discovery.h"

#include <optional> // for optional
#include <stdexcept> // for runtime_error
#include <utility> // for move
#include <optional> // for optional
#include <stdexcept> // for runtime_error
#include <utility> // for move

#include <boost/type_index/type_index_facade.hpp> // for operator==
#include <boost/type_index/type_index_facade.hpp> // for operator==

#include "algorithm.h" // for Algorithm
#include "algorithm.h" // for Algorithm
#include "algorithms/cfd/util/cfd_output_util.h"
#include "cfd/model/cfd_relation_data.h" // for CFDRelationData
#include "cfd/model/cfd_types.h" // for ItemsetCFD, CFDList
#include "cfd/model/raw_cfd.h" // for RawCFD, Attribut...
#include "common_option.h" // for CommonOption
#include "cfd/model/cfd_relation_data.h" // for CFDRelationData
#include "cfd/model/cfd_types.h" // for ItemsetCFD, CFDList
#include "cfd/model/raw_cfd.h" // for RawCFD, Attribut...
#include "common_option.h" // for CommonOption
#include "config/option_using.h"
#include "config/tabular_data/input_table/option.h"
#include "descriptions.h" // for kDCfdColumnsNumber
#include "names.h" // for kCfdColumnsNumber
#include "option.h" // for Option
#include "descriptions.h" // for kDCfdColumnsNumber
#include "names.h" // for kCfdColumnsNumber
#include "option.h" // for Option

// see algorithms/cfd/LICENSE

Expand Down
12 changes: 8 additions & 4 deletions src/core/algorithms/cfd/cfd_discovery.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
#pragma once

#include <memory> // for shared_ptr
#include <string> // for string
#include <string_view> // for string_view
#include <memory> // for shared_ptr
#include <string> // for string
#include <string_view> // for string_view
#include <vector>

#include "algorithms/algorithm.h"
#include "algorithms/cfd/model/cfd_types.h"
#include "config/tabular_data/input_table_type.h"

namespace algos { namespace cfd { class CFDRelationData; } }
namespace algos {
namespace cfd {
class CFDRelationData;
}
} // namespace algos

// see algorithms/cfd/LICENSE

Expand Down
Loading

0 comments on commit 52b3cad

Please sign in to comment.