<commit_before>#ifndef MGF_CONVERT_HPP
#define MGF_CONVERT_HPP

namespace mgf
{
    class Convert
    {
        public:
            Convert() = delete;
            Convert(const Convert&) = delete;
            Convert& operator=(const Convert&) = delete;

            static constexpr float MH = 1.00794f; ///< Masse d'un Hydrogène en Da
            static constexpr float MO = 15.99943f; ///< masse d'un carbone en Da
            static constexpr float MH2O = (MO + 2*MH); ///< masse de H2O en Da
            
            static constexpr double mz_to_masse(const double mz,const int charge){return mz*charge - charge*MH;}

        private:
    };
}
#endif<commit_msg>add doc to Convert<commit_after>#ifndef MGF_CONVERT_HPP
#define MGF_CONVERT_HPP

namespace mgf
{
    /**
     * \brief A class used to convert units, and to all maths
     */
    class Convert
    {
        public:
            Convert() = delete;
            Convert(const Convert&) = delete;
            Convert& operator=(const Convert&) = delete;

            static constexpr float MH = 1.00794f; ///< Mass of Hydrogen in Da
            static constexpr float MO = 15.99943f; ///< mass of carbon in Da
            static constexpr float MH2O = (MO + 2*MH); ///< mass of H2O if Da
            
            /**
             * \brief convert a mz  in mass
             * \param mz the M/Z ratio
             * \param charge The charge (Z)
             * \result the calculated mass in Da
             */
            static constexpr double mz_to_masse(const double mz,const int charge){return mz*charge - charge*MH;}

        private:
    };
}
#endif
{'fraction_non_alphanumeric': 0.09259259259259259, 'fraction_numerical': 0.019753086419753086, 'mean_word_length': 1.8044982698961938, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, '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': '4390914', 'n_tokens_mistral': 509, 'n_tokens_neox': 456, 'n_words': 157}