<commit_before>package com.ekino.lesaint.dozerannihilation.demo;

import java.com.ekino.lesaint.dozerannihilation.demo.StringToIntegerMapper;
import java.math.BigDecimal;
import com.google.common.base.Function;

import com.ekino.lesaint.dozerannihilation.annotation.FactoryMethod;
import com.ekino.lesaint.dozerannihilation.annotation.MapperFactory;

/**
 * StringToInteger -
 *
 * @author <NAME>
 */
@MapperFactory
public enum StringToInteger implements Function<String, Integer>, StringToIntegerMapper {
    BIG_DECIMAL(true),
    INTEGER(false);

    private final boolean bigDecimal;

    @FactoryMethod
    public static StringToInteger bigDecimal() {
        return BIG_DECIMAL;
    }

    @FactoryMethod
    public static StringToInteger integer() {
        return INTEGER;
    }

    @FactoryMethod
    public static StringToInteger instance(boolean bigDecimal) {
        if (bigDecimal) {
            return BIG_DECIMAL;
        }
        return INTEGER;
    }

    private StringToInteger(boolean bigDecimal) {
        this.bigDecimal = bigDecimal;
    }

    @Override<commit_msg>ajout d'un soupçon de javadoc<commit_after>package com.ekino.lesaint.dozerannihilation.demo;

import java.com.ekino.lesaint.dozerannihilation.demo.StringToIntegerMapper;
import java.math.BigDecimal;
import com.google.common.base.Function;

import com.ekino.lesaint.dozerannihilation.annotation.FactoryMethod;
import com.ekino.lesaint.dozerannihilation.annotation.MapperFactory;

/**
 * StringToInteger - Exemple de mapper nécessitant d'être instancié avec un paramètre (implémenté sous forme d'enum,
 * mais ce n'est pas obligatoire)
 *
 * @author <NAME>
 */
@MapperFactory
public enum StringToInteger implements Function<String, Integer>, StringToIntegerMapper {
    BIG_DECIMAL(true),
    INTEGER(false);

    private final boolean bigDecimal;

    @FactoryMethod
    public static StringToInteger bigDecimal() {
        return BIG_DECIMAL;
    }

    /**
     * Factory method
     */
    @FactoryMethod
    public static StringToInteger integer() {
        return INTEGER;
    }

    /**
     * Exemple de factory method à paramètre
     */
    @FactoryMethod
    public static StringToInteger instance(boolean bigDecimal) {
        if (bigDecimal) {
            return BIG_DECIMAL;
        }
        return INTEGER;
    }

    private StringToInteger(boolean bigDecimal) {
        this.bigDecimal = bigDecimal;
    }

    @Override
{'fraction_non_alphanumeric': 0.08323032550473836, 'fraction_numerical': 0.0, 'mean_word_length': 3.390596745027125, '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': '3753318', 'n_tokens_mistral': 731, 'n_tokens_neox': 705, 'n_words': 151}