<commit_before>#include <stdio.h>
#include <stdarg.h>

void error(char *format, ...)  
{
  va_list ap ;

  va_start(ap,format) ;
  fprintf(stderr,"error : ");
  fprintf(stderr,format , ap);
  va_end(ap) ;
  fprintf(stderr,"\n");

}


int main()
{
  error("%s,%d,%s","abc",1232,"KK");
  return 0;
}<commit_msg>use stdarg.h<commit_after>#include <stdio.h>
#include <stdarg.h>

void error(char *format, ...)  
{
  va_list ap ;

  va_start(ap,format) ;
  fprintf(stderr,"error : ");
  fprintf(stderr,format , ap);
  va_end(ap) ;
  fprintf(stderr,"\n");

}

void printargs(int arg1, ...) /* 輸出所有int型態的參數，直到-1結束 */
{
  va_list ap;
  int i;
 
  va_start(ap, arg1); 
  for (i = arg1; i != -1; i = va_arg(ap, int))
    printf("%d ", i);
  va_end(ap);
  putchar('\n');
}

int main()
{
  printargs(3,1,2,3,4);


  error("%s,%d,%s","abc",1232,"KK");
  return 0;
}
{'fraction_non_alphanumeric': 0.22796709753231492, 'fraction_numerical': 0.023501762632197415, 'mean_word_length': 3.630434782608696, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4532562', 'n_tokens_mistral': 400, 'n_tokens_neox': 388, 'n_words': 64}