<commit_before>package coatapp.coat;

import android.os.AsyncTask;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class ForecastRequestTask extends AsyncTask<String, Void, String> {

    public String result;

    public static String getForecastRequest(String urlToRead) throws Exception {
        StringBuilder result = new StringBuilder();
        URL url = new URL(urlToRead);
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestMethod("GET");
        BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String line;
        while ((line = rd.readLine()) != null) {
            result.append(line);
        }
        rd.close();
        return result.toString();
    }


    @Override
    protected String doInBackground(String... params) {

        String forecastRequestResponse = "";

        try {
            forecastRequestResponse = getForecastRequest(params[0].toString());
            result = forecastRequestResponse;
        } catch (Exception e) {
            e.printStackTrace();
        }

        return forecastRequestResponse;
    }

    @Override
    protected void onPostExecute(String message) {
        //process message
    }
}<commit_msg>Simplify class by removing unnecessary stuff<commit_after>package coatapp.coat;

import android.os.AsyncTask;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class ForecastRequestTask extends AsyncTask<String, Void, String> {

    private static String getForecastRequest(String urlToRead) throws Exception {
        StringBuilder result = new StringBuilder();
        URL url = new URL(urlToRead);
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestMethod("GET");
        BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String line;
        while ((line = rd.readLine()) != null) {
            result.append(line);
        }
        rd.close();
        return result.toString();
    }


    @Override
    protected String doInBackground(String... params) {

        String forecastRequestResponse = "";

        try {
            forecastRequestResponse = getForecastRequest(params[0]);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return forecastRequestResponse;
    }

    @Override
    protected void onPostExecute(String message) {
        //process message
    }
}
{'fraction_non_alphanumeric': 0.09465648854961832, 'fraction_numerical': 0.0007633587786259542, 'mean_word_length': 2.809593023255814, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2138209', 'n_tokens_mistral': 675, 'n_tokens_neox': 652, 'n_words': 164}