<commit_before>// libbari Copyright (C) <NAME> 2015-2016

#include <bari.h>

// Someone please check this math.
bari_mat4 bari_lookat(bari_vec3 eye, bari_vec3 center, bari_vec3 up)
{
	bari_mat4 r = bari_mat4_zero;
	bari_vec3 za = bari_norm3(bari_vsub3(eye, center));
	bari_vec3 xa = bari_norm3(bari_cross(za, up));
	bari_vec3 ya = bari_cross(xa, za);
	r.xx = xa.x;
	r.yx = ya.x;
	r.zx = za.x;
	r.xy = xa.y;
	r.yy = ya.y;
	r.zy = za.y;
	r.xz = xa.z;
	r.yz = ya.x;
	r.zz = za.z;
	r.xw = -bari_dot3(xa, eye);
	r.yw = -bari_dot3(ya, eye);
	r.zw = bari_dot3(za, eye);
	r.ww = 1;
	return r;
}
<commit_msg>How did that work before?<commit_after>// libbari Copyright (C) <NAME> 2015-2016

#include <bari.h>

// Someone please check this math.
bari_mat4 bari_lookat(bari_vec3 eye, bari_vec3 center, bari_vec3 up)
{
	bari_mat4 r = bari_mat4_zero;
	bari_vec3 za = bari_norm3(bari_vsub3(eye, center));
	bari_vec3 xa = bari_norm3(bari_cross(za, up));
	bari_vec3 ya = bari_cross(xa, za);
	r.xx = xa.x;
	r.yx = ya.x;
	r.zx = za.x;
	r.xy = xa.y;
	r.yy = ya.y;
	r.zy = za.y;
	r.xz = xa.z;
	r.yz = ya.z;
	r.zz = za.z;
	r.xw = -bari_dot3(xa, eye);
	r.yw = -bari_dot3(ya, eye);
	r.zw = bari_dot3(za, eye);
	r.ww = 1;
	return r;
}

{'fraction_non_alphanumeric': 0.17272727272727273, 'fraction_numerical': 0.03966942148760331, 'mean_word_length': 3.3405017921146953, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '734197', 'n_tokens_mistral': 678, 'n_tokens_neox': 653, 'n_words': 136}