<commit_before>var args = arguments[0] || {};
var u = require("utility");
var F = require("form");
u.initStyleProperty($.container, args);


exports.init = function(options) {
	// initialize value
	exports.setValue(options.value || $._items[0][1]);
}

exports.release = function() {
	
}

exports.getValue = function() {
	return $._value;
}

exports.setValue = function(val) {
	$._value = val;
	// update display
	updateDisplayAndValue();
}

function updateDisplayAndValue(text) {
	if (!text) {
		text = $._value;
	} else {
		$._value = text;
	}
	$.valueLabel.text = $._value;
}

function openPickerWindow() {
	var win = Ti.UI.createWindow({// open as heavy-weight window
		windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_ADJUST_RESIZE | Ti.UI.Android.SOFT_INPUT_STATE_ALWAYS_VISIBLE,
		backgroundColor: "white",
	});
	
	var container = Ti.UI.createView();
	win.add(container);
	
	var textArea = Ti.UI.createTextArea({
		top: 10,
		bottom: 10,
		left: 12,
		right: 12,
	});
	container.add(textArea);
	
	// TODO: close button
	
	win.addEventListener("close", function(e) {
		updateDisplayAndValue(textArea.value);
	});
	
	Alloy.Globals.openWindow(win);
}<commit_msg>TC-7 #comment picker window열때 이전 에디트값 반영<commit_after>var args = arguments[0] || {};
var u = require("utility");
var F = require("form");
u.initStyleProperty($.container, args);


exports.init = function(options) {
	// initialize value
	exports.setValue(options.value || $._items[0][1]);
	
	// TODO: hint text
}

exports.release = function() {
	
}

exports.getValue = function() {
	return $._value;
}

exports.setValue = function(val) {
	$._value = val;
	// update display
	updateDisplayAndValue();
}

function updateDisplayAndValue(text) {
	if (!text) {
		text = $._value;
	} else {
		$._value = text;
	}
	$.valueLabel.text = $._value;
}

function openPickerWindow() {
	var win = Ti.UI.createWindow({// open as heavy-weight window
		windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_ADJUST_RESIZE | Ti.UI.Android.SOFT_INPUT_STATE_ALWAYS_VISIBLE,
		backgroundColor: "white",
	});
	
	var container = Ti.UI.createView();
	win.add(container);
	
	var textArea = Ti.UI.createTextArea({
		top: 10,
		bottom: 10,
		left: 12,
		right: 12,
		value: $._value,
	});
	container.add(textArea);
	
	// TODO: close button
	
	win.addEventListener("close", function(e) {
		updateDisplayAndValue(textArea.value);
	});
	
	Alloy.Globals.openWindow(win);
}
{'fraction_non_alphanumeric': 0.1609531772575251, 'fraction_numerical': 0.009615384615384616, 'mean_word_length': 4.202173913043478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2629579', 'n_tokens_mistral': 909, 'n_tokens_neox': 855, 'n_words': 167}