<commit_before>package de.wwu.md2.framework.generator.android.wearable.controller

import de.wwu.md2.framework.generator.android.wearable.Settings
import de.wwu.md2.framework.mD2.App

class ApplicationGen {
	def static generateAppClass(String packageName, App app) '''
		// generated in de.wwu.md2.framework.generator.android.lollipop.controller.App.generateAppClass()
		package «packageName»;
		
		import android.app.Application;
		import android.content.Context;
		
		import «packageName»«Settings.MD2_APP_FILES_CONTROLLER_PACKAGE_NAME»;
		import «packageName».md2.model.sqlite.Md2SQLiteHelperImpl;
		import «Settings.MD2LIBRARY_PACKAGE»model.dataStore.interfaces.Md2SQLiteHelper;
		import «Settings.MD2LIBRARY_CONTENTPROVIDERREGISTRY_PACKAGE_NAME»;
		import «Settings.MD2LIBRARY_TASKQUEUE_PACKAGE_NAME»;
		import «Settings.MD2LIBRARY_VIEWMANAGER_PACKAGE_NAME»;
		import «Settings.MD2LIBRARY_WIDGETREGISTRY_PACKAGE_NAME»;
		import «Settings.MD2LIBRARY_PACKAGE»model.dataStore.implementation.VolleyQueue;
		//import «Settings.MD2LIBRARY_PACKAGE»model.contentProvider.implementation.Polling;
		

		public class «app.name.toFirstUpper» extends Application {
		
			private static Context context;
			private static Md2SQLiteHelper sqLiteHelper;
			
			private static Controller co;
			private static Md2ViewManager vm;
			private static Md2ContentProviderRegistry cpr;
			private static Md2TaskQueue tq;
			private static Md2WidgetRegistry wr;
		
		    @Override
		    public void onCreate() {
		        super.onCreate();
		        co = Controller.getInstance();
				vm = Md2ViewManager.getInstance();
				cpr = Md2ContentProviderRegistry.getInstance();
				tq = Md2TaskQueue.getInstance();
				wr = Md2WidgetRegistry.getInstance();
				context = getApplicationContext();
				VolleyQueue.getInstance(context);
		        Controller.getInstance().run();
«««		        Thread t = new Thread(new Polling(cpr));
«««		        t.start();<commit_msg>Polling wieder einkommentiert: Fehler war falsche Library<commit_after>package de.wwu.md2.framework.generator.android.wearable.controller

import de.wwu.md2.framework.generator.android.wearable.Settings
import de.wwu.md2.framework.mD2.App

class ApplicationGen {
	def static generateAppClass(String packageName, App app) '''
		// generated in de.wwu.md2.framework.generator.android.lollipop.controller.App.generateAppClass()
		package «packageName»;
		
		import android.app.Application;
		import android.content.Context;
		
		import «packageName»«Settings.MD2_APP_FILES_CONTROLLER_PACKAGE_NAME»;
		import «packageName».md2.model.sqlite.Md2SQLiteHelperImpl;
		import «Settings.MD2LIBRARY_PACKAGE»model.dataStore.interfaces.Md2SQLiteHelper;
		import «Settings.MD2LIBRARY_CONTENTPROVIDERREGISTRY_PACKAGE_NAME»;
		import «Settings.MD2LIBRARY_TASKQUEUE_PACKAGE_NAME»;
		import «Settings.MD2LIBRARY_VIEWMANAGER_PACKAGE_NAME»;
		import «Settings.MD2LIBRARY_WIDGETREGISTRY_PACKAGE_NAME»;
		import «Settings.MD2LIBRARY_PACKAGE»model.dataStore.implementation.VolleyQueue;
		import «Settings.MD2LIBRARY_PACKAGE»model.contentProvider.implementation.Polling;
		

		public class «app.name.toFirstUpper» extends Application {
		
			private static Context context;
			private static Md2SQLiteHelper sqLiteHelper;
			
			private static Controller co;
			private static Md2ViewManager vm;
			private static Md2ContentProviderRegistry cpr;
			private static Md2TaskQueue tq;
			private static Md2WidgetRegistry wr;
		
		    @Override
		    public void onCreate() {
		        super.onCreate();
		        co = Controller.getInstance();
				vm = Md2ViewManager.getInstance();
				cpr = Md2ContentProviderRegistry.getInstance();
				tq = Md2TaskQueue.getInstance();
				wr = Md2WidgetRegistry.getInstance();
				context = getApplicationContext();
				VolleyQueue.getInstance(context);
		        Controller.getInstance().run();
		        Thread t = new Thread(new Polling(cpr));
		        t.start();
{'fraction_non_alphanumeric': 0.08967807869187532, 'fraction_numerical': 0.012774655084312723, 'mean_word_length': 4.7658321060382915, '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': '4675434', 'n_tokens_mistral': 1376, 'n_tokens_neox': 1181, 'n_words': 267}