<commit_before>// THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS.

// WARNING: This file has automatically been generated on Sat, 05 Nov 2016 19:40:00 MSK.
// By https://git.io/cgogen. DO NOT EDIT.

package android

/*
#cgo LDFLAGS: -landroid -llog
#include <android/api-level.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <android/configuration.h>
#include <android/input.h>
#include <android/keycodes.h>
#include <android/log.h>
#include <android/looper.h>
#include <android/native_activity.h>
#include <android/native_window.h>
#include <android/native_window_jni.h>
#include <android/obb.h>
#include <android/rect.h>
#include <android/sensor.h>
#include <android/storage_manager.h>
#include <android/tts.h>
#include <android/window.h>
#include <stdlib.h>
#include "cgo_helpers.h"
*/
import "C"
import "unsafe"

// AssetManager as declared in android/asset_manager.h:28
type AssetManager C.AAssetManager

// AssetDir as declared in android/asset_manager.h:31
type AssetDir C.AAssetDir

// Asset as declared in android/asset_manager.h:34
type Asset C.AAsset

// Jobject type as declared in include/jni.h:98
type Jobject unsafe.Pointer

// JNINativeMethod as declared in include/jni.h:147
type JNINativeMethod C.JNINativeMethod

// JNIEnv as declared in include/jni.h:157
type JNIEnv C.JNIEnv

// JavaVM as declared in include/jni.h:158
type JavaVM C.JavaVM

// JavaVMAttachArgs as declared in include/jni.h:1106
type JavaVMAttachArgs C.JavaVMAttachArgs

// JavaVMOption as declared in include/jni.h:1115
type JavaVMOption C.JavaVMOption

// JavaVMInitArgs as declared in include/jni.h:1123
type JavaVMInitArgs C.JavaVMInitArgs

// Configuration as declared in android/configuration.h:27
type Configuration C.AConfiguration

// Looper as declared in android/looper.h:39
type Looper C.ALooper

// LooperCallbackFunc type as declared in android/looper.h:159
type LooperCallbackFunc func(fd int32, events int32, data unsafe.Pointer) int32

// NativeActivity as declared in android/native_activity.h:108
type NativeActivity struct {
	Callbacks        *NativeActivityCallbacks
	Vm               *JavaVM
	Env              *JNIEnv
	Clazz            Jobject
	InternalDataPath string
	ExternalDataPath string
	SdkVersion       int32
	Instance         unsafe.Pointer
	AssetManager     *AssetManager
	ObbPath          string
	ref2cc295bf      *C.ANativeActivity
	allocs2cc295bf   interface{}
}

// NativeActivityCallbacks as declared in android/native_activity.h:225
type NativeActivityCallbacks C.ANativeActivityCallbacks

// NativeActivityCreateFunc type as declared in android/native_activity.h:235
type NativeActivityCreateFunc func(activity *NativeActivity, savedState unsafe.Pointer, savedStateSize uint32)

// InputEvent as declared in android/input.h:136
type InputEvent C.AInputEvent

// InputQueue as declared in android/input.h:803
type InputQueue C.AInputQueue

// NativeWindow as declared in android/native_window.h:36
type NativeWindow C.ANativeWindow

// NativeWindowBuffer as declared in android/native_window.h:57
type NativeWindowBuffer struct {
	Width          int32
	Height         int32
	Stride         int32
	Format         int32
	Bits           unsafe.Pointer
	Reserved       [6]uint32
	ref3db2646c    *C.ANativeWindow_Buffer
	allocs3db2646c interface{}
}

// Rect as declared in android/rect.h:35
type Rect struct {
	Left           int32
	Top            int32
	Right          int32
	Bottom         int32
	ref9511c547    *C.ARect
	allocs9511c547 interface{}
}

// ObbInfo as declared in android/obb.h:28
type ObbInfo C.AObbInfo

// SensorVector as declared in android/sensor.h:119
type SensorVector struct {
	Status         byte
	Reserved       [3]byte
	refdc35e822    *C.ASensorVector
	allocsdc35e822 interface{}
}

