<commit_before>/**
 * Copyright 2014, Yahoo! Inc.
 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */
var readFlickr = require('../shared/getFlickrPhotos'),
    readFlickrClient,
    Fetcher = require('../shared/fetcherClass'),
    fetcher = new Fetcher({
        crumb: false
    });

//client specific callback
readFlickrClient = function(err, data) {
    if(err) {
        throw err;
    }
    //client specific logic
    var dataContainer = document.getElementById('flickr-data'),
        h1 = document.getElementById('env');
    // set the environment h1
    h1.innerHTML = 'Client';
    // output the data
    dataContainer.innerHTML = JSON.stringify(data);
};

//client-server agnostic call for data
readFlickr(fetcher, readFlickrClient);<commit_msg>Update example with requireCrumb<commit_after>/**
 * Copyright 2014, Yahoo! Inc.
 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */
var readFlickr = require('../shared/getFlickrPhotos'),
    readFlickrClient,
    Fetcher = require('../shared/fetcherClass'),
    fetcher = new Fetcher({
        requireCrumb: false
    });

//client specific callback
readFlickrClient = function(err, data) {
    if(err) {
        throw err;
    }
    //client specific logic
    var dataContainer = document.getElementById('flickr-data'),
        h1 = document.getElementById('env');
    // set the environment h1
    h1.innerHTML = 'Client';
    // output the data
    dataContainer.innerHTML = JSON.stringify(data);
};

//client-server agnostic call for data
readFlickr(fetcher, readFlickrClient);
{'fraction_non_alphanumeric': 0.1175030599755202, 'fraction_numerical': 0.008567931456548347, 'mean_word_length': 3.2801047120418847, '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': '2463078', 'n_tokens_mistral': 485, 'n_tokens_neox': 458, 'n_words': 132}