<commit_before>/*
 * TIC_TAC_TOE
 *
 * GitHub Repository: https://github.com/BytesClub/Tic_Tac_Toe
 * Copyright (C) BytesClub 2017, MIT 
 *
 * helper.c
*/

#include "helper.h"

void greet(void)
{
    clear();
    printf("WELCOME TO GAME OF TIC_TAC_TOE\n");
    sleep(5);
}

void init(int n, int* A)
{
    // TODO
}

static int val(int d)
{
	return '\0';
}

void show(int n, int* A)
{
    for(int i = 0; i < n; i++){
        for(int j = 0; j < n && (!j || putchar('|')); j++)
	    printf(" %c ", val(A[i * n + j]));
	for(int j = 0; j < n; j++)
	    putchar('-');
    }
}

void clear(void)
{
    printf("\033[2J");
    printf("\033[%d;%dH", 0, 0);
}

int check(int n, int* A)
{
    // TODO
    return 0;
}<commit_msg>helper.c: Completed Frameworks<commit_after>/*
 * TIC_TAC_TOE
 *
 * GitHub Repository: https://github.com/BytesClub/Tic_Tac_Toe
 * Copyright (C) BytesClub 2017, MIT 
 *
 * helper.c
*/

#include "helper.h"

void greet(void)
{
    clear();
    printf("WELCOME TO GAME OF TIC_TAC_TOE\n");
    sleep(5);
}

void init(int n, int* A)
{
    // TODO
}

static int val(int d)
{
	return '\0';
}

void show(int n, int* A)
{
    for(int i = 0; i < n; i++){
        for(int j = 0; (j < n && (!j || putchar('|'))) || putchar('\n'); j++)
			printf(" %c ", val(A[i * n + j]));
		for(int j = 0; j < n || !putchar('\n'); j++)
			printf("----");
    }
}

void clear(void)
{
    printf("\033[2J");
    printf("\033[%d;%dH", 0, 0);
}

int check(int n, int* A)
{
    // TODO
    return 1;
}
{'fraction_non_alphanumeric': 0.22387053270397841, 'fraction_numerical': 0.02562373567093729, 'mean_word_length': 2.5673076923076925, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3641978', 'n_tokens_mistral': 696, 'n_tokens_neox': 651, 'n_words': 162}