<commit_before>module.exports = function (db) {

    function get(req, res) {
        console.log(req.headers.inputvalue);
        const inputValue = req.headers.inputvalue;

        if (!inputValue) {
            res.status(400)
                .json('Invalid input value');
            return;
        }
        let resu=[];
        let ids = db.collection('tickets').find().toArray(function (e, ticketsList) {
            let tickets=ticketsList.map( (ticket,index)=>{ticket.id;} )
            console.log(tickets.join(", "));
            resu=tickets.slice();
        });
        console.log(resu);
        console.log()
        //console.log(ids);
        res.status(201)
            .json({
                result: {
                    status: 'success'
                }
            });

    }

    return {<commit_msg>fix popover<commit_after>module.exports = function(db) {

    function get(req, res) {
        console.log(req.headers.inputvalue);
        const inputValue = req.headers.inputvalue;

        if (!inputValue) {
            res.status(400)
                .json('Invalid input value');
            return;
        }

        db.collection('tickets').find().toArray(function(e, ticketsList) {
            const tickets = ticketsList.map(t => t.id);
            res.status(201)
                .json({
                    result: {
                        tickets: tickets
                    }
                });
        });
    }

    return {
{'fraction_non_alphanumeric': 0.13197278911564625, 'fraction_numerical': 0.00816326530612245, 'mean_word_length': 1.391869918699187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3506905', 'n_tokens_mistral': 421, 'n_tokens_neox': 393, 'n_words': 67}