<commit_before>define(['util/formatters'], function(f) {

    describe('formatters', function() {

        describe('for numbers', function() {

            it('should have pretty function', function() {
                expect(f.number.pretty(0)).to.equal('0');
                expect(f.number.pretty(1)).to.equal('1');
                expect(f.number.pretty(1321)).to.equal('1,321');
                expect(f.number.pretty(12321)).to.equal('12,321');

                expect(f.number.pretty(1123456)).to.equal('1,123,456');
                expect(f.number.pretty(1123456789)).to.equal('1,123,456,789');
            })

            it('should have prettyApproximate function', function() {
                expect(f.number.prettyApproximate(0)).to.equal('0');
                expect(f.number.prettyApproximate(1)).to.equal('1');

                expect(f.number.prettyApproximate(1024)).to.equal('1numbers.thousand_suffix');
                expect(f.number.prettyApproximate(1100)).to.equal('1.1numbers.thousand_suffix');
                expect(f.number.prettyApproximate(1150)).to.equal('1.2numbers.thousand_suffix');

                expect(f.number.prettyApproximate(10000)).to.equal('10numbers.thousand_suffix');
                expect(f.number.prettyApproximate(10550)).to.equal('10.6numbers.thousand_suffix');<commit_msg>Add test for long number formatting<commit_after>define(['util/formatters'], function(f) {

    describe('formatters', function() {

        describe('for numbers', function() {

            it('should have pretty function', function() {
                expect(f.number.pretty(0)).to.equal('0');
                expect(f.number.pretty(1)).to.equal('1');
                expect(f.number.pretty(1321)).to.equal('1,321');
                expect(f.number.pretty(12321)).to.equal('12,321');

                expect(f.number.pretty(1123456)).to.equal('1,123,456');
                expect(f.number.pretty(1123456789)).to.equal('1,123,456,789');
                expect(f.number.pretty(1111123456789)).to.equal('1,111,123,456,789');
                expect(f.number.pretty(1111111123456789)).to.equal('1,111,111,123,456,789');
            })

            it('should have prettyApproximate function', function() {
                expect(f.number.prettyApproximate(0)).to.equal('0');
                expect(f.number.prettyApproximate(1)).to.equal('1');

                expect(f.number.prettyApproximate(1024)).to.equal('1numbers.thousand_suffix');
                expect(f.number.prettyApproximate(1100)).to.equal('1.1numbers.thousand_suffix');
                expect(f.number.prettyApproximate(1150)).to.equal('1.2numbers.thousand_suffix');

                expect(f.number.prettyApproximate(10000)).to.equal('10numbers.thousand_suffix');
                expect(f.number.prettyApproximate(10550)).to.equal('10.6numbers.thousand_suffix');
{'fraction_non_alphanumeric': 0.17139852786540483, 'fraction_numerical': 0.0848229933403435, 'mean_word_length': 2.7258485639686683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '2767726', 'n_tokens_mistral': 1068, 'n_tokens_neox': 818, 'n_words': 66}