<commit_before>package com.nikolak.weatherapp.ForecastIO;

import java.util.List;
import com.nikolak.weatherapp.ForecastIO.Hour;

public class Hourly {
    private List<Hour> hourData;
    private String icon;
    private String summary;

    public List getData() {
        return this.hourData;
    }

    public void setData(List data) {
        this.hourData = data;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getSummary() {
        return this.summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }<commit_msg>Implement hourly forecast parsing<commit_after>package com.nikolak.weatherapp.ForecastIO;

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

import java.util.ArrayList;
import java.util.List;

public class Hourly {
    private ArrayList<Hour> hourData = new ArrayList<>();
    private String icon;
    private String summary;

    public List getData() {
        return this.hourData;
    }

    public String getIcon() {
        return this.icon;
    }

    public String getSummary() {
        return this.summary;
    }


    public void constructFromJson(JSONObject hourlyData) throws JSONException {
        this.summary = hourlyData.getString("summary");
        this.icon = hourlyData.getString("icon");

        JSONArray hourArray = hourlyData.getJSONArray("data");

        for (int i = 0; i < hourArray.length(); i++) {
            JSONObject hourJsonObject = hourArray.getJSONObject(i);
            Hour hourInstance = new Hour();
            hourInstance.constrcutFromJson(hourJsonObject);
            this.hourData.add(hourInstance);
        }
    }
{'fraction_non_alphanumeric': 0.09515765765765766, 'fraction_numerical': 0.0005630630630630631, 'mean_word_length': 2.6943866943866945, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '6613677', 'n_tokens_mistral': 524, 'n_tokens_neox': 503, 'n_words': 124}