<commit_before>package com.speedment.runtime.core.internal.manager;

import com.speedment.runtime.config.identifier.TableIdentifier;
import com.speedment.runtime.core.component.StreamSupplierComponent;
import com.speedment.runtime.core.exception.SpeedmentException;
import com.speedment.runtime.core.field.Field;
import com.speedment.runtime.core.manager.EntityCopier;
import com.speedment.runtime.core.manager.EntityCreator;
import com.speedment.runtime.core.manager.Manager;
import com.speedment.runtime.core.manager.Persister;
import com.speedment.runtime.core.manager.Remover;
import com.speedment.runtime.core.manager.Updater;
import com.speedment.runtime.core.stream.parallel.ParallelStrategy;
import java.util.stream.Stream;

/**
 *
 * @author <NAME>
 * @param <ENTITY> Entity type
 * 
 * @since 3.0.1
 */
public class ConfiguredManager<ENTITY> implements Manager<ENTITY> {

    private final StreamSupplierComponent streamSupplierComponent;
    private final Manager<ENTITY> manager;
    private final ParallelStrategy parallelStrategy;

    public ConfiguredManager(StreamSupplierComponent streamSupplierComponent, Manager<ENTITY> manager, ParallelStrategy parallelStrategy) {
        this.streamSupplierComponent = streamSupplierComponent;
        this.manager = manager;
        this.parallelStrategy = parallelStrategy;
    }

    @Override
    public ENTITY entityCreate() {
        return manager.entityCreate();
    }

    @Override
    public EntityCreator<ENTITY> entityCreator() {<commit_msg>Runtime: Add null checking<commit_after>package com.speedment.runtime.core.internal.manager;

import com.speedment.runtime.config.identifier.TableIdentifier;
import com.speedment.runtime.core.component.StreamSupplierComponent;
import com.speedment.runtime.core.exception.SpeedmentException;
import com.speedment.runtime.core.field.Field;
import com.speedment.runtime.core.manager.EntityCopier;
import com.speedment.runtime.core.manager.EntityCreator;
import com.speedment.runtime.core.manager.Manager;
import com.speedment.runtime.core.manager.Persister;
import com.speedment.runtime.core.manager.Remover;
import com.speedment.runtime.core.manager.Updater;
import com.speedment.runtime.core.stream.parallel.ParallelStrategy;
import static java.util.Objects.requireNonNull;
import java.util.stream.Stream;

/**
 *
 * @author <NAME>
 * @param <ENTITY> Entity type
 * 
 * @since 3.0.1
 */
public class ConfiguredManager<ENTITY> implements Manager<ENTITY> {

    private final StreamSupplierComponent streamSupplierComponent;
    private final Manager<ENTITY> manager;
    private final ParallelStrategy parallelStrategy;

    public ConfiguredManager(StreamSupplierComponent streamSupplierComponent, Manager<ENTITY> manager, ParallelStrategy parallelStrategy) {
        this.streamSupplierComponent = requireNonNull(streamSupplierComponent);
        this.manager = requireNonNull(manager);
        this.parallelStrategy = requireNonNull(parallelStrategy);
    }

    @Override
    public ENTITY entityCreate() {
        return manager.entityCreate();
    }

    @Override
    public EntityCreator<ENTITY> entityCreator() {
{'fraction_non_alphanumeric': 0.09364014062000639, 'fraction_numerical': 0.0019175455417066154, 'mean_word_length': 5.235059760956175, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5837457', 'n_tokens_mistral': 856, 'n_tokens_neox': 851, 'n_words': 154}