<commit_before>//
//  Array-backed integer FIFO queue: Implementation
//
//  See header for info
//

#include <stdio.h>
#include <stdlib.h>
#include "array_queue.h"

// enable debug info
#define SHOW_DEBUG 1

void print_queue(struct array_queue *queue);

// initialize a queue - return 0 on failure
int init_queue(int size, struct array_queue **queue)
{
#ifdef SHOW_DEBUG
    printf("Creating queue with initial length of %i\n", size);
#endif
    
    struct array_queue *new_queue = malloc(sizeof(struct array_queue));
    new_queue->array_size = size;
    new_queue->array = malloc(sizeof(int) * size);
    new_queue->queue_size = 0;
    new_queue->head = 0;
    new_queue->tail = 0;<commit_msg>Removed #define SHOW_DEBUG from array_queue.c<commit_after>//
//  Array-backed integer FIFO queue: Implementation
//
//  See header for info
//

#include <stdio.h>
#include <stdlib.h>
#include "array_queue.h"

void print_queue(struct array_queue *queue);

// initialize a queue - return 0 on failure
int init_queue(int size, struct array_queue **queue)
{
#ifdef SHOW_DEBUG
    printf("Creating queue with initial length of %i\n", size);
#endif
    
    struct array_queue *new_queue = malloc(sizeof(struct array_queue));
    new_queue->array_size = size;
    new_queue->array = malloc(sizeof(int) * size);
    new_queue->queue_size = 0;
    new_queue->head = 0;
    new_queue->tail = 0;
{'fraction_non_alphanumeric': 0.12219812002892264, 'fraction_numerical': 0.006507592190889371, 'mean_word_length': 3.8732394366197185, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '3982895', 'n_tokens_mistral': 477, 'n_tokens_neox': 450, 'n_words': 129}