<commit_before>package org.gozer.services;

import org.gozer.model.Dependency;
import org.kevoree.resolver.MavenResolver;
import restx.factory.Component;

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

@Component
public class DependenciesService {

    private static final String MAVEN_CENTRAL = "http://repo1.maven.org/maven2";
    private static final String TARGET_REPOSITORY = "target/repository";

    public void resolve(Dependency dependency) {
        MavenResolver resolver = new MavenResolver();
        resolver.setBasePath(TARGET_REPOSITORY);
        File cachedFile = resolver.resolve(dependency.getMavenUrl(), Arrays.asList(MAVEN_CENTRAL));
    }

}<commit_msg>Clean up the DependenciesService to handle all Dependencies<commit_after>package org.gozer.services;

import org.gozer.model.Dependencies;
import org.gozer.model.Dependency;
import org.kevoree.resolver.MavenResolver;
import restx.factory.Component;

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

import static com.google.common.collect.Sets.newHashSet;

@Component
public class DependenciesService {

    private static final String MAVEN_CENTRAL = "http://repo1.maven.org/maven2";
    private static final String TARGET_REPOSITORY = "target/repository";
    private final MavenResolver resolver;

    public DependenciesService() {
        resolver = new MavenResolver();
        resolver.setBasePath(TARGET_REPOSITORY);
    }

    public File resolve(Dependency dependency) {
        return resolver.resolve(dependency.getMavenUrl(), Arrays.asList(MAVEN_CENTRAL));
    }

    public Set<File> resolve(Dependencies dependencies) {
        Set<File> files = newHashSet();

        for (Dependency dependency : dependencies.getCompile()) {
            files.add(resolve(dependency));
        }

        return files;
    }

}
{'fraction_non_alphanumeric': 0.09544706527701591, 'fraction_numerical': 0.0021941854086670325, 'mean_word_length': 4.109243697478991, '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': '414128', 'n_tokens_mistral': 557, 'n_tokens_neox': 532, 'n_words': 114}