<commit_before>module.exports = {
    getDetails:function(id,callback){
        callback({});
    },
    query:function(qo,callback){
        var query=qo.query,area=qo.area;
        let path = "/api/v2/search/?q="+encodeURIComponent(query);

        if(area){
            path += `latitude=${area.lat}&longitude=${area.lon}&distance=${area.distance}`;
        }

        https.get({
            path:path,
            hostname:"www.aliss.org",
            method:"GET",
            headers:{
                'Accept':'application/json'
            }
        },function(res){
            console.log('Status '+res.statusCode);
            console.log('Headers '+JSON.stringify(res.headers));
            let data='';
            res.on('data',function(chunk){
                data+=chunk;
            });
            res.on('end',function(){
                try{
                    callback(JSON.parse(data));
                }
                catch(err){
                    console.error('ALISS error: '+err);
                }
            });
        });
    }
};
<commit_msg>Add missing '&' to area query in Aliss<commit_after>module.exports = {
    getDetails:function(id,callback){
        callback({});
    },
    query:function(qo,callback){
        var query=qo.query,area=qo.area;
        let path = "/api/v2/search/?q="+encodeURIComponent(query);

        if(area){
            path += `&latitude=${area.lat}&longitude=${area.lon}&distance=${area.distance}`;
        }

        https.get({
            path:path,
            hostname:"www.aliss.org",
            method:"GET",
            headers:{
                'Accept':'application/json'
            }
        },function(res){
            console.log('Status '+res.statusCode);
            console.log('Headers '+JSON.stringify(res.headers));
            let data='';
            res.on('data',function(chunk){
                data+=chunk;
            });
            res.on('end',function(){
                try{
                    callback(JSON.parse(data));
                }
                catch(err){
                    console.error('ALISS error: '+err);
                }
            });
        });
    }
};

{'fraction_non_alphanumeric': 0.15827996340347666, 'fraction_numerical': 0.0009149130832570906, 'mean_word_length': 1.435412026726058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2697430', 'n_tokens_mistral': 616, 'n_tokens_neox': 591, 'n_words': 74}