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

#include "mssql.h"

void print_boundary(int * col_length, int col_size){
    int col = 0;
    int i = 0;
    for( col=0; col < col_size; col++){
        printf("+");
        for(i=0; i<col_length[col] +2; i++){
          printf("-");
        }
    }
    printf("+\n");
}

void print_result(struct result_node * node, int * col_length, int col_size){
    int col = 0;
    int i = 0;
    struct result_node * it = node;
    while(it != NULL ){
        printf("| %s", it->value);
        for(i =0; i<(col_length[col] - strlen(it->value)) ; i++){
            printf(" ");
        }
        printf(" ");
        it = it->next;
        if(col >= col_size -1){
          col=0;
          printf("|\n");
        }else{
          col++;
        }
    }
}

void print_normal(struct result_node * hnode, struct result_node * node, int * max_col_size, int col_size){
      eprintf("print normal 1\n");
      print_boundary(max_col_size, col_size);
      eprintf("print normal 2\n");
      print_result(hnode, max_col_size, col_size);
      eprintf("print normal 3\n");
      print_boundary(max_col_size, col_size);
      eprintf("print normal 4\n");
      print_result(node, max_col_size, col_size);
      eprintf("print normal 5\n");
      print_boundary(max_col_size, col_size);
      eprintf("print normal 6\n");
}

void print_pretty(struct result_node * hnode, struct result_node * node, int max_col_size, int col_size){
    int col = 0;
    int i=0;
    struct result_node * it = node;<commit_msg>remove comment and change method name<commit_after>#include <stdio.h>
#include <string.h>

#include "mssql.h"

void _print_boundary(int * col_length, int col_size){
    int col = 0;
    int i = 0;
    for( col=0; col < col_size; col++){
        printf("+");
        for(i=0; i<col_length[col] +2; i++){
          printf("-");
        }
    }
    printf("+\n");
}

void _print_result(struct result_node * node, int * col_length, int col_size){
    int col = 0;
    int i = 0;
    struct result_node * it = node;
    while(it != NULL ){
        printf("| %s", it->value);
        for(i =0; i<(col_length[col] - strlen(it->value)) ; i++){
            printf(" ");
        }
        printf(" ");
        it = it->next;
        if(col >= col_size -1){
          col=0;
          printf("|\n");
        }else{
          col++;
        }
    }
}

void print_normal(struct result_node * hnode, struct result_node * node, int * max_col_size, int col_size){
      _print_boundary(max_col_size, col_size);
      _print_result(hnode, max_col_size, col_size);
      _print_boundary(max_col_size, col_size);
      _print_result(node, max_col_size, col_size);
      _print_boundary(max_col_size, col_size);
}

void print_pretty(struct result_node * hnode, struct result_node * node, int max_col_size, int col_size){
    int col = 0;
    int i=0;
    struct result_node * it = node;
{'fraction_non_alphanumeric': 0.14908965991068363, 'fraction_numerical': 0.010305736860185504, 'mean_word_length': 2.508433734939759, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '5165212', 'n_tokens_mistral': 1047, 'n_tokens_neox': 1025, 'n_words': 244}