<commit_before>#include "game.h"
#include "memory.h"

struct Asteroid*
asteroid_new(float x, float y, float xvel, float yvel, float rot_speed)
{
	struct Asteroid *ast = make(struct Asteroid);
	if (!ast) {
		return NULL;
	}
	ast->x = x;
	ast->y = y;
	ast->xvel = xvel;
	ast->yvel = yvel;
	ast->rot_speed = rot_speed;
	ast->body.x = x;
	ast->body.y = y;
	ast->body.radius = 27;
	ast->body.type = BODY_TYPE_ASTEROID;
	ast->body.collision_mask = BODY_TYPE_PLAYER;
	ast->body.userdata = ast;
	return ast;
}

void
asteroid_destroy(struct Asteroid *ast)
{
	if (ast) {
		destroy(ast);
	}
}<commit_msg>Adjust asteroid body radius<commit_after>#include "game.h"
#include "memory.h"

struct Asteroid*
asteroid_new(float x, float y, float xvel, float yvel, float rot_speed)
{
	struct Asteroid *ast = make(struct Asteroid);
	if (!ast) {
		return NULL;
	}
	ast->x = x;
	ast->y = y;
	ast->xvel = xvel;
	ast->yvel = yvel;
	ast->rot_speed = rot_speed;
	ast->body.x = x;
	ast->body.y = y;
	ast->body.radius = 13;
	ast->body.type = BODY_TYPE_ASTEROID;
	ast->body.collision_mask = BODY_TYPE_PLAYER;
	ast->body.userdata = ast;
	return ast;
}

void
asteroid_destroy(struct Asteroid *ast)
{
	if (ast) {
		destroy(ast);
	}
}
{'fraction_non_alphanumeric': 0.15666666666666668, 'fraction_numerical': 0.0033333333333333335, 'mean_word_length': 4.046218487394958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '7163415', 'n_tokens_mistral': 529, 'n_tokens_neox': 506, 'n_words': 115}