<commit_before>#ifndef SDR_STORAGE_CONCEPT_H_
#define SDR_STORAGE_CONCEPT_H_

#include "constants.hpp"
#include "concept.hpp"


#include <unordered_set>
#include <iterator>
#include <vector>


namespace sdr
{

// represents a concept in storage
// designed to be able to be quickly queried and modified
struct storage_concept
{
    // store the positions of all set bits from 0 -> width
    sdr::hash_set<sdr::position_t> positions;

    storage_concept(const sdr::concept & concept)
     : positions()
    {
        sdr::hash_set_init(positions);
        fill(concept);
    }

    void fill(const sdr::concept & concept)<commit_msg>remove include for unnecessary type<commit_after>#ifndef SDR_STORAGE_CONCEPT_H_
#define SDR_STORAGE_CONCEPT_H_

#include "constants.hpp"
#include "concept.hpp"


#include <iterator>
#include <vector>


namespace sdr
{

// represents a concept in storage
// designed to be able to be quickly queried and modified
struct storage_concept
{
    // store the positions of all set bits from 0 -> width
    sdr::hash_set<sdr::position_t> positions;

    storage_concept(const sdr::concept & concept)
     : positions()
    {
        sdr::hash_set_init(positions);
        fill(concept);
    }

    void fill(const sdr::concept & concept)
{'fraction_non_alphanumeric': 0.0958036421219319, 'fraction_numerical': 0.001583531274742676, 'mean_word_length': 3.9182879377431905, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, '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': '2985234', 'n_tokens_mistral': 420, 'n_tokens_neox': 396, 'n_words': 111}