<commit_before>let ig = require('instagram-node');

module.exports = function (context, message) {
    let token = message.instagram.token;
    let client = ig.instagram();
    client.use({ access_token: token });
    client.media(message.mediaid, handleMedia);

    function handleMedia(err, media) {
        if (media.tags.includes('hfm')) { //USED FOR FILTERING; Would be better upstream???
            let message = {
                plaftorm: 'instagram',
                userid: msg.user_id,
                longitude: media.location.longitude,
                latitude: media.location.latitude,
                profileimageurl: media.user.profile_picture,
                photos: [],
                media_id: media.id,
                media_text: media.caption.text
            }

            context.bindings.out = message;<commit_msg>remove blah<commit_after>let ig = require('instagram-node');

module.exports = function (context, message) {
    let token = message.instagram.token;
    let client = ig.instagram();
    client.use({ access_token: token });
    client.media(message.mediaid, handleMedia);

    function handleMedia(err, media) {
        if (media.tags.includes('hfm')) { //USED FOR FILTERING; Would be better upstream???
            let message = {
                plaftorm: 'instagram',
                userid: msg.user_id,
                longitude: media.location.longitude,
                latitude: media.location.latitude,
                profileimageurl: media.user.profile_picture,
                media_id: media.id,
                media_text: media.caption.text
            }

            context.bindings.out = message;
{'fraction_non_alphanumeric': 0.1097708082026538, 'fraction_numerical': 0.0, 'mean_word_length': 2.0496323529411766, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1541870', 'n_tokens_mistral': 465, 'n_tokens_neox': 437, 'n_words': 97}