<commit_before>package de.avalax.fitbuddy.app;

import com.google.inject.AbstractModule;
import de.avalax.fitbuddy.core.workout.Workout;
import de.avalax.fitbuddy.datalayer.DataLayer;
import de.avalax.fitbuddy.datalayer.DummyDataLayer;
import de.avalax.fitbuddy.datalayer.PersistenceWorkout;

public class WorkoutModule extends AbstractModule {
    @Override
    protected void configure() {
        bind(DataLayer.class).to(DummyDataLayer.class);
        try {
            bind(Workout.class).toConstructor(PersistenceWorkout.class.getConstructor(DataLayer.class));
        } catch (NoSuchMethodException e) {
            addError(e);
        }<commit_msg>readded singleton for workout and datalayer<commit_after>package de.avalax.fitbuddy.app;

import com.google.inject.AbstractModule;
import com.google.inject.Singleton;
import de.avalax.fitbuddy.core.workout.Workout;
import de.avalax.fitbuddy.datalayer.DataLayer;
import de.avalax.fitbuddy.datalayer.DummyDataLayer;
import de.avalax.fitbuddy.datalayer.PersistenceWorkout;

public class WorkoutModule extends AbstractModule {
    @Override
    protected void configure() {
        bind(DataLayer.class).to(DummyDataLayer.class).in(Singleton.class);
        try {
            bind(Workout.class).toConstructor(PersistenceWorkout.class.getConstructor(DataLayer.class)).in(Singleton.class);
        } catch (NoSuchMethodException e) {
            addError(e);
        }
{'fraction_non_alphanumeric': 0.10140845070422536, 'fraction_numerical': 0.0, 'mean_word_length': 4.167272727272727, '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': '4041691', 'n_tokens_mistral': 439, 'n_tokens_neox': 436, 'n_words': 63}