<commit_before>describe('columnFormat', function() {

    beforeEach(function() {
        affix('#cal');
    });

    describe('when columnFormat is not set', function() {

        var viewWithFormat = [ { view: 'month', expected: 'Sun', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: 'Sun 5/11', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: 'Sun 5/11', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: 'Sunday', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: 'Sunday', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11'
            });
        });

        it('should have default values', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('when columnFormat is set on a per-view basis', function() {

        var viewWithFormat = [ { view: 'month', expected: 'Sunday', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: 'Sunday 11 - 5', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: 'Sunday 11 , 5', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: 'Sunday 11 | 5', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: 'Sunday 5/11', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11',
                views: {
                    month: { columnFormat: 'dddd' },
                    agendaDay: { columnFormat: 'dddd M/D' },
                    agendaWeek: { columnFormat: 'dddd D , M' },
                    basicDay: { columnFormat: 'dddd D | M' },
                    basicWeek: { columnFormat: 'dddd D - M' }
                }
            });
        });

        it('should have the correct values', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('when locale is French', function() {

        var viewWithFormat = [ { view: 'month', expected: 'dim.', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: 'dim. 11/5', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: 'dim. 11/5', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: 'dimanche', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: 'dimanche', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11',
                locale: 'fr'
            });
        });

        it('should have the translated dates', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('when locale is en-gb', function() {

        var viewWithFormat = [ { view: 'month', expected: 'Sun', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: 'Sun 11/5', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: 'Sun 11/5', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: 'Sunday', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: 'Sunday', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11',
                locale: 'en-gb'
            });
        });

        it('should have the translated dates', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('when locale is Korean', function() {

        var viewWithFormat = [ { view: 'month', expected: '일', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: '일 5.11', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: '일 5.11', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: '일요일', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: '일요일', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11',
                locale: 'ko'
            });
        });

        it('should have the translated dates and columnFormat should be computed differently', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('using custom views', function() {
<commit_msg>korean now does two-digit month<commit_after>describe('columnFormat', function() {

    beforeEach(function() {
        affix('#cal');
    });

    describe('when columnFormat is not set', function() {

        var viewWithFormat = [ { view: 'month', expected: 'Sun', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: 'Sun 5/11', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: 'Sun 5/11', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: 'Sunday', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: 'Sunday', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11'
            });
        });

        it('should have default values', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('when columnFormat is set on a per-view basis', function() {

        var viewWithFormat = [ { view: 'month', expected: 'Sunday', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: 'Sunday 11 - 5', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: 'Sunday 11 , 5', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: 'Sunday 11 | 5', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: 'Sunday 5/11', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11',
                views: {
                    month: { columnFormat: 'dddd' },
                    agendaDay: { columnFormat: 'dddd M/D' },
                    agendaWeek: { columnFormat: 'dddd D , M' },
                    basicDay: { columnFormat: 'dddd D | M' },
                    basicWeek: { columnFormat: 'dddd D - M' }
                }
            });
        });

        it('should have the correct values', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('when locale is French', function() {

        var viewWithFormat = [ { view: 'month', expected: 'dim.', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: 'dim. 11/5', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: 'dim. 11/5', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: 'dimanche', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: 'dimanche', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11',
                locale: 'fr'
            });
        });

        it('should have the translated dates', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('when locale is en-gb', function() {

        var viewWithFormat = [ { view: 'month', expected: 'Sun', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: 'Sun 11/5', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: 'Sun 11/5', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: 'Sunday', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: 'Sunday', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11',
                locale: 'en-gb'
            });
        });

        it('should have the translated dates', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('when locale is Korean', function() {

        var viewWithFormat = [ { view: 'month', expected: '일', selector: 'th.fc-day-header.fc-sun' },
            { view: 'basicWeek', expected: '일 05.11', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaWeek', expected: '일 05.11', selector: 'th.fc-widget-header.fc-sun' },
            { view: 'basicDay', expected: '일요일', selector: 'th.fc-day-header.fc-sun' },
            { view: 'agendaDay', expected: '일요일', selector: 'th.fc-widget-header.fc-sun' } ];

        beforeEach(function() {
            $('#cal').fullCalendar({
                defaultDate: '2014-05-11',
                locale: 'ko'
            });
        });

        it('should have the translated dates and columnFormat should be computed differently', function() {
            var cal = $('#cal');

            for (var i = 0; i <  viewWithFormat.length; i++) {
                var crtView = viewWithFormat[i];
                cal.fullCalendar('changeView', crtView.view);
                expect(cal.find(crtView.selector).text()).toBe(crtView.expected);
            };
        });
    });

    describe('using custom views', function() {

{'fraction_non_alphanumeric': 0.17297162767546043, 'fraction_numerical': 0.013605442176870748, 'mean_word_length': 1.9231328806983512, 'pattern_counts': {'":': 0, '<': 13, '<?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': '1056315', 'n_tokens_mistral': 3796, 'n_tokens_neox': 3553, 'n_words': 758}