<commit_before>package au.gov.dva.dvasopapi.tests;


import au.gov.dva.sopapi.interfaces.RuleConfigurationRepository;
import au.gov.dva.sopapi.sopsupport.ruleconfiguration.CsvRuleConfigurationRepository;
import com.google.common.io.Resources;
import org.junit.Ignore;
import org.junit.Test;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class RulesConfigurationTests {

    @Test
    public void loadRulesConfig() throws IOException {
        byte[] rhCsv = Files.readAllBytes(Paths.get("../../dva-sop-api-rule-config/rh.csv"));
        byte[] boPCsv = Files.readAllBytes(Paths.get("../../dva-sop-api-rule-config/bop.csv"));
        RuleConfigurationRepository underTest = new CsvRuleConfigurationRepository(rhCsv, boPCsv);
        assert(underTest.getRHItems().size() == 32 && underTest.getBoPItems().size() == 176);
        underTest.getRHItems().forEach(rhRuleConfigurationItem -> System.out.println(rhRuleConfigurationItem));
        underTest.getBoPItems().forEach(rhRuleConfigurationItem -> System.out.println(rhRuleConfigurationItem));
    }
}<commit_msg>ignoring test that can't run on travis<commit_after>package au.gov.dva.dvasopapi.tests;


import au.gov.dva.sopapi.interfaces.RuleConfigurationRepository;
import au.gov.dva.sopapi.sopsupport.ruleconfiguration.CsvRuleConfigurationRepository;
import com.google.common.io.Resources;
import org.junit.Ignore;
import org.junit.Test;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class RulesConfigurationTests {

    @Test
    @Ignore
    public void loadRulesConfig() throws IOException {
        byte[] rhCsv = Files.readAllBytes(Paths.get("../../dva-sop-api-rule-config/rh.csv"));
        byte[] boPCsv = Files.readAllBytes(Paths.get("../../dva-sop-api-rule-config/bop.csv"));
        RuleConfigurationRepository underTest = new CsvRuleConfigurationRepository(rhCsv, boPCsv);
        assert(underTest.getRHItems().size() == 32 && underTest.getBoPItems().size() == 176);
        underTest.getRHItems().forEach(rhRuleConfigurationItem -> System.out.println(rhRuleConfigurationItem));
        underTest.getBoPItems().forEach(rhRuleConfigurationItem -> System.out.println(rhRuleConfigurationItem));
    }
}
{'fraction_non_alphanumeric': 0.1342572542226072, 'fraction_numerical': 0.0043308791684712, 'mean_word_length': 4.606796116504855, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5045840', 'n_tokens_mistral': 719, 'n_tokens_neox': 700, 'n_words': 103}