<commit_before>#include "ofApp.h"


void ofApp::setup()
{
    ofSetFrameRate(24);

    std::string url = "https://www.flickr.com/services/rest/?method=flickr.interestingness.getList&api_key=76fee119f6a01912ef7d32cbedc761bb&format=json&nojsoncallback=1";

    if (!response.open(url))
    {
        ofLogNotice("ofApp::setup") << "Failed to parse JSON";
    }

    std::size_t numImages = MIN(5, response["photos"]["photo"].size());

    for (Json::ArrayIndex i = 0; i < numImages; ++i)
    {
        int farm = response["photos"]["photo"][i]["farm"].asInt();
        std::string id = response["photos"]["photo"][i]["id"].asString();
        std::string secret = response["photos"]["photo"][i]["secret"].asString();
        std::string server = response["photos"]["photo"][i]["server"].asString();
        std::string url = "http://farm" + ofToString(farm) + ".static.flickr.com/" + server + "/" + id + "_" + secret + ".jpg";

        ofImage img;
        img.load(url);
        images.push_back(img);
    }
}<commit_msg>Go back to 0.8.4 api.<commit_after>#include "ofApp.h"


void ofApp::setup()
{
    ofSetFrameRate(24);

    std::string url = "https://www.flickr.com/services/rest/?method=flickr.interestingness.getList&api_key=76fee119f6a01912ef7d32cbedc761bb&format=json&nojsoncallback=1";

    if (!response.open(url))
    {
        ofLogNotice("ofApp::setup") << "Failed to parse JSON";
    }

    std::size_t numImages = MIN(5, response["photos"]["photo"].size());

    for (Json::ArrayIndex i = 0; i < numImages; ++i)
    {
        int farm = response["photos"]["photo"][i]["farm"].asInt();
        std::string id = response["photos"]["photo"][i]["id"].asString();
        std::string secret = response["photos"]["photo"][i]["secret"].asString();
        std::string server = response["photos"]["photo"][i]["server"].asString();
        std::string url = "http://farm" + ofToString(farm) + ".static.flickr.com/" + server + "/" + id + "_" + secret + ".jpg";

        ofImage img;
        img.loadImage(url);
        images.push_back(img);
    }
}
{'fraction_non_alphanumeric': 0.20896249391134925, 'fraction_numerical': 0.02289332683877253, 'mean_word_length': 3.6470588235294117, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7631572', 'n_tokens_mistral': 745, 'n_tokens_neox': 706, 'n_words': 106}