<commit_before>CREATE EXTENSION formatbase;
SELECT to_base(643565436, -1);
SELECT to_base(643565436, 0);
SELECT to_base(643565436, 1);
SELECT to_base(643565436, 2);
SELECT to_base(643565436, 3);
SELECT to_base(643565436, 4);
SELECT to_base(643565436, 5);
SELECT to_base(643565436, 6);
SELECT to_base(643565436, 7);
SELECT to_base(643565436, 8);
SELECT to_base(643565436, 9);
SELECT to_base(643565436, 10);
SELECT to_base(643565436, 11);
SELECT to_base(643565436, 12);
SELECT to_base(643565436, 13);
SELECT to_base(643565436, 14);
SELECT to_base(643565436, 15);
SELECT to_base(643565436, 16);
SELECT to_base(643565436, 17);
SELECT to_base(643565436, 18);
SELECT to_base(643565436, 19);
SELECT to_base(643565436, 20);
SELECT to_base(643565436, 21);
SELECT to_base(643565436, 22);
SELECT to_base(643565436, 23);
SELECT to_base(643565436, 24);
SELECT to_base(643565436, 25);
SELECT to_base(643565436, 26);
SELECT to_base(643565436, 27);
SELECT to_base(643565436, 28);
SELECT to_base(643565436, 29);
SELECT to_base(643565436, 30);
SELECT to_base(643565436, 31);
SELECT to_base(643565436, 32);
SELECT to_base(643565436, 33);
SELECT to_base(643565436, 34);
SELECT to_base(643565436, 35);
SELECT to_base(643565436, 36);
SELECT to_base(643565436, 37);
SELECT to_base(643565436, 38);
SELECT to_base(643565436, 39);
SELECT to_base(643565436, 40);
SELECT to_base(643565436, 41);
SELECT to_base(643565436, 42);
SELECT to_base(643565436, 43);
SELECT to_base(643565436, 44);
SELECT to_base(643565436, 45);
SELECT to_base(643565436, 46);
SELECT to_base(643565436, 47);
SELECT to_base(643565436, 48);
SELECT to_base(643565436, 49);
SELECT to_base(643565436, 50);
SELECT to_base(643565436, 51);
SELECT to_base(643565436, 52);
SELECT to_base(643565436, 53);
SELECT to_base(643565436, 54);
SELECT to_base(643565436, 55);
SELECT to_base(643565436, 56);
SELECT to_base(643565436, 57);
SELECT to_base(643565436, 58);
SELECT to_base(643565436, 59);
SELECT to_base(643565436, 60);
SELECT to_base(643565436, 61);
SELECT to_base(643565436, 62);
SELECT to_base(643565436, 63);
SELECT to_base(643565436, 64);
SELECT to_base(643565436, 65);
SELECT to_base(9223372036854775807, 36);
SELECT to_base(9223372036854775808, 36);
SELECT to_base(-9223372036854775807, 36);
SELECT to_base(-9223372036854775808, 36);
SELECT to_base(-9223372036854775809, 36);<commit_msg>Added C tests<commit_after>CREATE EXTENSION formatbase;
-- SQL implementation
SELECT to_base(643565436, -1);
SELECT to_base(643565436, 0);
SELECT to_base(643565436, 1);
SELECT to_base(643565436, 2);
SELECT to_base(643565436, 3);
SELECT to_base(643565436, 4);
SELECT to_base(643565436, 5);
SELECT to_base(643565436, 6);
SELECT to_base(643565436, 7);
SELECT to_base(643565436, 8);
SELECT to_base(643565436, 9);
SELECT to_base(643565436, 10);
SELECT to_base(643565436, 11);
SELECT to_base(643565436, 12);
SELECT to_base(643565436, 13);
SELECT to_base(643565436, 14);
SELECT to_base(643565436, 15);
SELECT to_base(643565436, 16);
SELECT to_base(643565436, 17);
SELECT to_base(643565436, 18);
SELECT to_base(643565436, 19);
SELECT to_base(643565436, 20);
SELECT to_base(643565436, 21);
SELECT to_base(643565436, 22);
SELECT to_base(643565436, 23);
SELECT to_base(643565436, 24);
SELECT to_base(643565436, 25);
SELECT to_base(643565436, 26);
SELECT to_base(643565436, 27);
SELECT to_base(643565436, 28);
SELECT to_base(643565436, 29);
SELECT to_base(643565436, 30);
SELECT to_base(643565436, 31);
SELECT to_base(643565436, 32);
SELECT to_base(643565436, 33);
SELECT to_base(643565436, 34);
SELECT to_base(643565436, 35);
SELECT to_base(643565436, 36);
SELECT to_base(643565436, 37);
SELECT to_base(643565436, 38);
SELECT to_base(643565436, 39);
SELECT to_base(643565436, 40);
SELECT to_base(643565436, 41);
SELECT to_base(643565436, 42);
SELECT to_base(643565436, 43);
SELECT to_base(643565436, 44);
SELECT to_base(643565436, 45);
SELECT to_base(643565436, 46);
SELECT to_base(643565436, 47);
SELECT to_base(643565436, 48);
SELECT to_base(643565436, 49);
SELECT to_base(643565436, 50);
SELECT to_base(643565436, 51);
SELECT to_base(643565436, 52);
SELECT to_base(643565436, 53);
SELECT to_base(643565436, 54);
SELECT to_base(643565436, 55);
SELECT to_base(643565436, 56);
SELECT to_base(643565436, 57);
SELECT to_base(643565436, 58);
SELECT to_base(643565436, 59);
SELECT to_base(643565436, 60);
SELECT to_base(643565436, 61);
SELECT to_base(643565436, 62);
SELECT to_base(643565436, 63);
SELECT to_base(643565436, 64);
SELECT to_base(643565436, 65);
SELECT to_base(9223372036854775807, 36);
SELECT to_base(9223372036854775808, 36);
SELECT to_base(-9223372036854775807, 36);
SELECT to_base(-9223372036854775808, 36);
SELECT to_base(-9223372036854775809, 36);
-- C implementation
SELECT as_base(643565436, -1);
SELECT as_base(643565436, 0);
SELECT as_base(643565436, 1);
SELECT as_base(643565436, 2);
SELECT as_base(643565436, 3);
SELECT as_base(643565436, 4);
SELECT as_base(643565436, 5);
SELECT as_base(643565436, 6);
SELECT as_base(643565436, 7);
SELECT as_base(643565436, 8);
SELECT as_base(643565436, 9);
SELECT as_base(643565436, 10);
SELECT as_base(643565436, 11);
SELECT as_base(643565436, 12);
SELECT as_base(643565436, 13);
SELECT as_base(643565436, 14);
SELECT as_base(643565436, 15);
SELECT as_base(643565436, 16);
SELECT as_base(643565436, 17);
SELECT as_base(643565436, 18);
SELECT as_base(643565436, 19);
SELECT as_base(643565436, 20);
SELECT as_base(643565436, 21);
SELECT as_base(643565436, 22);
SELECT as_base(643565436, 23);
SELECT as_base(643565436, 24);
SELECT as_base(643565436, 25);
SELECT as_base(643565436, 26);
SELECT as_base(643565436, 27);
SELECT as_base(643565436, 28);
SELECT as_base(643565436, 29);
SELECT as_base(643565436, 30);
SELECT as_base(643565436, 31);
SELECT as_base(643565436, 32);
SELECT as_base(643565436, 33);
SELECT as_base(643565436, 34);
SELECT as_base(643565436, 35);
SELECT as_base(643565436, 36);
SELECT as_base(643565436, 37);
SELECT as_base(643565436, 38);
SELECT as_base(643565436, 39);
SELECT as_base(643565436, 40);
SELECT as_base(643565436, 41);
SELECT as_base(643565436, 42);
SELECT as_base(643565436, 43);
SELECT as_base(643565436, 44);
SELECT as_base(643565436, 45);
SELECT as_base(643565436, 46);
SELECT as_base(643565436, 47);
SELECT as_base(643565436, 48);
SELECT as_base(643565436, 49);
SELECT as_base(643565436, 50);
SELECT as_base(643565436, 51);
SELECT as_base(643565436, 52);
SELECT as_base(643565436, 53);
SELECT as_base(643565436, 54);
SELECT as_base(643565436, 55);
SELECT as_base(643565436, 56);
SELECT as_base(643565436, 57);
SELECT as_base(643565436, 58);
SELECT as_base(643565436, 59);
SELECT as_base(643565436, 60);
SELECT as_base(643565436, 61);
SELECT as_base(643565436, 62);
SELECT as_base(643565436, 63);
SELECT as_base(643565436, 64);
SELECT as_base(643565436, 65);
SELECT as_base(9223372036854775807, 36);
SELECT as_base(9223372036854775808, 36);
SELECT as_base(-9223372036854775807, 36);
SELECT as_base(-9223372036854775808, 36);
SELECT as_base(-9223372036854775809, 36);
{'fraction_non_alphanumeric': 0.12727533323778129, 'fraction_numerical': 0.3573168983803927, 'mean_word_length': 9.307237813884786, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7444098', 'n_tokens_mistral': 4480, 'n_tokens_neox': 2928, 'n_words': 659}