// MetaDataEvent as declared in android/sensor.h:124
type MetaDataEvent struct {
	What           int32
	Sensor         int32
	ref4f7ec3e5    *C.AMetaDataEvent
	allocs4f7ec3e5 interface{}
}

// UncalibratedEvent as declared in android/sensor.h:143
type UncalibratedEvent C.AUncalibratedEvent

// HeartRateEvent as declared in android/sensor.h:148
type HeartRateEvent struct {
	Bpm            float32
	Status         byte
	ref1342bcf5    *C.AHeartRateEvent
	allocs1342bcf5 interface{}
}

// SensorEvent as declared in android/sensor.h:181
type SensorEvent struct {
	Version        int32
	Sensor         int32
	Type           int32
	Reserved0      int32
	Timestamp      int64
	Flags          uint32
	Reserved1      [3]int32
	refb7a6c7dc    *C.ASensorEvent
	allocsb7a6c7dc interface{}
}

// SensorManager as declared in android/sensor.h:184
type SensorManager C.ASensorManager

// SensorEventQueue as declared in android/sensor.h:187
type SensorEventQueue C.ASensorEventQueue

// Sensor as declared in android/sensor.h:190
type Sensor C.ASensor

// SensorRef as declared in android/sensor.h:191
type SensorRef C.ASensor

// SensorList as declared in android/sensor.h:192
type SensorList C.ASensorRef

// StorageManager as declared in android/storage_manager.h:28
type StorageManager C.AStorageManager

// StorageManagerObbCallbackFunc type as declared in android/storage_manager.h:98
type StorageManagerObbCallbackFunc func(filename string, state int32, data unsafe.Pointer)
<commit_msg>Add Ptr() for NativeWindow to fetch its uintptr.<commit_after>// THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS.

// WARNING: This file has automatically been generated on Sat, 05 Nov 2016 22:31:36 MSK.
// By https://git.io/cgogen. DO NOT EDIT.

package android

/*
#cgo LDFLAGS: -landroid -llog
#include <android/api-level.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <android/configuration.h>
#include <android/input.h>
#include <android/keycodes.h>
#include <android/log.h>
#include <android/looper.h>
#include <android/native_activity.h>
#include <android/native_window.h>
#include <android/native_window_jni.h>
#include <android/obb.h>
#include <android/rect.h>
#include <android/sensor.h>
#include <android/storage_manager.h>
#include <android/tts.h>
#include <android/window.h>
#include <stdlib.h>
#include "cgo_helpers.h"
*/
import "C"
import "unsafe"

// AssetManager as declared in android/asset_manager.h:28
type AssetManager C.AAssetManager

// AssetDir as declared in android/asset_manager.h:31
type AssetDir C.AAssetDir

// Asset as declared in android/asset_manager.h:34
type Asset C.AAsset

// Jobject type as declared in include/jni.h:98
type Jobject unsafe.Pointer

// JNINativeMethod as declared in include/jni.h:147
type JNINativeMethod C.JNINativeMethod

// JNIEnv as declared in include/jni.h:157
type JNIEnv C.JNIEnv

// JavaVM as declared in include/jni.h:158
type JavaVM C.JavaVM

// JavaVMAttachArgs as declared in include/jni.h:1106
type JavaVMAttachArgs C.JavaVMAttachArgs

// JavaVMOption as declared in include/jni.h:1115
type JavaVMOption C.JavaVMOption

// JavaVMInitArgs as declared in include/jni.h:1123
type JavaVMInitArgs C.JavaVMInitArgs

// Configuration as declared in android/configuration.h:27
type Configuration C.AConfiguration

// Looper as declared in android/looper.h:39
type Looper C.ALooper

// LooperCallbackFunc type as declared in android/looper.h:159
type LooperCallbackFunc func(fd int32, events int32, data unsafe.Pointer) int32

