<commit_before>#include "../Outer_Parameters.hxx"

#include <boost/program_options.hpp>
#include <boost/filesystem/fstream.hpp>

namespace po = boost::program_options;

Outer_Parameters::Outer_Parameters(int argc, char *argv[])
{
  int int_verbosity;
  std::string write_solution_string;
  using namespace std::string_literals;

  po::options_description required_options("Required options");
  required_options.add_options()(
    "sdp,s",
    po::value<boost::filesystem::path>(&sdp_path)->required(),
    "Mathematica, JSON, or NSV file with SDP functions evaluated at chebyshev "
    "zeros.");
  required_options.add_options()(
    "points", po::value<boost::filesystem::path>(&points_path)->required(),
    "JSON, or NSV file with initial points.");

  po::options_description cmd_line_options;
  cmd_line_options.add(required_options);

  po::options_description basic_options("Basic options");
  basic_options.add_options()("help,h", "Show this helpful message.");
  basic_options.add_options()("version",
                              "Show version and configuration info.");
  basic_options.add_options()(
    "paramFile,p", po::value<boost::filesystem::path>(&param_path),
    "Any parameter can optionally be set via this file in key=value "
    "format. Command line arguments override values in the parameter "
    "file.");
  basic_options.add_options()(
    "out,o", po::value<boost::filesystem::path>(&output_path),
    "The optimal solution is saved to this file in json "
    "format. Defaults to 'sdp' with the ending '_out.json'.");
  basic_options.add_options()("verbosity",
                              po::value<int>(&int_verbosity)->default_value(1),
                              "Verbosity.  0 -> no output, 1 -> regular "
                              "output, 2 -> debug output");

  cmd_line_options.add(basic_options);
  po::options_description solver_options(solver.options());
  solver_options.add_options()(
    "dualityGapReduction",
    po::value<El::BigFloat>(&duality_gap_reduction)
      ->default_value(El::BigFloat("1024", 10)),
    "Shrink the duality gap threshold by this factor during each outer "
    "iteration.  Smaller means slower convergence.");<commit_msg>Fix typo in help<commit_after>#include "../Outer_Parameters.hxx"

#include <boost/program_options.hpp>
#include <boost/filesystem/fstream.hpp>

namespace po = boost::program_options;

Outer_Parameters::Outer_Parameters(int argc, char *argv[])
{
  int int_verbosity;
  std::string write_solution_string;
  using namespace std::string_literals;

  po::options_description required_options("Required options");
  required_options.add_options()(
    "sdp,s",
    po::value<boost::filesystem::path>(&sdp_path)->required(),
    "Mathematica, JSON, or NSV file with SDP functions evaluated at chebyshev "
    "zeros.");
  required_options.add_options()(
    "points", po::value<boost::filesystem::path>(&points_path)->required(),
    "JSON or NSV file with initial points.");

  po::options_description cmd_line_options;
  cmd_line_options.add(required_options);

  po::options_description basic_options("Basic options");
  basic_options.add_options()("help,h", "Show this helpful message.");
  basic_options.add_options()("version",
                              "Show version and configuration info.");
  basic_options.add_options()(
    "paramFile,p", po::value<boost::filesystem::path>(&param_path),
    "Any parameter can optionally be set via this file in key=value "
    "format. Command line arguments override values in the parameter "
    "file.");
  basic_options.add_options()(
    "out,o", po::value<boost::filesystem::path>(&output_path),
    "The optimal solution is saved to this file in json "
    "format. Defaults to 'sdp' with the ending '_out.json'.");
  basic_options.add_options()("verbosity",
                              po::value<int>(&int_verbosity)->default_value(1),
                              "Verbosity.  0 -> no output, 1 -> regular "
                              "output, 2 -> debug output");

  cmd_line_options.add(basic_options);
  po::options_description solver_options(solver.options());
  solver_options.add_options()(
    "dualityGapReduction",
    po::value<El::BigFloat>(&duality_gap_reduction)
      ->default_value(El::BigFloat("1024", 10)),
    "Shrink the duality gap threshold by this factor during each outer "
    "iteration.  Smaller means slower convergence.");
{'fraction_non_alphanumeric': 0.13331824354911725, 'fraction_numerical': 0.004526935264825713, 'mean_word_length': 4.091013824884793, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 33, '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': '2138038', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1291, 'n_words': 294}