// Path: puree/src/main/java/com/cookpad/puree/Puree.java
// public class Puree {
// 
//     private static final String TAG = Puree.class.getSimpleName();
// 
//     private static PureeLogger logger;
// 
//     public static synchronized void initialize(PureeConfiguration conf) {
//         if (logger != null) {
//             Log.w(TAG, "Puree has already been initialized; re-initialize it with the configuration");
//         }
//         setPureeLogger(conf.createPureeLogger());
//     }
// 
//     public static void setPureeLogger(PureeLogger instance) {
//         logger = instance;
//     }
// 
//     /**
//      * Try to send log.
//      * <p>
//      * This log is sent immediately or put into buffer (it's depending on output plugin).
//      */
//     public static void send(final Object log) {
//         checkIfPureeHasInitialized();
//         logger.send(log);
//     }
// 
//     /**
//      * Try to flush all logs that are in buffer.
//      */
//     public static void flush() {
//         checkIfPureeHasInitialized();
//         logger.flush();
//     }
// 
//     public static void dump() {
//         LogDumper.out(getBufferedLogs());
//     }
// 
//     /**
//      * Get all logs that in buffer.
//      *
//      * @return {@link Records}.
//      */
//     public static Records getBufferedLogs() {
//         checkIfPureeHasInitialized();
//         return logger.getBufferedLogs();
//     }
// 
//     /**
//      * Discards all logs in buffer.
//      */
//     public static void discardBufferedLogs() {
//         checkIfPureeHasInitialized();
//         logger.discardBufferedLogs();
//     }
// 
//     /**
//      * Truncate logs in buffer.
//      *
//      * @param truncateThresholdInRows truncate logs that are over this variable
//      */
//     public static void truncateBufferedLogs(int truncateThresholdInRows) {
//         checkIfPureeHasInitialized();
//         logger.truncateBufferedLogs(truncateThresholdInRows);
//     }
// 
//     public static Executor getExecutor() {
//         return logger.getExecutor();
//     }
// 
//     private static void checkIfPureeHasInitialized() {
//         if (logger == null) {
//             throw new NotInitializedException();
//         }
//     }
// 
//     public static class NotInitializedException extends IllegalStateException {
// 
//     }
// }
// 
// Path: demo/src/main/java/com/example/puree/logs/BenchmarkLog.java
// public class BenchmarkLog {
// 
//     @SerializedName("page")
//     private String page;
// 
//     @SerializedName("label")
//     private String label;
// 
//     public BenchmarkLog(String page, String label) {
//         this.page = page;
//         this.label = label;
//     }
// 
// }


import com.cookpad.puree.Puree;
import com.example.puree.logs.BenchmarkLog;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import java.util.ArrayList;
import androidx.appcompat.app.AppCompatActivity;
package com.example.puree;





public class BenchmarkActivity extends AppCompatActivity {

    ArrayList<SendLogs> tasks = new ArrayList<>();

    ArrayAdapter<String> listAdapter;

    ListView listView;

    int count = 0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
// Path: puree/src/main/java/com/cookpad/puree/Puree.java
// public class Puree {
// 
//     private static final String TAG = Puree.class.getSimpleName();
// 
//     private static PureeLogger logger;
// 
//     public static synchronized void initialize(PureeConfiguration conf) {
//         if (logger != null) {
//             Log.w(TAG, "Puree has already been initialized; re-initialize it with the configuration");
//         }
//         setPureeLogger(conf.createPureeLogger());
//     }
// 
//     public static void setPureeLogger(PureeLogger instance) {
//         logger = instance;
//     }
// 
//     /**
//      * Try to send log.
//      * <p>
//      * This log is sent immediately or put into buffer (it's depending on output plugin).
//      */
//     public static void send(final Object log) {
//         checkIfPureeHasInitialized();
//         logger.send(log);
//     }
// 
//     /**
//      * Try to flush all logs that are in buffer.
//      */
//     public static void flush() {
//         checkIfPureeHasInitialized();
//         logger.flush();
//     }
// 
//     public static void dump() {
//         LogDumper.out(getBufferedLogs());
//     }
// 
//     /**
//      * Get all logs that in buffer.
//      *
//      * @return {@link Records}.
//      */
//     public static Records getBufferedLogs() {
//         checkIfPureeHasInitialized();
//         return logger.getBufferedLogs();
//     }
// 
//     /**
//      * Discards all logs in buffer.
//      */
//     public static void discardBufferedLogs() {
//         checkIfPureeHasInitialized();
//         logger.discardBufferedLogs();
//     }
// 
//     /**
//      * Truncate logs in buffer.
//      *
//      * @param truncateThresholdInRows truncate logs that are over this variable
//      */
//     public static void truncateBufferedLogs(int truncateThresholdInRows) {
//         checkIfPureeHasInitialized();
//         logger.truncateBufferedLogs(truncateThresholdInRows);
//     }
// 
//     public static Executor getExecutor() {
//         return logger.getExecutor();
//     }
// 
//     private static void checkIfPureeHasInitialized() {
//         if (logger == null) {
//             throw new NotInitializedException();
//         }
//     }
// 
//     public static class NotInitializedException extends IllegalStateException {
// 
//     }
// }
// 
// Path: demo/src/main/java/com/example/puree/logs/BenchmarkLog.java
// public class BenchmarkLog {
// 
//     @SerializedName("page")
//     private String page;
// 
//     @SerializedName("label")
//     private String label;
// 
//     public BenchmarkLog(String page, String label) {
//         this.page = page;
//         this.label = label;
//     }
// 
// }


// Path: demo/src/main/java/com/example/puree/BenchmarkActivity.java
import com.cookpad.puree.Puree;
import com.example.puree.logs.BenchmarkLog;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import java.util.ArrayList;
import androidx.appcompat.app.AppCompatActivity;

package com.example.puree;





public class BenchmarkActivity extends AppCompatActivity {

    ArrayList<SendLogs> tasks = new ArrayList<>();

    ArrayAdapter<String> listAdapter;

    ListView listView;

    int count = 0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_benchmark);