<commit_before>//Moose Includes
#include "Moose.h"
#include "Parser.h"

// C++ include files that we need
#include <iostream>
#include <fstream>

// libMesh includes
#include "libmesh.h"
#include "perf_log.h"
#include "mesh.h"
//#include "boundary_info.h"
#include "exodusII_io.h"
#include "equation_systems.h"
//#include "nonlinear_solver.h"
//#include "nonlinear_implicit_system.h"
//#include "linear_implicit_system.h"
#include "transient_system.h"
//#include "numeric_vector.h"
//#include "mesh_refinement.h"
#include "getpot.h"

// Initialize default Performance Logging
PerfLog Moose::perf_log("Example8");

// Begin the main program.
int main (int argc, char** argv)
{
// Initialize libMesh and any dependent libaries
  LibMeshInit init (argc, argv);

   // This registers a bunch of common objects that exist in Moose with the factories.
   // that includes several Kernels, BoundaryConditions, AuxKernels and Materials
  Moose::registerObjects();
  
   // Create a GetPot object to parse the command line
  Moose::command_line = new GetPot(argc, argv);
    
  // See if an input file was provided on the command-line
  std::string input_filename = "";
  if ( Moose::command_line->search("-i") )
    input_filename = Moose::command_line->next(input_filename);
  else
    mooseError("Must specify an input file using -i");


  // Use the parser
  Parser p = Parser(input_filename);
  p.execute();

  // Solve the system inside of Moose
  {
    TransientNonlinearImplicitSystem & system =
      Moose::equation_system->get_system<TransientNonlinearImplicitSystem>("NonlinearSystem");

    system.solve();
  }

  // Only bother with exodus outputs
  if (Moose::exodus_output)
    ExodusII_IO(*Moose::mesh).write_equation_systems(Moose::file_base + ".e", *Moose::equation_system);
  else
    std::cout << "Exodus Output not selected and no other output method implemented\n";
}
<commit_msg>Updating syntax to use MooseInit<commit_after>//Moose Includes
#include "Moose.h"
#include "Parser.h"

// C++ include files that we need
#include <iostream>
#include <fstream>

// libMesh includes
#include "perf_log.h"
#include "mesh.h"

#include "exodusII_io.h"
#include "equation_systems.h"
#include "transient_system.h"
#include "getpot.h"

// Initialize default Performance Logging
PerfLog Moose::perf_log("Example8");

// Begin the main program.
int main (int argc, char** argv)
{
  // Initialize Moose and any dependent libaries
  MooseInit init (argc, argv);

  // This registers a bunch of common objects that exist in Moose with the factories.
   // that includes several Kernels, BoundaryConditions, AuxKernels and Materials
  Moose::registerObjects();
  
  // See if an input file was provided on the command-line
  std::string input_filename = "";
  if ( Moose::command_line->search("-i") )
    input_filename = Moose::command_line->next(input_filename);
  else
    mooseError("Must specify an input file using -i");


  // Use the parser
  Parser p = Parser(input_filename);
  p.execute();

  // Solve the system inside of Moose
  {
    TransientNonlinearImplicitSystem & system =
      Moose::equation_system->get_system<TransientNonlinearImplicitSystem>("NonlinearSystem");

    system.solve();
  }

  // Only bother with exodus outputs
  if (Moose::exodus_output)
    ExodusII_IO(*Moose::mesh).write_equation_systems(Moose::file_base + ".e", *Moose::equation_system);
  else
    std::cout << "Exodus Output not selected and no other output method implemented\n";
}

{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.0005755395683453237, 'mean_word_length': 4.3559322033898304, 'pattern_counts': {'":': 0, '<': 13, '<?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': '2323427', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1097, 'n_words': 315}