<commit_before>package com.ofg.infrastructure.property;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.config.client.PropertySourceLocator;
import org.springframework.cloud.config.server.SpringApplicationEnvironmentRepository;
import org.springframework.core.env.CompositePropertySource;
import org.springframework.core.env.Environment;
import org.springframework.core.env.MapPropertySource;
import org.springframework.core.env.PropertySource;

import java.io.File;
import java.util.Map;

public class FileSystemLocator implements PropertySourceLocator {

	private static final Logger log = LoggerFactory.getLogger(FileSystemLocator.class);

	private final File propertiesFolder;
	private final String environment;
	private final String applicationName;
	private final String countryCode;

	public FileSystemLocator(File propertiesFolder, String environment, String applicationName, String countryCode) {
		this.propertiesFolder = propertiesFolder;
		this.environment = environment;
		this.applicationName = applicationName;
		this.countryCode = countryCode;
	}

	@Override
	public PropertySource<?> locate(Environment environment) {
		final SpringApplicationEnvironmentRepository springEnv = new SpringApplicationEnvironmentRepository();
		final String[] propertiesPath = getConfigFiles();
		log.debug("Loading configuration from {}", propertiesPath);
		springEnv.setSearchLocations(propertiesPath);
		final org.springframework.cloud.config.Environment loadedEnvs = springEnv.findOne(applicationName, "prod", null);

		CompositePropertySource composite = new CompositePropertySource(FileSystemLocator.class.getSimpleName());
		for (org.springframework.cloud.config.PropertySource source : loadedEnvs.getPropertySources()) {
			@SuppressWarnings("unchecked")
			Map<String, Object> map = decrypt((Map<String, Object>) source.getSource());
			composite.addPropertySource(new MapPropertySource(source.getName(), map));
		}
		return composite;
	}<commit_msg>Incorrectly logged array<commit_after>package com.ofg.infrastructure.property;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.config.client.PropertySourceLocator;
import org.springframework.cloud.config.server.SpringApplicationEnvironmentRepository;
import org.springframework.core.env.CompositePropertySource;
import org.springframework.core.env.Environment;
import org.springframework.core.env.MapPropertySource;
import org.springframework.core.env.PropertySource;

import java.io.File;
import java.util.Arrays;
import java.util.Map;

public class FileSystemLocator implements PropertySourceLocator {

	private static final Logger log = LoggerFactory.getLogger(FileSystemLocator.class);

	private final File propertiesFolder;
	private final String environment;
	private final String applicationName;
	private final String countryCode;

	public FileSystemLocator(File propertiesFolder, String environment, String applicationName, String countryCode) {
		this.propertiesFolder = propertiesFolder;
		this.environment = environment;
		this.applicationName = applicationName;
		this.countryCode = countryCode;
	}

	@Override
	public PropertySource<?> locate(Environment environment) {
		final SpringApplicationEnvironmentRepository springEnv = new SpringApplicationEnvironmentRepository();
		final String[] propertiesPath = getConfigFiles();
		log.debug("Loading configuration from {}", Arrays.toString(propertiesPath));
		springEnv.setSearchLocations(propertiesPath);
		final org.springframework.cloud.config.Environment loadedEnvs = springEnv.findOne(applicationName, "prod", null);

		CompositePropertySource composite = new CompositePropertySource(FileSystemLocator.class.getSimpleName());
		for (org.springframework.cloud.config.PropertySource source : loadedEnvs.getPropertySources()) {
			@SuppressWarnings("unchecked")
			Map<String, Object> map = decrypt((Map<String, Object>) source.getSource());
			composite.addPropertySource(new MapPropertySource(source.getName(), map));
		}
		return composite;
	}
{'fraction_non_alphanumeric': 0.08837324117501852, 'fraction_numerical': 0.0009874105159219946, 'mean_word_length': 7.235772357723577, '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': '3961976', 'n_tokens_mistral': 1050, 'n_tokens_neox': 1011, 'n_words': 226}