<commit_before>#pragma once
#include "playerqueue.h"

// Constructor & Destructor
PlayerQueue::PlayerQueue()
{
    playerQueue = new std::queue<Player*>();
    size = 0;
}

PlayerQueue::~PlayerQueue()
{
    delete[] playerQueue;
}


// Methods
void PlayerQueue::push(Player * p){
    playerQueue->push(p);
}

Player * PlayerQueue::next(){
    Player * ret = playerQueue->front();
    playerQueue->pop();
    playerQueue->push(ret);
    return ret;
}

int PlayerQueue::getSize(){
    return size;
}<commit_msg>PlayerQueue: return NULL if empty<commit_after>#pragma once
#include "playerqueue.h"

// Constructor & Destructor
PlayerQueue::PlayerQueue()
{
    playerQueue = new std::queue<Player*>();
    size = 0;
}

PlayerQueue::~PlayerQueue()
{
    delete[] playerQueue;
}


// Methods
void PlayerQueue::push(Player * p){
    playerQueue->push(p);
}

Player * PlayerQueue::next(){
    if(playerQueue->empty())
        return NULL;
    Player * ret = playerQueue->front();
    playerQueue->pop();
    playerQueue->push(ret);
    return ret;
}

int PlayerQueue::getSize(){
    return size;
}
{'fraction_non_alphanumeric': 0.16176470588235295, 'fraction_numerical': 0.001838235294117647, 'mean_word_length': 3.9726027397260273, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '5033141', 'n_tokens_mistral': 353, 'n_tokens_neox': 347, 'n_words': 73}