<commit_before>#include <string>
#include <cassert>
#include <cstdarg>
#include <libport/cstdlib>
#include <iostream>
#include <stdexcept>

#include <sdk/config.h>

#include <libltdl/ltdl.h>

#include <libport/cli.hh>
#include <libport/containers.hh>
#include <libport/file-system.hh>
#include <libport/foreach.hh>
#include <libport/path.hh>
#include <libport/package-info.hh>
#include <libport/program-name.hh>
#include <libport/sysexits.hh>
#include <libport/unistd.h>
#include <libport/windows.hh>

#include <urbi/exit.hh>
#include <urbi/package-info.hh>
#include <urbi/uclient.hh>

#include <boost/static_assert.hpp>
BOOST_STATIC_ASSERT(sizeof(unsigned long) == sizeof(void*));

using namespace urbi;
using libport::program_name;

// List of module names.
typedef std::list<std::string> modules_type;

namespace
{

  struct xlt_dladvise
  {
    lt_dladvise advise;

    xlt_dladvise()
    {
      if (lt_dladvise_init(&advise))
        std::cerr << program_name()
                  << ": failed to initialize dladvise: "
                  << lt_dlerror() << std::endl
                  << libport::exit(1);
    }

    xlt_dladvise&
    global(bool global)
    {
      if (global ? lt_dladvise_global(&advise) : lt_dladvise_local(&advise))
        std::cerr << program_name() << ": failed to set dladvise to "
                  << (global ? "global" : "local")
                  << ": "
                  << lt_dlerror() << std::endl
                  << libport::exit(1);
      return *this;
    }

    xlt_dladvise&
    ext()
    {
      if (lt_dladvise_ext(&advise))
        std::cerr << program_name() << ": failed to set dladvise to ext: "
                  << lt_dlerror() << std::endl<commit_msg>Formatting changes.<commit_after>#include <string>
#include <cassert>
#include <cstdarg>
#include <libport/cstdlib>
#include <iostream>
#include <stdexcept>

#include <sdk/config.h>

#include <libltdl/ltdl.h>

#include <libport/cli.hh>
#include <libport/containers.hh>
#include <libport/file-system.hh>
#include <libport/foreach.hh>
#include <libport/path.hh>
#include <libport/package-info.hh>
#include <libport/program-name.hh>
#include <libport/sysexits.hh>
#include <libport/unistd.h>
#include <libport/windows.hh>

#include <urbi/exit.hh>
#include <urbi/package-info.hh>
#include <urbi/uclient.hh>

#include <boost/static_assert.hpp>
BOOST_STATIC_ASSERT(sizeof(unsigned long) == sizeof(void*));

using namespace urbi;
using libport::program_name;

// List of module names.
typedef std::list<std::string> modules_type;

namespace
{

  struct xlt_dladvise
  {
    lt_dladvise advise;

    xlt_dladvise()
    {
      if (lt_dladvise_init(&advise))
        std::cerr << program_name()
                  << ": failed to initialize dladvise: "
                  << lt_dlerror() << std::endl
                  << libport::exit(1);
    }

    xlt_dladvise&
    global(bool global)
    {
      if (global ? lt_dladvise_global(&advise) : lt_dladvise_local(&advise))
        std::cerr << program_name() << ": failed to set dladvise to "
                  << (global ? "global" : "local")
                  << ": " << lt_dlerror() << std::endl
                  << libport::exit(1);
      return *this;
    }

    xlt_dladvise&
    ext()
    {
      if (lt_dladvise_ext(&advise))
        std::cerr << program_name() << ": failed to set dladvise to ext: "
                  << lt_dlerror() << std::endl
{'fraction_non_alphanumeric': 0.15088235294117647, 'fraction_numerical': 0.001176470588235294, 'mean_word_length': 2.9317919075144507, 'pattern_counts': {'":': 8, '<': 113, '<?xml version=': 0, '>': 49, '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': '7531781', 'n_tokens_mistral': 1234, 'n_tokens_neox': 1192, 'n_words': 224}