// NativeActivity as declared in android/native_activity.h:108
type NativeActivity struct {
	Callbacks        *NativeActivityCallbacks
	Vm               *JavaVM
	Env              *JNIEnv
	Clazz            Jobject
	InternalDataPath string
	ExternalDataPath string
	SdkVersion       int32
	Instance         unsafe.Pointer
	AssetManager     *AssetManager
	ObbPath          string
	ref2cc295bf      *C.ANativeActivity
	allocs2cc295bf   interface{}
}

// NativeActivityCallbacks as declared in android/native_activity.h:225
type NativeActivityCallbacks C.ANativeActivityCallbacks

// NativeActivityCreateFunc type as declared in android/native_activity.h:235
type NativeActivityCreateFunc func(activity *NativeActivity, savedState unsafe.Pointer, savedStateSize uint32)

// InputEvent as declared in android/input.h:136
type InputEvent C.AInputEvent

// InputQueue as declared in android/input.h:803
type InputQueue C.AInputQueue

// NativeWindow as declared in android/native_window.h:36
type NativeWindow C.ANativeWindow

func (n *NativeWindow) Ptr() uintptr {
	return uintptr(unsafe.Pointer(n))
}

// NativeWindowBuffer as declared in android/native_window.h:57
type NativeWindowBuffer struct {
	Width          int32
	Height         int32
	Stride         int32
	Format         int32
	Bits           unsafe.Pointer
	Reserved       [6]uint32
	ref3db2646c    *C.ANativeWindow_Buffer
	allocs3db2646c interface{}
}

// Rect as declared in android/rect.h:35
type Rect struct {
	Left           int32
	Top            int32
	Right          int32
	Bottom         int32
	ref9511c547    *C.ARect
	allocs9511c547 interface{}
}

// ObbInfo as declared in android/obb.h:28
type ObbInfo C.AObbInfo

// SensorVector as declared in android/sensor.h:119
type SensorVector struct {
	Status         byte
	Reserved       [3]byte
	refdc35e822    *C.ASensorVector
	allocsdc35e822 interface{}
}

// MetaDataEvent as declared in android/sensor.h:124
type MetaDataEvent struct {
	What           int32
	Sensor         int32
	ref4f7ec3e5    *C.AMetaDataEvent
	allocs4f7ec3e5 interface{}
}

// UncalibratedEvent as declared in android/sensor.h:143
type UncalibratedEvent C.AUncalibratedEvent

// HeartRateEvent as declared in android/sensor.h:148
type HeartRateEvent struct {
	Bpm            float32
	Status         byte
	ref1342bcf5    *C.AHeartRateEvent
	allocs1342bcf5 interface{}
}

// SensorEvent as declared in android/sensor.h:181
type SensorEvent struct {
	Version        int32
	Sensor         int32
	Type           int32
	Reserved0      int32
	Timestamp      int64
	Flags          uint32
	Reserved1      [3]int32
	refb7a6c7dc    *C.ASensorEvent
	allocsb7a6c7dc interface{}
}

// SensorManager as declared in android/sensor.h:184
type SensorManager C.ASensorManager

// SensorEventQueue as declared in android/sensor.h:187
type SensorEventQueue C.ASensorEventQueue

// Sensor as declared in android/sensor.h:190
type Sensor C.ASensor

// SensorRef as declared in android/sensor.h:191
type SensorRef C.ASensor

// SensorList as declared in android/sensor.h:192
type SensorList C.ASensorRef

// StorageManager as declared in android/storage_manager.h:28
type StorageManager C.AStorageManager

// StorageManagerObbCallbackFunc type as declared in android/storage_manager.h:98
type StorageManagerObbCallbackFunc func(filename string, state int32, data unsafe.Pointer)

{'fraction_non_alphanumeric': 0.07518302984794444, 'fraction_numerical': 0.04242538013891496, 'mean_word_length': 3.7461024498886415, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '6134627', 'n_tokens_mistral': 3668, 'n_tokens_neox': 3413, 'n_words': 942}