<commit_before>
function SettingsView() {
	var self = Ti.UI.createView({
		backgroundGradient:style.backgroundGradient
	});
	
	// ++++++++++++++TOP++++++++++++++
	var areaTop= Ti.UI.createView({
		top:0,
		left:0,
		height:"20%"
	});
	self.add(areaTop);
	
	if (Ti.Platform.getOsname() != "android"){
		var btnBack = Ti.UI.createButton({
			title:L('back'),
			top:25,
			left:5,
			color:'#ffffff',
			borderColor:'#ffffff',
			borderWidth:1,
			borderRadius:5
		});
		btnBack.addEventListener("click", function(e){
			self.fireEvent("shouldCloseView");
		});
		areaTop.add(btnBack);
	}
	
	var headline = Ti.UI.createLabel({
		text:L('settings'),
		center:{x:'50%',y:'60%'},
		font: {fontFamily: style.specialFontFamily, fontSize:"60sp"},
		color:'#ffffff'
	});
	areaTop.add(headline);
	
	// ++++++++++++++BOTTOM++++++++++++++
	var areaBottom = Ti.UI.createView({
		top:"25%",
		left:0,
		height:"50%",
		backgroundColor:style.whiteTransparentBackground
	});
	self.add(areaBottom);
	
	var infoLabel = Ti.UI.createLabel({
		text:L('showInfoIcon'),
		height:'auto',
		width:'auto',
		top:45,
		left:10,
		color:'#ffffff'
	});
	areaBottom.add(infoLabel);
	
	var infoSwitch = Ti.UI.createSwitch({
		value:Ti.App.Properties.getBool("showInfo"),
		top:40,
		right:30
	});
	areaBottom.add(infoSwitch);
	
	infoSwitch.addEventListener('change',function(e){
	  Ti.App.Properties.setBool("showInfo", e.value);
	});
	
	var btnImprint = Ti.UI.createView({
		bottom:20,
		center:{x:'50%'},
		right:5,
		width:Ti.UI.SIZE,
		height:30,
		borderColor:'#ffffff',
		borderWidth:1,
		borderRadius:5,
		color:'#ffffff',
		backgroundImage:'transparent',
		zIndex:10
	});
	areaBottom.add(btnImprint);
	
	var btnImprintTitle = Ti.UI.createLabel({
		text: L('imprint'),
		touchEnabled:false,
		color:'#ffffff',
		center:{x:'50%',y:'50%'}
	});
	btnImprint.add(btnImprintTitle);
	
	btnImprint.addEventListener("click", function(){
		var ImprintView = require(Ti.App.config.windowPath + 'ImprintWindow');
		var imprintView = new ImprintView();
		imprintView.open();
	});

	return self;
};

module.exports = SettingsView;<commit_msg>include<commit_after>
function SettingsView() {
	var self = Ti.UI.createView({
		backgroundGradient:style.backgroundGradient
	});
	
	// ++++++++++++++TOP++++++++++++++
	var areaTop= Ti.UI.createView({
		top:0,
		left:0,
		height:"20%"
	});
	self.add(areaTop);
	
	if (Ti.Platform.getOsname() != "android"){
		var btnBack = Ti.UI.createButton({
			title:L('back'),
			top:25,
			left:5,
			color:'#ffffff',
			borderColor:'#ffffff',
			borderWidth:1,
			borderRadius:5
		});
		btnBack.addEventListener("click", function(e){
			self.fireEvent("shouldCloseView");
		});
		areaTop.add(btnBack);
	}
	
	var headline = Ti.UI.createLabel({
		text:L('settings'),
		center:{x:'50%',y:'60%'},
		font: {fontFamily: style.specialFontFamily, fontSize:"60sp"},
		color:'#ffffff'
	});
	areaTop.add(headline);
	
	// ++++++++++++++BOTTOM++++++++++++++
	var areaBottom = Ti.UI.createView({
		top:"25%",
		left:0,
		height:"50%",
		backgroundColor:style.whiteTransparentBackground
	});
	self.add(areaBottom);
	
	var infoLabel = Ti.UI.createLabel({
		text:L('showInfoIcon'),
		height:'auto',
		width:'auto',
		top:45,
		left:10,
		color:'#ffffff'
	});
	areaBottom.add(infoLabel);
	
	var infoSwitch = Ti.UI.createSwitch({
		value:Ti.App.Properties.getBool("showInfo"),
		top:40,
		right:30
	});
	areaBottom.add(infoSwitch);
	
	infoSwitch.addEventListener('change',function(e){
	  Ti.App.Properties.setBool("showInfo", e.value);
	});
	
	var btnImprint = Ti.UI.createView({
		bottom:20,
		center:{x:'50%'},
		right:5,
		width:Ti.UI.SIZE,
		height:30,
		borderColor:'#ffffff',
		borderWidth:1,
		borderRadius:5,
		color:'#ffffff',
		backgroundImage:'transparent',
		zIndex:10
	});
	areaBottom.add(btnImprint);
	
	var btnImprintTitle = Ti.UI.createLabel({
		text: L('imprint'),
		touchEnabled:false,
		color:'#ffffff',
		center:{x:'50%',y:'50%'}
	});
	btnImprint.add(btnImprintTitle);
	
	btnImprint.addEventListener("click", function(){
		var ImprintView = require(Ti.App.config.windowPath + 'ImprintWindow');
		var imprintView = new ImprintView();
		imprintView.open();
	});
	
	Ti.include(Ti.Filesystem.getResourcesDirectory()+'/lib/getDeviceInformation.js');
	
	return self;
};

module.exports = SettingsView;
{'fraction_non_alphanumeric': 0.2042910447761194, 'fraction_numerical': 0.02005597014925373, 'mean_word_length': 4.827445652173913, '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': '651463', 'n_tokens_mistral': 1787, 'n_tokens_neox': 1540, 'n_words': 222}