<commit_before>function app_badge(_args) {
	var win = Titanium.UI.createWindow({
		title:_args.title
	});
	
	var b1 = Titanium.UI.createButton({
		title:'Set App Badge',
		width:200,
		height:40,
		top:10
	});
	b1.addEventListener('click', function()
	{
		Titanium.UI.iPhone.appBadge = 20;
	});
	
	win.add(b1);
	
	var b2 = Titanium.UI.createButton({
		title:'Reset App Badge',
		width:200,
		height:40,
		top:60
	});
	b2.addEventListener('click', function()
	{
		Titanium.UI.iPhone.appBadge = null;
	});
	
	win.add(b2);
	
	return win;
};
<commit_msg>[TIMOB-17624] Fixing update app icon badge for iOS8<commit_after>function app_badge(_args) {
	var win = Titanium.UI.createWindow({
		title:_args.title
	});
	win.addEventListener('open', function()
	{
		Ti.App.iOS.registerForLocalNotifications({
			types: Ti.App.iOS.NOTIFICATION_TYPE_BADGE
		});
	});
	
	var b1 = Titanium.UI.createButton({
		title:'Set App Badge',
		width:200,
		height:40,
		top:10
	});
	b1.addEventListener('click', function()
	{
		Titanium.UI.iPhone.appBadge = 20;
	});
	
	win.add(b1);
	
	var b2 = Titanium.UI.createButton({
		title:'Reset App Badge',
		width:200,
		height:40,
		top:60
	});
	b2.addEventListener('click', function()
	{
		Titanium.UI.iPhone.appBadge = null;
	});
	
	win.add(b2);
	
	return win;
};

{'fraction_non_alphanumeric': 0.1652377240841777, 'fraction_numerical': 0.03897116134060795, 'mean_word_length': 3.900763358778626, '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': '1680438', 'n_tokens_mistral': 587, 'n_tokens_neox': 501, 'n_words': 84}