<commit_before><commit_msg>added export<commit_after>#include "types.h"
#include "user.h"

void add_path_helper(char* str) {
	if (add_path(str)==0)
		;
	else  {
		printf(2,"error in adding %s. History List probably full.\n",str);
		exit();
	}
}

int
main(int argc, char *argv[])
{

  if(argc < 1){
    printf(2, "usage: export path1:path2:....\n");
    exit();
  }
  char str[129];
  strcpy(str,argv[1]);
  if (str[0]==':') {
  	printf(2, "usage: export path1:path2:....\n");
    exit();
  }

  int i;
  int lastPathElementIndex=0;

  for (i=0;str[i];i++){
  	if (str[i]==':') {
  		str[i]=0;
  		add_path_helper(&str[lastPathElementIndex]);
  		lastPathElementIndex=i+1;
  	}
  }
  if (lastPathElementIndex<i) 
  	add_path_helper(&str[lastPathElementIndex]);

  exit();
}
{'fraction_non_alphanumeric': 0.20595854922279794, 'fraction_numerical': 0.023316062176165803, 'mean_word_length': 3.7423312883435584, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6655427', 'n_tokens_mistral': 338, 'n_tokens_neox': 327, 'n_words': 57}