<commit_before>#include <iostream>
#include <vector>
#include <algorithm>

#include "randgen.h"

using namespace std;

double randgen(char rand_type, double para1, double para2)
{
  switch (rand_type)
    {
    case 'U':
      {
	boost::random::uniform_01<boost::mt19937 &> zeroone(rng);
	return zeroone();
	break;
      }
    case 'N':
      {
	double mean = para1;
	double std_dev = para2;
	boost::normal_distribution<> nd(mean,std_dev);
	boost::variate_generator<boost::mt19937 &,boost::normal_distribution<> > norm_rnd(rng,nd);
	return norm_rnd();
	break;
      }
    case 'P':
      {
	double lambda = (para1 == 0? para2:para1);
	boost::poisson_distribution<> pd(lambda);
	boost::variate_generator<boost::mt19937 &,boost::poisson_distribution<> > poisson_rnd(rng,pd);
	return poisson_rnd();
	break;
      }
    case 'E':
      {
	double lambda = (para1 == 0? para2:para1);
	boost::exponential_distribution<> expd(lambda);
	boost::variate_generator<boost::mt19937 &,boost::exponential_distribution<> > exp_rnd(rng,expd);
	return exp_rnd();
	break;
      }
    default:
	  return -9999.0;
      break;
    }
	
	// EJF -- return dummy value to avoid warning
    return -9999.0;
}<commit_msg>Remove consecutive `break`s after `return`s<commit_after>#include <iostream>
#include <vector>
#include <algorithm>

#include "randgen.h"

using namespace std;

double randgen(char rand_type, double para1, double para2)
{
  switch (rand_type)
    {
    case 'U':
      {
	boost::random::uniform_01<boost::mt19937 &> zeroone(rng);
	return zeroone();
      }
    case 'N':
      {
	double mean = para1;
	double std_dev = para2;
	boost::normal_distribution<> nd(mean,std_dev);
	boost::variate_generator<boost::mt19937 &,boost::normal_distribution<> > norm_rnd(rng,nd);
	return norm_rnd();
      }
    case 'P':
      {
	double lambda = (para1 == 0? para2:para1);
	boost::poisson_distribution<> pd(lambda);
	boost::variate_generator<boost::mt19937 &,boost::poisson_distribution<> > poisson_rnd(rng,pd);
	return poisson_rnd();
      }
    case 'E':
      {
	double lambda = (para1 == 0? para2:para1);
	boost::exponential_distribution<> expd(lambda);
	boost::variate_generator<boost::mt19937 &,boost::exponential_distribution<> > exp_rnd(rng,expd);
	return exp_rnd();
      }
    default:
	  return -9999.0;
    }
	
	// EJF -- return dummy value to avoid warning
    return -9999.0;
}
{'fraction_non_alphanumeric': 0.14888232813159005, 'fraction_numerical': 0.037115141290594685, 'mean_word_length': 4.179039301310044, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '1405655', 'n_tokens_mistral': 915, 'n_tokens_neox': 853, 'n_words': 171}