<commit_before>#include "ZapdosApp.h"
#include "Moose.h"
#include "AppFactory.h"
#include "MooseSyntax.h"
#include "SquirrelApp.h"

template <>
InputParameters
validParams<ZapdosApp>()
{
  InputParameters params = validParams<MooseApp>();

  params.set<bool>("use_legacy_output_syntax") = false;
  params.set<bool>("use_legacy_uo_initialization") = false;
  params.set<bool>("use_legacy_uo_aux_computation") = false;
  return params;
}

ZapdosApp::ZapdosApp(InputParameters parameters) : MooseApp(parameters)
{

  Moose::registerObjects(_factory);
  SquirrelApp::registerObjects(_factory);
  ZapdosApp::registerObjects(_factory);

  Moose::associateSyntax(_syntax, _action_factory);
  SquirrelApp::associateSyntax(_syntax, _action_factory);
  ZapdosApp::associateSyntax(_syntax, _action_factory);
}

ZapdosApp::~ZapdosApp() {}

extern "C" void
ZapdosApp__registerApps()
{
  ZapdosApp::registerApps();
}
void
ZapdosApp::registerApps()
{
  registerApp(ZapdosApp);
}

void
ZapdosApp::registerObjects(Factory & factory)
{
  Registry::registerObjectsTo(factory, {"ZapdosApp"});
}

void
ZapdosApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
  // add actions
  Registry::registerActionsTo(action_factory, {"ZapdosApp"});
  syntax.registerActionSyntax("AddLotsOfCoeffDiffusion", "LotsOfCoeffDiffusion");
  syntax.registerActionSyntax("AddLotsOfVariables", "LotsOfVariables");
  syntax.registerActionSyntax("AddLotsOfSources", "LotsOfSources");
  syntax.registerActionSyntax("AddLotsOfTimeDerivatives", "LotsOfTimeDerivatives");
  syntax.registerActionSyntax("AddLotsOfEFieldAdvection", "LotsOfEFieldAdvection");
  syntax.registerActionSyntax("AddLotsOfPotentialDrivenArtificialDiff",
                              "LotsOfPotentialDrivenArtificialDiff");
}
<commit_msg>Add registerKnownLabel() call.<commit_after>#include "ZapdosApp.h"
#include "Moose.h"
#include "AppFactory.h"
#include "MooseSyntax.h"
#include "SquirrelApp.h"

template <>
InputParameters
validParams<ZapdosApp>()
{
  InputParameters params = validParams<MooseApp>();

  params.set<bool>("use_legacy_output_syntax") = false;
  params.set<bool>("use_legacy_uo_initialization") = false;
  params.set<bool>("use_legacy_uo_aux_computation") = false;
  return params;
}

// When using the new Registry system, this line is required so that
// dependent apps know about the ZapdosApp label.
registerKnownLabel("ZapdosApp");

ZapdosApp::ZapdosApp(InputParameters parameters) : MooseApp(parameters)
{

  Moose::registerObjects(_factory);
  SquirrelApp::registerObjects(_factory);
  ZapdosApp::registerObjects(_factory);

  Moose::associateSyntax(_syntax, _action_factory);
  SquirrelApp::associateSyntax(_syntax, _action_factory);
  ZapdosApp::associateSyntax(_syntax, _action_factory);
}

ZapdosApp::~ZapdosApp() {}

extern "C" void
ZapdosApp__registerApps()
{
  ZapdosApp::registerApps();
}
void
ZapdosApp::registerApps()
{
  registerApp(ZapdosApp);
}

void
ZapdosApp::registerObjects(Factory & factory)
{
  Registry::registerObjectsTo(factory, {"ZapdosApp"});
}

void
ZapdosApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
{
  // add actions
  Registry::registerActionsTo(action_factory, {"ZapdosApp"});
  syntax.registerActionSyntax("AddLotsOfCoeffDiffusion", "LotsOfCoeffDiffusion");
  syntax.registerActionSyntax("AddLotsOfVariables", "LotsOfVariables");
  syntax.registerActionSyntax("AddLotsOfSources", "LotsOfSources");
  syntax.registerActionSyntax("AddLotsOfTimeDerivatives", "LotsOfTimeDerivatives");
  syntax.registerActionSyntax("AddLotsOfEFieldAdvection", "LotsOfEFieldAdvection");
  syntax.registerActionSyntax("AddLotsOfPotentialDrivenArtificialDiff",
                              "LotsOfPotentialDrivenArtificialDiff");
}

{'fraction_non_alphanumeric': 0.12466559657570893, 'fraction_numerical': 0.0, 'mean_word_length': 7.944976076555024, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2445077', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1232, 'n_words': 164}