// Path: demo/igmodel/src/main/java/com/instagram/common/json/app/igmodel/IgListOfModels.java
// @JsonType
// public class IgListOfModels {
//   @JsonField(fieldName = "list")
//   List<IgModelRequest> list;
// }
// 
// Path: demo/igmodel/src/main/java/com/instagram/common/json/app/igmodel/IgModelRequest.java
// @JsonType
// public class IgModelRequest {
//   @JsonField(fieldName = "meta")
//   Meta meta;
// 
//   @JsonField(fieldName = "data")
//   List<Data> data;
// }
// 
// Path: demo/igmodel/src/main/java/com/instagram/common/json/app/igmodel/IgModelWorker.java
// public class IgModelWorker {
//   public IgModelRequest parseFromString(String input) throws IOException {
//     return IgModelRequest__JsonHelper.parseFromJson(input);
//   }
// 
//   public IgListOfModels parseListFromString(String input) throws IOException {
//     return IgListOfModels__JsonHelper.parseFromJson(input);
//   }
// }
// 
// Path: demo/src/main/java/com/instagram/common/json/app/ommodel/OmListOfModels.java
// public class OmListOfModels {
//   @JsonProperty("list")
//   List<OmModelRequest> list;
// }
// 
// Path: demo/src/main/java/com/instagram/common/json/app/ommodel/OmModelRequest.java
// public class OmModelRequest {
//   @JsonProperty("meta")
//   Meta meta;
// 
//   @JsonProperty("data")
//   List<Data> data;
// }
// 
// Path: demo/src/main/java/com/instagram/common/json/app/ommodel/OmModelWorker.java
// public class OmModelWorker {
//   private static final ObjectMapper sObjectMapper = new ObjectMapper();
// 
//   public OmModelRequest parseFromString(String input) throws IOException {
//     return sObjectMapper.readValue(input, OmModelRequest.class);
//   }
// 
//   public OmListOfModels parseListFromString(String input) throws IOException {
//     return sObjectMapper.readValue(input, OmListOfModels.class);
//   }
// }


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.instagram.common.json.app.igmodel.IgListOfModels;
import com.instagram.common.json.app.igmodel.IgModelRequest;
import com.instagram.common.json.app.igmodel.IgModelWorker;
import com.instagram.common.json.app.ommodel.OmListOfModels;
import com.instagram.common.json.app.ommodel.OmModelRequest;
import com.instagram.common.json.app.ommodel.OmModelWorker;
import com.instagram.common.json.app.utils.FileUtilsKt;
import com.instagram.jsonbenchmark.app.R;
import java.io.IOException;

    mJsonString = FileUtilsKt.rawResourceAsString(this, R.raw.benchmark_input);

    View.OnClickListener listener =
        new View.OnClickListener() {
          @Override
          public void onClick(View view) {
            boolean useIgParser = (view == findViewById(R.id.ig_parse_button));
            boolean useOmParser = (view == findViewById(R.id.om_parse_button));

            BenchmarkStats bs = new BenchmarkStats();

            int iterations = getIterationCount();
            if (iterations == 1) {
              IgModelRequest igModel;
              OmModelRequest omModel;
              try {
                bs.before();
                if (useIgParser) {
                  igModel = new IgModelWorker().parseFromString(mJsonString);
                } else if (useOmParser) {
                  omModel = new OmModelWorker().parseFromString(mJsonString);
                }
                bs.after();
              } catch (IOException ex) {
                Toast.makeText(
                        BenchmarkActivity.this, "yeah, bad things happened", Toast.LENGTH_LONG)
                    .show();
                return;
              }
// Path: demo/igmodel/src/main/java/com/instagram/common/json/app/igmodel/IgListOfModels.java
// @JsonType
// public class IgListOfModels {
//   @JsonField(fieldName = "list")
//   List<IgModelRequest> list;
// }
// 
// Path: demo/igmodel/src/main/java/com/instagram/common/json/app/igmodel/IgModelRequest.java
// @JsonType
// public class IgModelRequest {
//   @JsonField(fieldName = "meta")
//   Meta meta;
// 
//   @JsonField(fieldName = "data")
//   List<Data> data;
// }
// 
// Path: demo/igmodel/src/main/java/com/instagram/common/json/app/igmodel/IgModelWorker.java
// public class IgModelWorker {
//   public IgModelRequest parseFromString(String input) throws IOException {
//     return IgModelRequest__JsonHelper.parseFromJson(input);
//   }
// 
//   public IgListOfModels parseListFromString(String input) throws IOException {
//     return IgListOfModels__JsonHelper.parseFromJson(input);
//   }
// }
// 
// Path: demo/src/main/java/com/instagram/common/json/app/ommodel/OmListOfModels.java
// public class OmListOfModels {
//   @JsonProperty("list")
//   List<OmModelRequest> list;
// }
// 
// Path: demo/src/main/java/com/instagram/common/json/app/ommodel/OmModelRequest.java
// public class OmModelRequest {
//   @JsonProperty("meta")
//   Meta meta;
// 
//   @JsonProperty("data")
//   List<Data> data;
// }
// 
// Path: demo/src/main/java/com/instagram/common/json/app/ommodel/OmModelWorker.java
// public class OmModelWorker {
//   private static final ObjectMapper sObjectMapper = new ObjectMapper();
// 
//   public OmModelRequest parseFromString(String input) throws IOException {
//     return sObjectMapper.readValue(input, OmModelRequest.class);
//   }
// 
//   public OmListOfModels parseListFromString(String input) throws IOException {
//     return sObjectMapper.readValue(input, OmListOfModels.class);
//   }
// }


// Path: demo/src/main/java/com/instagram/common/json/app/benchmark/BenchmarkActivity.java
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.instagram.common.json.app.igmodel.IgListOfModels;
import com.instagram.common.json.app.igmodel.IgModelRequest;
import com.instagram.common.json.app.igmodel.IgModelWorker;
import com.instagram.common.json.app.ommodel.OmListOfModels;
import com.instagram.common.json.app.ommodel.OmModelRequest;
import com.instagram.common.json.app.ommodel.OmModelWorker;
import com.instagram.common.json.app.utils.FileUtilsKt;
import com.instagram.jsonbenchmark.app.R;
import java.io.IOException;


    mJsonString = FileUtilsKt.rawResourceAsString(this, R.raw.benchmark_input);

    View.OnClickListener listener =
        new View.OnClickListener() {
          @Override
          public void onClick(View view) {
            boolean useIgParser = (view == findViewById(R.id.ig_parse_button));
            boolean useOmParser = (view == findViewById(R.id.om_parse_button));

            BenchmarkStats bs = new BenchmarkStats();

            int iterations = getIterationCount();
            if (iterations == 1) {
              IgModelRequest igModel;
              OmModelRequest omModel;
              try {
                bs.before();
                if (useIgParser) {
                  igModel = new IgModelWorker().parseFromString(mJsonString);
                } else if (useOmParser) {
                  omModel = new OmModelWorker().parseFromString(mJsonString);
                }
                bs.after();
              } catch (IOException ex) {
                Toast.makeText(
                        BenchmarkActivity.this, "yeah, bad things happened", Toast.LENGTH_LONG)
                    .show();
                return;
              }
            } else {