<commit_before>// check if ready
Pebble.addEventListener('ready', function(e) {
    var address = 'https://api.github.com/users/arekom/';
    var access = '?client_id=TEST&client_secret=ONLY';

    var UI = require('ui');
    var ajax = require('ajax');

    var splashCard = new UI.Card({
        banner: 'images/github.png',
        bodyColor: 'tiffanyBlue'
    });
    splashCard.show();

    var mainMemnu = new UI.Menu({
        backgroundColor: 'tiffanyBlue',
        textColor: 'black',
        highlightTextColor: 'white',
        sections: [{
            title: 'Main Menu',
            items: [{
                title: 'Followers',
                icon: 'images/followers.png'
            }, {
                title: 'Repositories',
                icon: 'images/repos.png'
            }, {
                title: 'Notifications',
                icon: 'images/email.png'
            }, {
                title: 'Settings',
                icon: 'images/settings.png'
            }]
        }]
    })

    setTimeout(function() {
        splashCard.hide();
        mainMemnu.show();
    }, 1000)

    mainMemnu.on('select', function(e) {
        if (e.itemIndex === 0) {
            getFollowers();
        } else if (e.itemIndex === 1) {
            getRepositories();
        } else if (e.itemIndex === 2) {
            Pebble.showSimpleNotificationOnPebble('Push event!', 'dotnick pushed to [base] #372961');
        } else {
            var other = new UI.Card({
                title: 'Boilerplate',
                body: 'Random card body'
            });
            other.show();
        }
    });

    function getFollowers() {
        var followersURL = address + 'followers' + access;
        ajax({
            url: followersURL,
            type: 'json'
        }, function(json) {
            var followResultList = new UI.Menu({
                backgroundColor: 'tiffanyBlue',
                textColor: 'black',
                highlightTextColor: 'white',
                sections: [{
                    title: 'Followers',
                    items: [{
                        title: json[0].login
                    }]
                }]
            });
            followResultList.show();
        }, function(error) {
            console.log('Loading failed: ' + error);
        });
    }

    function getRepositories() {
        var reposURL = address + 'repos' + access;
        var parseFeed = function(json) {
            var items = [];
            for (var i = 0; i < json.length; i++) {
                var title = json[i].name;
                var subtitle = json[i].description;

                items.push({
                    title: title,
                    subtitle: subtitle
                });
            };
            return items;
        }
        ajax({
            url: reposURL,
            type: 'json'
        }, function(json) {
            var menuItems = parseFeed(json, 10);
            var repoResultList = new UI.Menu({
                backgroundColor: 'tiffanyBlue',
                textColor: 'black',
                highlightTextColor: 'white',
                sections: [{
                    title: 'Repositories',
                    items: menuItems
                }]
            });
            repoResultList.on('select', function(e) {
                var details = new UI.Card({
                    title: json[e.itemIndex].name,
                    body: json[e.itemIndex].full_name + '\n' + json[e.itemIndex].description
                });
                details.show();
            });
            repoResultList.show();
        }, function(error) {
            console.log('Loading failed: ' + error);
        });
    }
})<commit_msg>shake to update feature<commit_after>// check if ready
Pebble.addEventListener('ready', function(e) {
    var address = 'https://api.github.com/users/arekom/';
    var access = '?client_id=c23c8c057bafa21237f5&client_secret=<KEY>';

    var UI = require('ui');
    var ajax = require('ajax');
    var accel = require('ui/accel');
    var vibe = require('ui/vibe');

    var splashCard = new UI.Card({
        banner: 'images/github.png',
        bodyColor: 'tiffanyBlue'
    });
    splashCard.show();

    var mainMemnu = new UI.Menu({
        backgroundColor: 'tiffanyBlue',
        textColor: 'black',
        highlightTextColor: 'white',
        sections: [{
            title: 'Main Menu',
            items: [{
                title: 'Followers',
                icon: 'images/followers.png'
            }, {
                title: 'Repositories',
                icon: 'images/repos.png'
            }, {
                title: 'Notifications',
                icon: 'images/email.png'
            }, {
                title: 'Settings',
                icon: 'images/settings.png'
            }]
        }]
    })

    setTimeout(function() {
        splashCard.hide();
        mainMemnu.show();
    }, 1000)

    mainMemnu.on('select', function(e) {
        if (e.itemIndex === 0) {
            getFollowers();
        } else if (e.itemIndex === 1) {
            getRepositories();
        } else if (e.itemIndex === 2) {
            Pebble.showSimpleNotificationOnPebble('Push event!', 'dotnick pushed to [base] #372962');
        } else {
            var other = new UI.Card({
                title: 'Boilerplate',
                body: 'Random card body'
            });
            other.show();
        }
    });

    mainMemnu.on('accelTap', function(e) {
        getFollowers();
        getRepositories();
        Pebble.showSimpleNotificationOnPebble('Synced!', 'Your data has been successfully sychronized.');
    })

    function getFollowers() {
        var followersURL = address + 'followers' + access;
        ajax({
            url: followersURL,
            type: 'json'
        }, function(json) {
            var followResultList = new UI.Menu({
                backgroundColor: 'tiffanyBlue',
                textColor: 'black',
                highlightTextColor: 'white',
                sections: [{
                    title: 'Followers',
                    items: [{
                        title: json[0].login
                    }]
                }]
            });
            followResultList.show();
        }, function(error) {
            console.log('Loading failed: ' + error);
        });
        accel.init();
    }

    function getRepositories() {
        var reposURL = address + 'repos' + access;
        var parseFeed = function(json) {
            var items = [];
            for (var i = 0; i < json.length; i++) {
                var title = json[i].name;
                var subtitle = json[i].description;

                items.push({
                    title: title,
                    subtitle: subtitle
                });
            };
            return items;
        }
        ajax({
            url: reposURL,
            type: 'json'
        }, function(json) {
            var menuItems = parseFeed(json, 10);
            var repoResultList = new UI.Menu({
                backgroundColor: 'tiffanyBlue',
                textColor: 'black',
                highlightTextColor: 'white',
                sections: [{
                    title: 'Repositories',
                    items: menuItems
                }]
            });
            repoResultList.on('select', function(e) {
                var details = new UI.Card({
                    title: json[e.itemIndex].name,
                    body: json[e.itemIndex].full_name + '\n' + json[e.itemIndex].description
                });
                details.show();
            });
            repoResultList.show();
        }, function(error) {
            console.log('Loading failed: ' + error);
        });
        accel.init();
    }
})
{'fraction_non_alphanumeric': 0.12748748234689947, 'fraction_numerical': 0.0059057645397355245, 'mean_word_length': 1.3122588305135054, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '1299685', 'n_tokens_mistral': 2175, 'n_tokens_neox': 2014, 'n_words': 432}