<commit_before>#include "FFSetup.h"
#include <algorithm>
#include <iostream>

#ifndef NDEBUG
#include <numeric>
#endif

#include "GeomLib.h"


const uint FFSetup::CHARMM_ALIAS_IDX = 0;
const uint FFSetup::EXOTIC_ALIAS_IDX = 1;
const std::string FFSetup::paramFileAlias[] =
{"CHARMM-Style Parameter File", "Exotic Parameter File"};
const double ff_setup::KCAL_PER_MOL_TO_K = 503.21959899;
const double ff_setup::RIJ_OVER_2_TO_SIG = 1.7817974362807;
const double ff_setup::RIJ_TO_SIG = 0.890898718;

const double ff_setup::Bond::FIXED = 99999999;
const double ff_setup::Angle::FIXED = 99999999;

//Map variable names to functions
std::map<std::string, ReadableBaseWithFirst *>
FFSetup::SetReadFunctions(const bool isCHARMM)
{
  std::map<std::string, ReadableBaseWithFirst *> funct;
  //From CHARMM style file.
  funct["BONDS"] = &bond;
  funct["ANGLES"] = &angle;
  funct["DIHEDRALS"] = &dih;
  funct["IMPROPERS"] = &imp;
  if (isCHARMM)
  {
    funct["NONBONDED"] = &mie;
    funct["NBFIX"] = &nbfix;
  }
  else
  {
    //Unique to exotic file
    funct["NONBONDED"] = &mie;
    funct["NONBONDED_MIE"] = &mie;<commit_msg>Fix to read to Imperoper section in parameter file. Still not supoort it by it will read it<commit_after>#include "FFSetup.h"
#include <algorithm>
#include <iostream>

#ifndef NDEBUG
#include <numeric>
#endif

#include "GeomLib.h"


const uint FFSetup::CHARMM_ALIAS_IDX = 0;
const uint FFSetup::EXOTIC_ALIAS_IDX = 1;
const std::string FFSetup::paramFileAlias[] =
{"CHARMM-Style Parameter File", "Exotic Parameter File"};
const double ff_setup::KCAL_PER_MOL_TO_K = 503.21959899;
const double ff_setup::RIJ_OVER_2_TO_SIG = 1.7817974362807;
const double ff_setup::RIJ_TO_SIG = 0.890898718;

const double ff_setup::Bond::FIXED = 99999999;
const double ff_setup::Angle::FIXED = 99999999;

//Map variable names to functions
std::map<std::string, ReadableBaseWithFirst *>
FFSetup::SetReadFunctions(const bool isCHARMM)
{
  std::map<std::string, ReadableBaseWithFirst *> funct;
  //From CHARMM style file.
  funct["BONDS"] = &bond;
  funct["ANGLES"] = &angle;
  funct["DIHEDRALS"] = &dih;
  funct["IMPROPER"] = &imp;
  if (isCHARMM)
  {
    funct["NONBONDED"] = &mie;
    funct["NBFIX"] = &nbfix;
  }
  else
  {
    //Unique to exotic file
    funct["NONBONDED"] = &mie;
    funct["NONBONDED_MIE"] = &mie;
{'fraction_non_alphanumeric': 0.14113077255071213, 'fraction_numerical': 0.0466119982736297, 'mean_word_length': 5.3856749311294765, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '1597183', 'n_tokens_mistral': 1003, 'n_tokens_neox': 899, 'n_words': 196}