<commit_before>#include <stdbool.h> // bool
#include <stdlib.h> // malloc, free

#include "uniform_attachment.h"

ShovelerUniformAttachment *shovelerUniformAttachmentCreate(ShovelerUniform *uniform, GLint location)
{
	ShovelerUniformAttachment *uniformAttachment = malloc(sizeof(ShovelerUniform));
	uniformAttachment->uniform = uniform;
	uniformAttachment->location = location;
}

bool shovelerUniformAttachmentUse(ShovelerUniformAttachment *uniformAttachment)
{
	return shovelerUniformUse(uniformAttachment->uniform, uniformAttachment->location);
}

void shovelerUniformAttachmentFree(ShovelerUniformAttachment *uniformAttachment)
{<commit_msg>fixed shovelerUniformAttachmentCreate not returning the created attachment<commit_after>#include <stdbool.h> // bool
#include <stdlib.h> // malloc, free

#include "uniform_attachment.h"

ShovelerUniformAttachment *shovelerUniformAttachmentCreate(ShovelerUniform *uniform, GLint location)
{
	ShovelerUniformAttachment *uniformAttachment = malloc(sizeof(ShovelerUniform));
	uniformAttachment->uniform = uniform;
	uniformAttachment->location = location;
	return uniformAttachment;
}

bool shovelerUniformAttachmentUse(ShovelerUniformAttachment *uniformAttachment)
{
	return shovelerUniformUse(uniformAttachment->uniform, uniformAttachment->location);
}

void shovelerUniformAttachmentFree(ShovelerUniformAttachment *uniformAttachment)
{
{'fraction_non_alphanumeric': 0.08635703918722787, 'fraction_numerical': 0.0, 'mean_word_length': 9.944444444444445, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2850384', 'n_tokens_mistral': 370, 'n_tokens_neox': 388, 'n_words': 68}