<commit_before>const parse = json => {
    if(!json.results){
        return [];
    }

    return json.results.map(item => {
        return {
            _service: 'aliss',
            title: item.title,
            description: item.description,
        }
    });
};

module.exports={
    parse: parse
};
<commit_msg>Parse aliss data into unified format<commit_after>const parse = json => {
    if (!json.results) {
        return [];
    }

    return json.results.map(item => {
        return {
            "_id": item.id,
            "_service": "aliss",
            "title": item.title,
            "description": item.description,
            "additionalInformation": null,
            "tags": [],
            "contact": {
                "email": null,
                "phone": null,
                "facebook": null,
                "twitter": null,
                "website": item.uri
            },
            "locations": item.locations ? item.locations.map(location => {
                [country, city, street] = location.formatted_address
                    .split(',', 3).reverse();

                return {
                    "coordinates": {
                        "latitude": location.lat,
                        "longitude": location.lon
                    },
                    "postcode": null,
                    "street": street,
                    "city": city,
                    "country": country
                };
            }) : [],
        }
    });
};

module.exports = {
    parse: parse
};

{'fraction_non_alphanumeric': 0.1328125, 'fraction_numerical': 0.0006510416666666666, 'mean_word_length': 1.17090395480226, 'pattern_counts': {'":': 20, '<': 3, '<?xml version=': 0, '>': 8, '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': '4499725', 'n_tokens_mistral': 405, 'n_tokens_neox': 376, 'n_words': 79}