<commit_before>package com.commercetools.sunrise.myaccount.addressbook.changeaddress;

import com.commercetools.sunrise.myaccount.addressbook.AddressFormSettingsFactory;
import io.sphere.sdk.customers.Customer;
import play.data.Form;

import javax.inject.Inject;

public class ChangeAddressPageContentFactory {

    @Inject
    private AddressFormSettingsFactory addressFormSettingsFactory;

    public ChangeAddressPageContent create(final Form<?> form, final Customer customer) {
        final ChangeAddressPageContent content = new ChangeAddressPageContent();
        fillEditAddressForm(content, form);
        return content;
    }

    protected void fillEditAddressForm(final ChangeAddressPageContent content, final Form<?> form) {
        content.setEditAddressForm(form);
        content.setEditAddressFormSettings(addressFormSettingsFactory.create(form));
    }
}<commit_msg>adjust ChangeAddressPageContentFactory #416<commit_after>package com.commercetools.sunrise.myaccount.addressbook.changeaddress;

import com.commercetools.sunrise.myaccount.addressbook.AddressFormSettingsFactory;
import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.models.Base;
import play.data.Form;

import javax.inject.Inject;

public class ChangeAddressPageContentFactory extends Base {

    @Inject
    private AddressFormSettingsFactory addressFormSettingsFactory;

    public ChangeAddressPageContent create(final Form<?> form, final Customer customer) {
        return fillBean(new ChangeAddressPageContent(), form, customer);
    }

    protected <T extends ChangeAddressPageContent> T fillBean(final T content, final Form<?> form, final Customer customer) {
        fillEditAddressForm(content, form);
        return content;
    }

    protected void fillEditAddressForm(final ChangeAddressPageContent content, final Form<?> form) {
        content.setEditAddressForm(form);
        content.setEditAddressFormSettings(addressFormSettingsFactory.create(form));
    }
}
{'fraction_non_alphanumeric': 0.07707910750507099, 'fraction_numerical': 0.0015212981744421906, 'mean_word_length': 5.2239747634069404, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2377006', 'n_tokens_mistral': 507, 'n_tokens_neox': 502, 'n_words': 108}