<commit_before>#include "SolidMaterialProperties.h"
#include "R7Conversion.h"

template<>
InputParameters validParams<SolidMaterialProperties>()
{
  InputParameters params = validParams<GeneralUserObject>();

  params.addParam<std::string>("k", "Thermal conductivity");
  params.addParam<std::string>("Cp", "Specific heat");
  params.addParam<std::string>("rho", "Density");

  // These are here for RAVEN to be able to control these values
  params.addPrivateParam<Real>("thermal_conductivity");
  params.addPrivateParam<Real>("specific_heat");
  params.addPrivateParam<Real>("density");

  params.registerBase("MaterialProperties");

  return params;
}

SolidMaterialProperties::SolidMaterialProperties(const std::string & name, InputParameters parameters) :
    GeneralUserObject(name, parameters),
    _k(NULL),
    _k_const(getParam<Real>("thermal_conductivity")),
    _Cp(NULL),
    _Cp_const(getParam<Real>("specific_heat")),
    _rho(NULL),
    _rho_const(getParam<Real>("density"))
{
  std::string s;

  s = getParam<std::string>("k");
  if (isNumber(s))
    this->parameters().set<Real>("thermal_conductivity") = toNumber(s);
  else
    _k = &getFunctionByName(s);

  s = getParam<std::string>("Cp");
  if (isNumber(s))
    this->parameters().set<Real>("specific_heat") = toNumber(s);
  else
    _Cp = &getFunctionByName(s);<commit_msg>Hide parameters that have no effect<commit_after>#include "SolidMaterialProperties.h"
#include "R7Conversion.h"

template<>
InputParameters validParams<SolidMaterialProperties>()
{
  InputParameters params = validParams<GeneralUserObject>();

  params.addParam<std::string>("k", "Thermal conductivity");
  params.addParam<std::string>("Cp", "Specific heat");
  params.addParam<std::string>("rho", "Density");

  // These are here for RAVEN to be able to control these values
  params.addPrivateParam<Real>("thermal_conductivity");
  params.addPrivateParam<Real>("specific_heat");
  params.addPrivateParam<Real>("density");

  params.addPrivateParam<MooseEnum>("execute_on");
  params.addPrivateParam<bool>("use_displaced_mesh");
  params.registerBase("MaterialProperties");

  return params;
}

SolidMaterialProperties::SolidMaterialProperties(const std::string & name, InputParameters parameters) :
    GeneralUserObject(name, parameters),
    _k(NULL),
    _k_const(getParam<Real>("thermal_conductivity")),
    _Cp(NULL),
    _Cp_const(getParam<Real>("specific_heat")),
    _rho(NULL),
    _rho_const(getParam<Real>("density"))
{
  std::string s;

  s = getParam<std::string>("k");
  if (isNumber(s))
    this->parameters().set<Real>("thermal_conductivity") = toNumber(s);
  else
    _k = &getFunctionByName(s);

  s = getParam<std::string>("Cp");
  if (isNumber(s))
    this->parameters().set<Real>("specific_heat") = toNumber(s);
  else
    _Cp = &getFunctionByName(s);
{'fraction_non_alphanumeric': 0.15963107484923733, 'fraction_numerical': 0.000709471443774388, 'mean_word_length': 6.4603174603174605, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 41, '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': '5446627', 'n_tokens_mistral': 908, 'n_tokens_neox': 900, 'n_words': 144}