<commit_before><commit_msg>initial<commit_after>package com.javacook.proxifier.usage;

import com.javacook.proxifier.testdata.Dog;
import com.javacook.proxifier.testdata.Hund;


/**
 * To move the safty check completely to a test class the mapping function has
 * to be converted into the form: <code>fun(sourceBean, targetBean)</code>.
 * You find the result in the class <code>MapperRefactored</code>.
 * @see MapperRefactored
 */
public class TypicalMapper {

    /**
     * Maps a bean of class <code>Hund</code> to a bean of class <code>Dog</code>
     * @param hund source object
     * @return {@link Dog}
     */
    public static Dog mapHundToDog(final Hund hund) {
        final Dog dog = new Dog();
        dog.setRace(hund.getRasse());
        dog.setWeight(hund.getGewicht());
        dog.setNice(hund.isLieb());
        return dog;
    }

}
{'fraction_non_alphanumeric': 0.11826697892271663, 'fraction_numerical': 0.0, 'mean_word_length': 3.253731343283582, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1086592', 'n_tokens_mistral': 282, 'n_tokens_neox': 276, 'n_words': 76}