<commit_before>#include "stdsneezy.h"
#include "database.h"
#include "lowtools.h"
#include <unistd.h>

int txt2dir(sstring txt)
{
  for(int i=0;strcmp(dirs[i], "\n");++i){
    if(txt==dirs[i]){
      return i;
    }
  }
  return convertTo<int>(txt);
}

int main(int argc, char **argv)
{
  TDatabase db(DB_SNEEZYBETA);
  vector<int>vnums;
  map<sstring,sstring>val;
  char file[]="/tmp/sqledwldXXXXXX";
  FILE *tmpfile;
  sstring buf, sbuf;
  int answer;

  if(argc<=1){
    printf("Usage: sqledwld <vnum list>\n");
    printf("Example: sqledwld 13700-13780 13791 13798\n");
    exit(0);
  }

  if(!parse_num_args(argc-1, argv+1, vnums))<commit_msg>added toggle load, now works without seg fault<commit_after>#include "stdsneezy.h"
#include "database.h"
#include "lowtools.h"
#include <unistd.h>

int txt2dir(sstring txt)
{
  for(int i=0;strcmp(dirs[i], "\n");++i){
    if(txt==dirs[i]){
      return i;
    }
  }
  return convertTo<int>(txt);
}

int main(int argc, char **argv)
{
  TDatabase db(DB_SNEEZYBETA);
  vector<int>vnums;
  map<sstring,sstring>val;
  char file[]="/tmp/sqledwldXXXXXX";
  FILE *tmpfile;
  sstring buf, sbuf;
  int answer;

  toggleInfo.loadToggles();
  if(argc<=1){
    printf("Usage: sqledwld <vnum list>\n");
    printf("Example: sqledwld 13700-13780 13791 13798\n");
    exit(0);
  }

  if(!parse_num_args(argc-1, argv+1, vnums))
{'fraction_non_alphanumeric': 0.17759764185703758, 'fraction_numerical': 0.03831982313927782, 'mean_word_length': 4.263565891472868, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '4354019', 'n_tokens_mistral': 619, 'n_tokens_neox': 588, 'n_words': 109}