<commit_before>/*
 * distribution_params.C
 *
 * Created on Nov 27, 2013
 *  Author cogljj (<NAME>)
 */

#include "distribution_params.h"

template<>
InputParameters validParams<distribution>(){

  InputParameters params = validParams<RavenObject>();

  params.addParam<double>("xMin", -std::numeric_limits<double>::max( ),"Lower bound");
  params.addParam<double>("xMax", std::numeric_limits<double>::max( ),"Upper bound");

   params.addParam< std::vector<double> >("PBwindow", "Probability window");
   params.addParam< std::vector<double> >("Vwindow" , "Value window");

   params.addParam<double>("ProbabilityThreshold", 1.0, "Probability Threshold");

   params.addParam<unsigned int>("seed", _defaultSeed ,"RNG seed");
   params.addRequiredParam<std::string>("type","distribution type");
   params.addParam<unsigned int>("truncation", 1 , "Type of truncation"); // Truncation types: 1) pdf_prime(x) = pdf(x)*c   2) [to do] pdf_prime(x) = pdf(x)+c
   params.addPrivateParam<std::string>("built_by_action", "add_distribution");
   params.addParam<unsigned int>("force_distribution", 0 ,"force distribution to be evaluated at: if (0) Don't force distribution, (1) xMin, (2) Mean, (3) xMax");

   return params;
}

class distribution;<commit_msg>Updating to remove old built_by_action.<commit_after>/*
 * distribution_params.C
 *
 * Created on Nov 27, 2013
 *  Author cogljj (<NAME>)
 */

#include "distribution_params.h"

template<>
InputParameters validParams<distribution>(){

  InputParameters params = validParams<RavenObject>();

  params.addParam<double>("xMin", -std::numeric_limits<double>::max( ),"Lower bound");
  params.addParam<double>("xMax", std::numeric_limits<double>::max( ),"Upper bound");

   params.addParam< std::vector<double> >("PBwindow", "Probability window");
   params.addParam< std::vector<double> >("Vwindow" , "Value window");

   params.addParam<double>("ProbabilityThreshold", 1.0, "Probability Threshold");

   params.addParam<unsigned int>("seed", _defaultSeed ,"RNG seed");
   params.addRequiredParam<std::string>("type","distribution type");
   params.addParam<unsigned int>("truncation", 1 , "Type of truncation"); // Truncation types: 1) pdf_prime(x) = pdf(x)*c   2) [to do] pdf_prime(x) = pdf(x)+c
   params.addParam<unsigned int>("force_distribution", 0 ,"force distribution to be evaluated at: if (0) Don't force distribution, (1) xMin, (2) Mean, (3) xMax");

   params.registerBase("distribution");
   return params;
}

class distribution;
{'fraction_non_alphanumeric': 0.17062374245472836, 'fraction_numerical': 0.012877263581488933, 'mean_word_length': 6.290322580645161, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, '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': '5311311', 'n_tokens_mistral': 818, 'n_tokens_neox': 769, 'n_words': 180}