<commit_before>function route(expressApp){

    expressApp.get('/gameEventMember', 'gameEventMember', expressApp.restrict, function (req, res) {
        expressApp.models.GameEventMember.findAll().then(function(results) {
            res.render('gameEventMember/list', {
                title: 'Members',
                listObjs: results
            });
        }).catch(function(err) {
            next(err);
        });
    });

    expressApp.get('/gameEventMember/create', 'gameEventMember.create', expressApp.restrict, function (req, res) {

        res.render('gameEventMember/create', {
            title: 'GameEventMembers Create'
        });
    });

    expressApp.get('/gameEventMember/:id', 'gameEventMember.show', expressApp.restrict, function(req, res) {
        var gameEventMemberId = req.params.id;
        expressApp.models.GameEventMember.findOne({<commit_msg>modify list paginaton for game event member<commit_after>function route(expressApp){

    expressApp.get('/gameEventMember', 'gameEventMember', expressApp.restrict, function (req, res, next) {
        var perPage = 15;
        var currentPage = Number(req.query.page || 1);
        var filter = {};

        var Model = expressApp.models.GameEventMember;

        Model.findAll({
                where : filter
            })
            .then(function(filteredModel) {
                var count = filteredModel.length;

                Model.findAll({
                        where : filter,
                        limit : perPage,
                        offset : (currentPage <= 1) ? 0 : perPage*(currentPage-1)
                    })
                    .then(function (results) {
                        res.render('gameEventMember/list', {
                            title: 'Game Event Members',
                            listObjs: results,
                            page:currentPage,
                            count:count
                        });
                    }).catch(function (err) {
                    next(err);
                });

            }).catch(function(err){
            next(err);
        });
    });

    expressApp.get('/gameEventMember/create', 'gameEventMember.create', expressApp.restrict, function (req, res) {

        res.render('gameEventMember/create', {
            title: 'GameEventMembers Create'
        });
    });

    expressApp.get('/gameEventMember/:id', 'gameEventMember.show', expressApp.restrict, function(req, res) {
        var gameEventMemberId = req.params.id;
        expressApp.models.GameEventMember.findOne({
{'fraction_non_alphanumeric': 0.12075029308323564, 'fraction_numerical': 0.0023446658851113715, 'mean_word_length': 1.7765726681127982, 'pattern_counts': {'":': 0, '<': 4, '<?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': '806239', 'n_tokens_mistral': 673, 'n_tokens_neox': 641, 'n_words': 113}