<commit_before>// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/android/base_jni_registrar.h"
#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
#include "net/android/net_jni_registrar.h"
#include "remoting/client/jni/chromoting_jni_runtime.h"
#include "ui/gfx/android/gfx_jni_registrar.h"

extern "C" {

JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
  base::android::InitVM(vm);

  JNIEnv* env = base::android::AttachCurrentThread();
  static base::android::RegistrationMethod kRemotingRegisteredMethods[] = {
      {"base", base::android::RegisterJni},
      {"gfx", gfx::android::RegisterJni},
      {"net", net::android::RegisterJni},
      {"remoting", remoting::RegisterJni},
  };
  if (!base::android::RegisterNativeMethods(
      env, kRemotingRegisteredMethods, arraysize(kRemotingRegisteredMethods))) {
    return -1;
  }

  return JNI_VERSION_1_4;
}

}  // extern "C"<commit_msg>Android Chromoting: Fix ClassNotFoundException in native->Java calls.<commit_after>// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/android/base_jni_registrar.h"
#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
#include "base/android/jni_utils.h"
#include "net/android/net_jni_registrar.h"
#include "remoting/client/jni/chromoting_jni_runtime.h"
#include "ui/gfx/android/gfx_jni_registrar.h"

extern "C" {

JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
  base::android::InitVM(vm);

  JNIEnv* env = base::android::AttachCurrentThread();
  static base::android::RegistrationMethod kRemotingRegisteredMethods[] = {
      {"base", base::android::RegisterJni},
      {"gfx", gfx::android::RegisterJni},
      {"net", net::android::RegisterJni},
      {"remoting", remoting::RegisterJni},
  };
  if (!base::android::RegisterNativeMethods(
      env, kRemotingRegisteredMethods, arraysize(kRemotingRegisteredMethods))) {
    return -1;
  }

  base::android::InitReplacementClassLoader(env,
                                            base::android::GetClassLoader(env));

  return JNI_VERSION_1_4;
}

}  // extern "C"
{'fraction_non_alphanumeric': 0.13669372063220847, 'fraction_numerical': 0.00598035027765912, 'mean_word_length': 4.698296836982968, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4322909', 'n_tokens_mistral': 791, 'n_tokens_neox': 774, 'n_words': 157}