<commit_before>/* PWB UNIT CONVERSION DEFINITIONS
 *
 * Revision I (04/17) (C) NFINIT Systems 2017
 * Author: ict (<EMAIL>)
 *
 * This file contains various unit conversion definitions and enumerations
 * to aifsdafsfd uiiin presenting program output (and code) in human-readable format.
 *
 * Conversion order is presented left-to-right, meaning that "YR_DAY"
 * specifies the conversion of one year to days, while "DAY_HR" specifies
 * the conversion of one day to hours.
 */

/* UNIT ENUMERATIONS */
enum sma_unit {AU, km, mi, m, ft, NO_SMA_UNIT};
enum per_unit {years, days, hours, minutes, seconds, NO_PER_UNIT};
enum mass_unit {kg, Me, Mj, Msun, NO_MASS_UNIT};

/* UNIT ENUMERATION TYPEDEFS */
typedef enum sma_unit smaunit;
typedef enum per_unit perunit;
typedef enum mass_unit massunit;

/* BASIC TIME CONVERSION */
#define YR_DAY 365.0
#define DAY_HR 24.0
#define HR_MIN 60.0
#define MIN_SEC 60.0
#define SEC_MSEC 1000.0

/* EXT. TIME CONVERSION (YEARS) */
#define YR_HR YR_DAY * DAY_HR
#define YR_MIN YR_HR * HR_MIN
#define YR_SEC YR_MIN * MIN_SEC
#define YR_MSEC YR_SEC * SEC_MSEC

/* EXT. TIME CONVERSION (DAYS) */
#define DAY_MIN DAY_HR * HR_MIN
#define DAY_SEC DAY_MIN * MIN_SEC
#define DAY_MSEC DAY_SEC * SEC_MSEC

/* EXT. TIME CONVERSION (HOURS) */
#define HR_SEC HR_MIN * MIN_SEC
#define HR_MSEC HR_SEC * SEC_MSEC

/* DISTANCE CONVERSION */
#define AU_M 149597870700.0
#define KM_M 1000.0
#define MI_KM 1.60934
#define MI_M 1609.344
#define MI_FT 5280.0
#define M_FT 3.28084

/* EXT. DISTANCE CONVERSION (AU) */

#define AU_FT AU_M * M_FT
#define AU_KM AU_M / KM_M
#define AU_MI AU_KM / MI_KM

/* EXT. DISTANCE CONVERSION (KM) */

#define KM_FT KM_M * M_FT

/* EXT. DISTANCE CONVERSION (M) */
#define M_MI M_FT / MI_FT

/* EXT. DISTANCE CONVERSION (FT) */
#define FT_KM M_FT / KM_M
#define FT_AU M_FT / AU_M

/* GENERAL PROTOTYPES */
smaunit parse_sma_unit(char *arg);
perunit parse_per_unit(char *arg);
double convert_smaunit(double sma, smaunit in, smaunit out);
double convert_perunit(double per, perunit in, perunit out);<commit_msg>remember the 6 million #defines<commit_after>/* PWB UNIT CONVERSION DEFINITIONS
 *
 * Revision I (04/17) (C) NFINIT Systems 2017
 * Author: ict (<EMAIL>)
 *
 * This file contains various unit conversion definitions and enumerations
 * to aifsdafsfd uiiin presenting program output (and code) in human-readable format.
 *
 * Conversion order is presented left-to-right, meaning that "YR_DAY"
 * specifies the conversion of one year to days, while "DAY_HR" specifies
 * the conversion of one day to hours.
 */

/* UNIT ENUMERATIONS */
enum sma_unit {AU, km, mi, m, ft, NO_SMA_UNIT};
enum per_unit {years, days, hours, minutes, seconds, NO_PER_UNIT};
enum mass_unit {kg, Me, Mj, Msun, NO_MASS_UNIT};

/* UNIT ENUMERATION TYPEDEFS */
typedef enum sma_unit smaunit;
typedef enum per_unit perunit;
typedef enum mass_unit massunit;

/* GENERAL PROTOTYPES */
smaunit parse_sma_unit(char *arg);
perunit parse_per_unit(char *arg);
massunit parse_mass_unit(char *arg);
double convert_smaunit(double sma, smaunit in, smaunit out);
double convert_perunit(double per, perunit in, perunit out);
double convert_massunit(double mass, massunit in, massunit out);
{'fraction_non_alphanumeric': 0.09787367104440275, 'fraction_numerical': 0.02407754846779237, 'mean_word_length': 4.661946902654868, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4352906', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1170, 'n_words': 389}