<commit_before>/*
** big_integer.c
**     Description: "Arbitrary"-precision integer
**     Author: <NAME> <http://github.com/andreazevedo>
**/

#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include "macros.h"
#include "big_integer.h"

/*#define UINT_NUM_BITS		(32)*/
#define UINT_NUM_BITS		(sizeof(unsigned int) * 8)


/* PRIVATE FUNCTIONS DECLARATIONS */
BigIntegerData big_integer_empty_data( );
BigIntegerData big_integer_create_data( const unsigned int bits[], const int length );
BigInteger big_integer_create_internal( const char sign, const BigIntegerData data );
void big_integer_normalize( BigIntegerData *pBigIntData );
void big_integer_normalize_from( BigIntegerData *pBigIntData, const int from );
void big_integer_clear_trash_data( BigIntegerData *pBigIntData );
void big_integer_report_overflow();
int big_integer_compare_data( const BigIntegerData *pLeft, const BigIntegerData *pRight );
BigIntegerData big_integer_add_data( const BigIntegerData left, const BigIntegerData right );
BigIntegerData big_integer_subtract_data( const BigIntegerData left, const BigIntegerData right );
<commit_msg>Changed #define to const int<commit_after>/*
** big_integer.c
**     Description: "Arbitrary"-precision integer
**     Author: <NAME> <http://github.com/andreazevedo>
**/

#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include "macros.h"
#include "big_integer.h"

/*#define UINT_NUM_BITS		(sizeof(unsigned int) * 8)*/
const int UINT_NUM_BITS =	(sizeof(unsigned int) * 8);


/* PRIVATE FUNCTIONS DECLARATIONS */
BigIntegerData big_integer_empty_data( );
BigIntegerData big_integer_create_data( const unsigned int bits[], const int length );
BigInteger big_integer_create_internal( const char sign, const BigIntegerData data );
void big_integer_normalize( BigIntegerData *pBigIntData );
void big_integer_normalize_from( BigIntegerData *pBigIntData, const int from );
void big_integer_clear_trash_data( BigIntegerData *pBigIntData );
void big_integer_report_overflow();
int big_integer_compare_data( const BigIntegerData *pLeft, const BigIntegerData *pRight );
BigIntegerData big_integer_add_data( const BigIntegerData left, const BigIntegerData right );
BigIntegerData big_integer_subtract_data( const BigIntegerData left, const BigIntegerData right );

{'fraction_non_alphanumeric': 0.09926944563816072, 'fraction_numerical': 0.0021486892995272885, 'mean_word_length': 7.111498257839721, 'pattern_counts': {'":': 0, '<': 15, '<?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': '7409043', 'n_tokens_mistral': 742, 'n_tokens_neox': 725, 'n_words': 189}