<commit_before>/*
 * cabs() wrapper for hypot().
 * 
 * Written by <NAME>, <<EMAIL>>
 * Placed into the Public Domain, 1994.
 */

#include <math.h>

struct complex {
	double x;
	double y;
};

double
cabs(z)
	struct complex z;
{
	return hypot(z.x, z.y);
}
<commit_msg>Add missing z_abs. In BSD tradition this is in libm.a.<commit_after>/*
 * cabs() wrapper for hypot().
 * 
 * Written by <NAME>, <<EMAIL>>
 * Placed into the Public Domain, 1994.
 */

#include <math.h>

struct complex {
	double x;
	double y;
};

double
cabs(z)
	struct complex z;
{
	return hypot(z.x, z.y);
}

double
z_abs(z)
	struct complex *z;
{
	return hypot(z->x, z->y);
}

{'fraction_non_alphanumeric': 0.16640746500777606, 'fraction_numerical': 0.012441679626749611, 'mean_word_length': 3.3513513513513513, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '7518702', 'n_tokens_mistral': 275, 'n_tokens_neox': 255, 'n_words': 79}