<commit_before>#ifndef HDF5LABEL_HH
#define HDF5LABEL_HH

#include "art/Framework/Core/EDAnalyzer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "H5Cpp.h"
#include <string>
#include <vector>

namespace fhicl{
  class ParameterSet;
}
namespace art{
  class Event;
  class SubRun;  
}


namespace kevlar{
  class HDF5Label : public art::EDAnalyzer {
    std::string fProducerName;
    std::string fDataSetName;
    std::vector<std::string> fLabels;

    hsize_t fDims[2];// Dataset dimensions
    hsize_t fChunkDims[2];// Chunk Dimensions
    H5::DataSpace fDataSpace;/// Buffer
    H5::DSetCreatPropList fParms;// IO Parameters
    H5::DataSet* fDataSet;// points at dataset
    int fFillValue;
    uint32_t fNEvents;
  public:
    HDF5Image(::fhicl::ParameterSet const& );
    ~HDF5Image();
    void analyze(::art::Event const&) override;
    void beginSubRun(::art::SubRun const&) override;
    void endSubRun(::art::SubRun const&) override;
  };

}

DEFINE_ART_MODULE(kevlar::HDF5Label)
#endif // HDF5LABEL_HH


#endif //HDF5Image_hh
<commit_msg>Bugfix<commit_after>#ifndef HDF5LABEL_HH
#define HDF5LABEL_HH

#include "art/Framework/Core/EDAnalyzer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "H5Cpp.h"
#include <string>
#include <vector>

namespace fhicl{
  class ParameterSet;
}
namespace art{
  class Event;
  class SubRun;  
}


namespace kevlar{
  class HDF5Label : public art::EDAnalyzer {
    std::string fProducerName;
    std::string fDataSetName;
    std::vector<std::string> fLabels;

    hsize_t fDims[2];// Dataset dimensions
    hsize_t fChunkDims[2];// Chunk Dimensions
    H5::DataSpace fDataSpace;/// Buffer
    H5::DSetCreatPropList fParms;// IO Parameters
    H5::DataSet* fDataSet;// points at dataset
    int fFillValue;
    uint32_t fNEvents;
  public:
    HDF5Image(::fhicl::ParameterSet const& );
    ~HDF5Image();
    void analyze(::art::Event const&) override;
    void beginSubRun(::art::SubRun const&) override;
    void endSubRun(::art::SubRun const&) override;
  };

}

DEFINE_ART_MODULE(kevlar::HDF5Label)
#endif // HDF5LABEL_HH

{'fraction_non_alphanumeric': 0.12613908872901677, 'fraction_numerical': 0.01486810551558753, 'mean_word_length': 4.390180878552972, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7634658', 'n_tokens_mistral': 771, 'n_tokens_neox': 774, 'n_words': 160}