<commit_before>package de.hhu.stups.plues.data

import de.hhu.stups.plues.data.entities.AbstractUnit
import de.hhu.stups.plues.data.entities.Course
import de.hhu.stups.plues.data.entities.Group
import de.hhu.stups.plues.data.entities.Info
import de.hhu.stups.plues.data.entities.Level
import de.hhu.stups.plues.data.entities.Module
import de.hhu.stups.plues.data.entities.ModuleAbstractUnitSemester
import de.hhu.stups.plues.data.entities.ModuleAbstractUnitType
import de.hhu.stups.plues.data.entities.Session
import de.hhu.stups.plues.data.entities.Unit

// move to interface (?)
abstract class AbstractStore {
    abstract void init();
    abstract void init(String dbpath);

    abstract void close();

    abstract List<Info> getInfo();
    abstract List<AbstractUnit> getAbstractUnits();
    abstract List<Course> getCourses();
    abstract Course getCourseByKey(String key);
    abstract List<Group> getGroups();
    abstract List<Level> getLevels();
    abstract List<Module> getModules();
    abstract List<ModuleAbstractUnitSemester> getModuleAbstractUnitSemester();
    abstract List<ModuleAbstractUnitType> getModuleAbstractUnitType()
    abstract List<Session> getSessions();
    abstract List<Unit> getUnits();
    abstract AbstractUnit getAbstractUnitByID(Integer key)
    abstract Group getGroupByID(Integer integer)

    abstract Module getModuleByID(Integer mid)
}
<commit_msg>Added getInfoByKey to abstract store<commit_after>package de.hhu.stups.plues.data

import de.hhu.stups.plues.data.entities.AbstractUnit
import de.hhu.stups.plues.data.entities.Course
import de.hhu.stups.plues.data.entities.Group
import de.hhu.stups.plues.data.entities.Info
import de.hhu.stups.plues.data.entities.Level
import de.hhu.stups.plues.data.entities.Module
import de.hhu.stups.plues.data.entities.ModuleAbstractUnitSemester
import de.hhu.stups.plues.data.entities.ModuleAbstractUnitType
import de.hhu.stups.plues.data.entities.Session
import de.hhu.stups.plues.data.entities.Unit

// move to interface (?)
abstract class AbstractStore {
    abstract void init();
    abstract void init(String dbpath);

    abstract void close();

    abstract List<Info> getInfo();
    abstract List<AbstractUnit> getAbstractUnits();
    abstract List<Course> getCourses();
    abstract Course getCourseByKey(String key);
    abstract List<Group> getGroups();
    abstract List<Level> getLevels();
    abstract List<Module> getModules();
    abstract List<ModuleAbstractUnitSemester> getModuleAbstractUnitSemester();
    abstract List<ModuleAbstractUnitType> getModuleAbstractUnitType()
    abstract List<Session> getSessions();
    abstract List<Unit> getUnits();
    abstract AbstractUnit getAbstractUnitByID(Integer key)
    abstract Group getGroupByID(Integer integer)
    abstract String getInfoByKey(String key)

    abstract Module getModuleByID(Integer mid)
}

{'fraction_non_alphanumeric': 0.09943977591036414, 'fraction_numerical': 0.0, 'mean_word_length': 5.117773019271948, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2890419', 'n_tokens_mistral': 870, 'n_tokens_neox': 881, 'n_words': 176}