Skip to content

Commit eec2ce2

Browse files
committed
Use clang-format
1 parent c20d6c2 commit eec2ce2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/core/algorithms/association_rules/candidate_hash_tree.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ void CandidateHashTree::AppendRow(LeafRow row, HashTreeNode& subtree_root) {
1313
unsigned const max_level_number = row.candidate_node->items.size();
1414
subtree_root.candidates.push_back(std::move(row));
1515

16-
/* If the number of candidates in a leaf node is more than min_threshold, a leaf node becomes
17-
* an internal node and the tree expands. But if there is no more levels to expand (maximum
18-
* level number equals to the cardinality of a candidates), min_threshold is ignored
19-
* and a new candidates are just appended without trying to further grow the tree.*/
16+
/* If the number of candidates in a leaf node is more than min_threshold, a leaf node
17+
* becomes an internal node and the tree expands. But if there is no more levels to expand
18+
* (maximum level number equals to the cardinality of a candidates), min_threshold is
19+
* ignored and a new candidates are just appended without trying to further grow the tree.*/
2020
if (subtree_root.candidates.size() > min_threshold_ &&
2121
subtree_root.level_number <= max_level_number) {
2222
AddLevel(subtree_root);

src/core/algorithms/fd/dfd/lattice_traversal/lattice_traversal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ std::list<Vertical> LatticeTraversal::Minimize(
303303
}
304304

305305
void LatticeTraversal::SubtractSets(std::unordered_set<Vertical>& set,
306-
std::unordered_set<Vertical> const& set_to_subtract) {
306+
std::unordered_set<Vertical> const& set_to_subtract) {
307307
for (auto const& node_to_delete : set_to_subtract) {
308308
auto found_element_iter = set.find(node_to_delete);
309309
if (found_element_iter != set.end()) {

src/core/algorithms/fd/dfd/lattice_traversal/lattice_traversal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class LatticeTraversal {
3636
std::list<Vertical> Minimize(std::unordered_set<Vertical> const& node_list) const;
3737
Vertical const& TakeRandom(std::unordered_set<Vertical>& node_set);
3838
static void SubtractSets(std::unordered_set<Vertical>& set,
39-
std::unordered_set<Vertical> const& set_to_subtract);
39+
std::unordered_set<Vertical> const& set_to_subtract);
4040

4141
public:
4242
LatticeTraversal(Column const* const rhs, ColumnLayoutRelationData const* const relation,

0 commit comments

Comments
 (0)