<commit_before>package com.navrit.dosenet;


import android.util.Log;
import android.widget.Toast;

import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.VolleyLog;
import com.android.volley.toolbox.JsonObjectRequest;
import com.navrit.dosenet.app.AppController;

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

import java.util.UUID;

public class graphViewController {
    private static String TAG = graphViewController.class.getSimpleName();

    public void getCSV(){
        String url_csv = "https://radwatch.berkeley.edu/sites/default/files/dosenet/"
                + getShortName(dosimeter.name) + "?"
                + UUID.randomUUID().toString().replace("-", "");
        JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,
                url_csv, null, new Response.Listener<JSONObject>() {
            @Override
            public void onResponse(JSONObject response) {
                Log.v(TAG, response.toString());<commit_msg>Start making csvStruct<commit_after>package com.navrit.dosenet;


import android.util.Log;
import android.widget.Toast;

import com.android.volley.*;
import com.android.volley.toolbox.JsonObjectRequest;
import com.navrit.dosenet.app.AppController;

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

import java.util.Date;
import java.util.List;
import java.util.UUID;

final class csvStruct{
    private static String TAG = graphViewController.class.getSimpleName();

    List<Date> times;
    List<Double> doses;

    private int getLength(){
        if (doses.size() == times.size()){
            return doses.size();
        } else {
            Log.e(TAG,": ERROR: Mismatch between Size of doses and times variables.");
            return 0;
        }
    }


}

public class graphViewController {
    private static String TAG = graphViewController.class.getSimpleName();

    public void getCSV(){
        String url_csv = "https://radwatch.berkeley.edu/sites/default/files/dosenet/"
                + getShortName(dosimeter.name) + "?"
                + UUID.randomUUID().toString().replace("-", "");
        JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,
                url_csv, null, new Response.Listener<JSONObject>() {
            @Override
            public void onResponse(JSONObject response) {
                Log.v(TAG, response.toString());
{'fraction_non_alphanumeric': 0.11469534050179211, 'fraction_numerical': 0.00039824771007566706, 'mean_word_length': 3.1180327868852458, 'pattern_counts': {'":': 1, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '7662896', 'n_tokens_mistral': 739, 'n_tokens_neox': 713, 'n_words': 146}