<commit_before>package edu.wustl.cab2b.server.path.pathgen;

import java.sql.Connection;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import edu.wustl.common.util.logger.Logger;

/**
 * @see edu.wustl.cab2b.server.path.pathgen.GraphPathFinderInput
 * @author srinath_k
 */
public class GraphPathFinder {
    public static boolean KEEP_WRITING = false;

    public static boolean MEM_CACHE = true;

    private Graph inputGraph;

    private GraphPathFinderCache cache;

    private void wrapup() {
        getCache().cleanup();
    }

    private GraphPathFinderCache getCache() {
        return cache;
    }

    public Set<Path> getAllPaths(boolean[][] adjacencyMatrix,
                                 Map<Integer, Set<Integer>> replicationNodes,
                                 Connection conn) {
        Logger.out.info("Entered GraphPathFinder...");
        long startTime = System.currentTimeMillis();
        // init
        this.inputGraph = new Graph(adjacencyMatrix);
        if (MEM_CACHE) {<commit_msg>*** empty log message ***<commit_after>package edu.wustl.cab2b.server.path.pathgen;

import java.sql.Connection;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import edu.wustl.common.util.logger.Logger;

/**
 * @see edu.wustl.cab2b.server.path.pathgen.GraphPathFinderInput
 * @author srinath_k
 */
public class GraphPathFinder {
    public static boolean KEEP_WRITING = false;

    public static boolean MEM_CACHE = true;

    private Graph inputGraph;

    private GraphPathFinderCache cache;

    private void wrapup() {
        getCache().cleanup();
        this.inputGraph = null;
        this.cache = null;
    }

    private GraphPathFinderCache getCache() {
        return cache;
    }

    public Set<Path> getAllPaths(boolean[][] adjacencyMatrix,
                                 Map<Integer, Set<Integer>> replicationNodes,
                                 Connection conn) {
        Logger.out.info("Entered GraphPathFinder...");
        long startTime = System.currentTimeMillis();
        // init
        this.inputGraph = new Graph(adjacencyMatrix);
        if (MEM_CACHE) {
{'fraction_non_alphanumeric': 0.10367744793974303, 'fraction_numerical': 0.0017722640673460345, 'mean_word_length': 2.6715447154471543, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '141770', 'n_tokens_mistral': 674, 'n_tokens_neox': 663, 'n_words': 144}