<commit_before>import org.w3c.dom.Window
import kotlin.browser.window

/**
 * Support for Cordova.
 * @author <NAME> (<EMAIL>)
 * Date: 5/27/16
 * Time: 4:04 PM
 */

@native val Window.cordova: Cordova?

@native interface Cordova { val plugins: CordovaPlugins? }

@native interface CordovaPlugins { val Keyboard: CordovaKeyboard? }

@native interface CordovaKeyboard {
	fun hideKeyboardAccessoryBar(hide: Boolean)

	fun disableScroll(disable: Boolean)
}

@native val Window.StatusBar: StatusBar?

@native interface StatusBar { fun styleDefault() }

fun initializeForCordova() {
		// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
	 // for form inputs)
	val keyboard = window.cordova?.plugins?.Keyboard
	if (keyboard != null) {
		keyboard.hideKeyboardAccessoryBar(true);
		keyboard.disableScroll(true);

	 }
	val statusBar = window.StatusBar
	if (statusBar != null) {
	     // org.apache.cordova.statusbar required
		 statusBar.styleDefault();
	 }<commit_msg>Fix compilation errors for cordova.kt.<commit_after>import org.w3c.dom.Window
import kotlin.browser.window
import kotlin.properties.Delegates

/**
 * Support for Cordova.
 * @author <NAME> (<EMAIL>)
 * Date: 5/27/16
 * Time: 4:04 PM
 */

@native val Window.cordova: Cordova? by lazy { null }

@native interface Cordova { val plugins: CordovaPlugins? }

@native interface CordovaPlugins { val Keyboard: CordovaKeyboard? }

@native interface CordovaKeyboard {
	fun hideKeyboardAccessoryBar(hide: Boolean)

	fun disableScroll(disable: Boolean)
}

@native val Window.StatusBar: StatusBar? by lazy { null }

@native interface StatusBar { fun styleDefault() }

fun initializeForCordova() {
		// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
	 // for form inputs)
	val keyboard = window.cordova?.plugins?.Keyboard
	if (keyboard != null) {
		keyboard.hideKeyboardAccessoryBar(true);
		keyboard.disableScroll(true);

	 }
	val statusBar = window.StatusBar
	if (statusBar != null) {
	     // org.apache.cordova.statusbar required
		 statusBar.styleDefault();
	 }
{'fraction_non_alphanumeric': 0.10666666666666667, 'fraction_numerical': 0.008571428571428572, 'mean_word_length': 4.457142857142857, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1671576', 'n_tokens_mistral': 673, 'n_tokens_neox': 642, 'n_words': 186}