<commit_before>#include <jni.h>
#include <stdio.h>
#include <chrono>
#include <fstream>
#include <iomanip>
#include <iostream>

/*#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/graph/default_device.h"
#include "tensorflow/core/graph/graph_def_builder.h"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/lib/core/threadpool.h"
#include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/lib/strings/stringprintf.h"
#include "tensorflow/core/platform/init_main.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/core/public/session.h"
#include "tensorflow/core/util/command_line_flags.h"

#include "boost/algorithm/string.hpp"
#include "boost/algorithm/string/replace.hpp"
#include "boost/filesystem.hpp"
#include "boost/property_tree/json_parser.hpp"
#include "boost/property_tree/ptree.hpp"
#include "opencv2/opencv.hpp"
#include "stitch_rects.h"

using tensorflow::Flag;
using tensorflow::Tensor;
using tensorflow::Status;
using tensorflow::string;
using tensorflow::int32;
using namespace cv;

using Clock = std::chrono::high_resolution_clock;
using TimePoint = std::chrono::high_resolution_clock::time_point;
*/

#define TENSORBOXDETECTOR_METHOD(METHOD_NAME) \
  Java_com_ucarinc_adas_android_TensorboxDetector_##METHOD_NAME  // NOLINT

#ifdef __cplusplus
extern "C" {
#endif

JNIEXPORT void JNICALL
TENSORBOXDETECTOR_METHOD(testImage)(
    JNIEnv* env, jclass clazz, jint input, jint output);

#ifdef __cplusplus
}
#endif

JNIEXPORT void JNICALL
TENSORBOXDETECTOR_METHOD(testImage)(
    JNIEnv* env, jclass clazz, jint input, jint output) {
        int tmp = input+1;
        output = tmp;
    }
/*
// -------------------------------------------------------------------------
struct Args {
  bool show_img = true;
  bool dump_result = false;
  int img_width = 640;
  int img_height = 384;
  int num_classes = 2;
  int region_size = 32;
  int gpu = 0;
  int num_boxes = 5;
  int shape_dim = 4;
  string eval_list;
  string eval_classes;
  string video_path;
  string graph_path;
  string scale = "0.5";
  string conf = "0.1";
  string inter = "linear";
  string class_names = "car,ped";
  string input_layer = "x_in";<commit_msg>change cc<commit_after>#include <jni.h>
#include <stdio.h>
#include <chrono>
#include <fstream>
#include <iomanip>
#include <iostream>

/*#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/graph/default_device.h"
#include "tensorflow/core/graph/graph_def_builder.h"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/lib/core/threadpool.h"
#include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/lib/strings/stringprintf.h"
#include "tensorflow/core/platform/init_main.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/core/public/session.h"
#include "tensorflow/core/util/command_line_flags.h"

#include "boost/algorithm/string.hpp"
#include "boost/algorithm/string/replace.hpp"
#include "boost/filesystem.hpp"
#include "boost/property_tree/json_parser.hpp"
#include "boost/property_tree/ptree.hpp"
#include "opencv2/opencv.hpp"
#include "stitch_rects.h"

using tensorflow::Flag;
using tensorflow::Tensor;
using tensorflow::Status;
using tensorflow::string;
using tensorflow::int32;
using namespace cv;

using Clock = std::chrono::high_resolution_clock;
using TimePoint = std::chrono::high_resolution_clock::time_point;
*/

#define TENSORBOXDETECTOR_METHOD(METHOD_NAME) \
  Java_com_ucarinc_adas_android_TensorboxDetector_##METHOD_NAME  // NOLINT

#ifdef __cplusplus
extern "C" {
#endif

JNIEXPORT jint JNICALL
TENSORBOXDETECTOR_METHOD(testImage)(
    JNIEnv* env, jclass clazz, jint input);

#ifdef __cplusplus
}
#endif

JNIEXPORT jint JNICALL
TENSORBOXDETECTOR_METHOD(testImage)(
    JNIEnv* env, jclass clazz, jint input) {
        return input+1;
    }
/*
// -------------------------------------------------------------------------
struct Args {
  bool show_img = true;
  bool dump_result = false;
  int img_width = 640;
  int img_height = 384;
  int num_classes = 2;
  int region_size = 32;
  int gpu = 0;
  int num_boxes = 5;
  int shape_dim = 4;
  string eval_list;
  string eval_classes;
  string video_path;
  string graph_path;
  string scale = "0.5";
  string conf = "0.1";
  string inter = "linear";
  string class_names = "car,ped";
  string input_layer = "x_in";
{'fraction_non_alphanumeric': 0.15518379925159587, 'fraction_numerical': 0.008804754567466431, 'mean_word_length': 4.403091557669441, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7654010', 'n_tokens_mistral': 1640, 'n_tokens_neox': 1601, 'n_words': 321}