<commit_before>package com.worth.ifs.finance.resource;

import com.worth.ifs.application.domain.Application;
import com.worth.ifs.finance.domain.ApplicationFinance;
import com.worth.ifs.finance.resource.cost.CostItem;
import com.worth.ifs.finance.resource.cost.Materials;
import com.worth.ifs.user.domain.Organisation;
import com.worth.ifs.user.domain.OrganisationSize;
import org.junit.Before;
import org.junit.Test;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import static com.worth.ifs.application.builder.ApplicationBuilder.newApplication;
import static com.worth.ifs.finance.builder.ApplicationFinanceBuilder.newApplicationFinance;
import static com.worth.ifs.user.builder.OrganisationBuilder.newOrganisation;
import static org.junit.Assert.assertEquals;

public class ApplicationFinanceResourceTest {
    Long id;
    private Long organisation;
    private Long application;
    private OrganisationSize organisationSize;
    private List<CostItem> costItems;
    private ApplicationFinanceResource applicationFinanceResource;

    @Before
    public void setUp() throws Exception {
        id = 0L;
        organisation = 1L;<commit_msg>Fixed failing test from dev branch<commit_after>package com.worth.ifs.finance.resource;

import com.worth.ifs.application.domain.Application;
import com.worth.ifs.finance.domain.ApplicationFinance;
import com.worth.ifs.finance.resource.cost.CostItem;
import com.worth.ifs.finance.resource.cost.Materials;
import com.worth.ifs.user.domain.Organisation;
import com.worth.ifs.user.domain.OrganisationSize;
import org.junit.Before;
import org.junit.Test;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import static com.worth.ifs.BuilderAmendFunctions.clearUniqueIds;
import static com.worth.ifs.application.builder.ApplicationBuilder.newApplication;
import static com.worth.ifs.finance.builder.ApplicationFinanceBuilder.newApplicationFinance;
import static com.worth.ifs.user.builder.OrganisationBuilder.newOrganisation;
import static org.junit.Assert.assertEquals;

public class ApplicationFinanceResourceTest {
    Long id;
    private Long organisation;
    private Long application;
    private OrganisationSize organisationSize;
    private List<CostItem> costItems;
    private ApplicationFinanceResource applicationFinanceResource;

    @Before
    public void setUp() throws Exception {
        clearUniqueIds();
        id = 0L;
        organisation = 1L;
{'fraction_non_alphanumeric': 0.08632513110125051, 'fraction_numerical': 0.0016135538523598225, 'mean_word_length': 5.2, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5715903', 'n_tokens_mistral': 684, 'n_tokens_neox': 674, 'n_words': 140}