<commit_before>package de.dhbw.humbuch.viewmodel;

import com.google.inject.Inject;

import de.davherrmann.mvvm.ActionHandler;
import de.davherrmann.mvvm.BasicState;
import de.davherrmann.mvvm.State;
import de.davherrmann.mvvm.annotations.HandlesAction;
import de.davherrmann.mvvm.annotations.ProvidesState;
import de.dhbw.humbuch.model.DAO;
import de.dhbw.humbuch.model.entity.Student;

public class LoginViewModel {

	public interface LoginSuccessful extends State<Boolean> {}

	public interface DoLogin extends ActionHandler {}
	
	@Inject
	private DAO<Student> daoStudent;

	@ProvidesState(LoginSuccessful.class)
	public final BasicState<String> loginSuccessful = new BasicState<>(String.class);

	@HandlesAction(DoLogin.class)
	public void doLogin(String username, String password) {
		System.out.println("login attempt...");<commit_msg>added another DAO injecting example<commit_after>package de.dhbw.humbuch.viewmodel;

import com.google.inject.Inject;

import de.davherrmann.mvvm.ActionHandler;
import de.davherrmann.mvvm.BasicState;
import de.davherrmann.mvvm.State;
import de.davherrmann.mvvm.annotations.HandlesAction;
import de.davherrmann.mvvm.annotations.ProvidesState;
import de.dhbw.humbuch.model.DAO;
import de.dhbw.humbuch.model.entity.Student;
import de.dhbw.humbuch.model.entity.TeachingMaterial;

public class LoginViewModel {

	public interface LoginSuccessful extends State<Boolean> {}

	public interface DoLogin extends ActionHandler {}
	
	@Inject
	private DAO<Student> daoStudent;
	
	@Inject
	private DAO<TeachingMaterial> daoTeachingMaterial;

	@ProvidesState(LoginSuccessful.class)
	public final BasicState<String> loginSuccessful = new BasicState<>(String.class);

	@HandlesAction(DoLogin.class)
	public void doLogin(String username, String password) {
		System.out.println("login attempt...");
{'fraction_non_alphanumeric': 0.09994508511806699, 'fraction_numerical': 0.0, 'mean_word_length': 6.346774193548387, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '3630902', 'n_tokens_mistral': 605, 'n_tokens_neox': 579, 'n_words': 111}