<commit_before>#include <stdio.h>
#include <unistd.h>
#include <getopt.h>
#include <memcached.h>
#include "client_options.h"
#include "utilities.h"

static int opt_verbose= 0;
static time_t opt_expire= 0;
static char *opt_servers= NULL;

/* Prototypes */
void options_parse(int argc, char *argv[]);

int main(int argc, char *argv[])
{
  memcached_st *memc;
  memcached_return rc;
  WATCHPOINT;
  options_parse(argc, argv);
  WATCHPOINT;

  memc= memcached_init(NULL);
  WATCHPOINT;

  if (opt_servers)
    parse_opt_servers(memc, opt_servers);
  WATCHPOINT;
  
  rc = memcached_flush(memc, opt_expire);
  WATCHPOINT;

  if (rc != MEMCACHED_SUCCESS) 
  {
    fprintf(stderr, "memflush: %s: memcache error %s\n", 
	    argv[optind], memcached_strerror(memc, rc));
  }
  WATCHPOINT;

  memcached_deinit(memc);
  WATCHPOINT;

  free(opt_servers);
  WATCHPOINT;

  return 0;
}


void options_parse(int argc, char *argv[])
{
  static struct option long_options[]=
  {
    {"version", no_argument, NULL, OPT_VERSION},
    {"help", no_argument, NULL, OPT_HELP},
    {"verbose", no_argument, &opt_verbose, OPT_VERBOSE},
    {"debug", no_argument, &opt_verbose, OPT_DEBUG},
    {"servers", required_argument, NULL, OPT_SERVERS},
    {"expire", required_argument, NULL, OPT_EXPIRE},
    {0, 0, 0, 0},
  };
  int option_index= 0;<commit_msg>remove WATCHPOINTs from memflush tool<commit_after>#include <stdio.h>
#include <unistd.h>
#include <getopt.h>
#include <memcached.h>
#include "client_options.h"
#include "utilities.h"

static int opt_verbose= 0;
static time_t opt_expire= 0;
static char *opt_servers= NULL;

/* Prototypes */
void options_parse(int argc, char *argv[]);

int main(int argc, char *argv[])
{
  memcached_st *memc;
  memcached_return rc;

  options_parse(argc, argv);

  memc= memcached_init(NULL);

  if (opt_servers)
    parse_opt_servers(memc, opt_servers);
  
  rc = memcached_flush(memc, opt_expire);
  if (rc != MEMCACHED_SUCCESS) 
  {
    fprintf(stderr, "memflush: %s: memcache error %s\n", 
	    argv[optind], memcached_strerror(memc, rc));
  }

  memcached_deinit(memc);

  free(opt_servers);

  return 0;
}


void options_parse(int argc, char *argv[])
{
  static struct option long_options[]=
  {
    {"version", no_argument, NULL, OPT_VERSION},
    {"help", no_argument, NULL, OPT_HELP},
    {"verbose", no_argument, &opt_verbose, OPT_VERBOSE},
    {"debug", no_argument, &opt_verbose, OPT_DEBUG},
    {"servers", required_argument, NULL, OPT_SERVERS},
    {"expire", required_argument, NULL, OPT_EXPIRE},
    {0, 0, 0, 0},
  };
  int option_index= 0;
{'fraction_non_alphanumeric': 0.14085603112840467, 'fraction_numerical': 0.0062256809338521405, 'mean_word_length': 4.62582056892779, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7507367', 'n_tokens_mistral': 993, 'n_tokens_neox': 969, 'n_words': 223}