<commit_before>/*
    This file is a part of saldl.

    Copyright (C) 2014-2015 <NAME> <CE.Mohammad.AlSaleh at <EMAIL>>
    https://saldl.github.io

    saldl is free software: you can redistribute it and/or modify
    it under the terms of the Affero GNU General Public License as
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    Affero GNU General Public License for more details.

    You should have received a copy of the Affero GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#include <getopt.h>

#include "saldl.h"

#ifndef SALDL_NAME
#define SALDL_NAME "saldl"
#endif

#ifndef SALDL_VERSION
#define SALDL_VERSION "(unknown version)"
#endif

#ifndef SALDL_WWW
#define SALDL_WWW "https://saldl.github.io"
#endif

static int saldl_version() {
  curl_version_info_data *curl_info = curl_version_info(CURLVERSION_NOW);
  fprintf(stderr, "%s %s (%s)\n", SALDL_NAME, SALDL_VERSION, SALDL_WWW);
  fprintf(stderr, "\n");
  fprintf(stderr, "Copyright (C) 2014-2015 <NAME>.\n");
  fprintf(stderr, "Free use of this software is granted under the terms of\n");
  fprintf(stderr, "the GNU Affero General Public License (AGPL).\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Built against: libcurl %s\n", LIBCURL_VERSION);
  fprintf(stderr, "Loaded: libcurl %s (%s)\n", curl_info->version, curl_info->ssl_version);
  return 0;
}

static int usage(char *caller) {
  saldl_version();
  fprintf(stderr, "\n");
  fprintf(stderr, "Usage: %s [OPTIONS] URL\n", caller);
  fprintf(stderr, "Detailed documentation is available in the manual.\n");
  fprintf(stderr, "An online version of the manual is available at:\n");
  fprintf(stderr, "https://saldl.github.io/saldl.1.html\n");
  return EXIT_FAILURE;
}

static int parse_opts(saldl_params *params_ptr, int full_argc, char **full_argv) {
  int opt_idx = 0, c = 0;<commit_msg>MinGW: Warn about the experimental status of the Windows builds<commit_after>/*
    This file is a part of saldl.

    Copyright (C) 2014-2015 <NAME> <CE.Mohammad.AlSaleh at <EMAIL>>
    https://saldl.github.io

    saldl is free software: you can redistribute it and/or modify
    it under the terms of the Affero GNU General Public License as
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    Affero GNU General Public License for more details.

    You should have received a copy of the Affero GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#include <getopt.h>

#include "saldl.h"

#ifndef SALDL_NAME
#define SALDL_NAME "saldl"
#endif

#ifndef SALDL_VERSION
#define SALDL_VERSION "(unknown version)"
#endif

#ifndef SALDL_WWW
#define SALDL_WWW "https://saldl.github.io"
#endif

static int saldl_version() {
  curl_version_info_data *curl_info = curl_version_info(CURLVERSION_NOW);
  fprintf(stderr, "%s %s (%s)\n", SALDL_NAME, SALDL_VERSION, SALDL_WWW);
#ifdef _WIN32
  fprintf(stderr, "WARNING: Windows builds of %s are experimental.\n", SALDL_NAME);
#endif
  fprintf(stderr, "\n");
  fprintf(stderr, "Copyright (C) 2014-2015 <NAME>.\n");
  fprintf(stderr, "Free use of this software is granted under the terms of\n");
  fprintf(stderr, "the GNU Affero General Public License (AGPL).\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Built against: libcurl %s\n", LIBCURL_VERSION);
  fprintf(stderr, "Loaded: libcurl %s (%s)\n", curl_info->version, curl_info->ssl_version);
  return 0;
}

static int usage(char *caller) {
  saldl_version();
  fprintf(stderr, "\n");
  fprintf(stderr, "Usage: %s [OPTIONS] URL\n", caller);
  fprintf(stderr, "Detailed documentation is available in the manual.\n");
  fprintf(stderr, "An online version of the manual is available at:\n");
  fprintf(stderr, "https://saldl.github.io/saldl.1.html\n");
  return EXIT_FAILURE;
}

static int parse_opts(saldl_params *params_ptr, int full_argc, char **full_argv) {
  int opt_idx = 0, c = 0;
{'fraction_non_alphanumeric': 0.11521486643437863, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 4.3160493827160495, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '3453074', 'n_tokens_mistral': 1459, 'n_tokens_neox': 1407, 'n_words': 484}