<commit_before>package com.ternaryop.photoshelf.extractor;

import org.json.JSONException;
import org.json.JSONObject;

public class ImageInfo {
    private String thumbnailUrl;
    private String documentUrl;
    private String imageUrl;

    public ImageInfo() {
    }

    public ImageInfo(JSONObject json) throws JSONException {
        thumbnailUrl = json.getString("thumbnailUrl");
        documentUrl = json.getString("documentUrl");
    }

    /**
     * The thumbnail image url.
     * This is present on the HTML document from which pick images  
     * @return thumbnail url
     */
    public String getThumbnailUrl() {
        return thumbnailUrl;
    }<commit_msg>added the property imageUrl, now documentUrl is optional<commit_after>package com.ternaryop.photoshelf.extractor;

import org.json.JSONException;
import org.json.JSONObject;

public class ImageInfo {
    private String thumbnailUrl;
    private String documentUrl;
    private String imageUrl;

    public ImageInfo() {
    }

    public ImageInfo(JSONObject json) throws JSONException {
        thumbnailUrl = json.getString("thumbnailUrl");
        documentUrl = json.optString("documentUrl", null);
        imageUrl = json.optString("imageUrl", null);
    }

    /**
     * The thumbnail image url.
     * This is present on the HTML document from which pick images  
     * @return thumbnail url
     */
    public String getThumbnailUrl() {
        return thumbnailUrl;
    }
{'fraction_non_alphanumeric': 0.08093278463648834, 'fraction_numerical': 0.0, 'mean_word_length': 3.0754189944134076, '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': '3436448', 'n_tokens_mistral': 401, 'n_tokens_neox': 389, 'n_words': 115}