<commit_before>package org.pieTools.pieUtilities.beanService;


import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;


public class BeanService implements IBeanService, ApplicationContextAware {
    ApplicationContext context;

    public void setApplicationContext(ApplicationContext context) {
        this.context = context;
    }

    public <T> T getBean(Class<T> type) {
        return context.getBean(type);
    }

}<commit_msg>added string function tu getBeans<commit_after>package org.pieTools.pieUtilities.beanService;


import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;


public class BeanService implements IBeanService, ApplicationContextAware {
    ApplicationContext context;

    public void setApplicationContext(ApplicationContext context) {
        this.context = context;
    }

    public <T> T getBean(Class<T> type) {
        return context.getBean(type);
    }

    public Object getBean(String type) {
        return context.getBean(type);
    }

}
{'fraction_non_alphanumeric': 0.07636363636363637, 'fraction_numerical': 0.0, 'mean_word_length': 4.3707317073170735, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3637071', 'n_tokens_mistral': 290, 'n_tokens_neox': 279, 'n_words': 64}