<commit_before>package fape.core.planning.search.strategies.plans.tsp;

import fape.core.planning.grounding.GAction;
import fape.core.planning.grounding.GStateVariable;
import fape.core.planning.planner.APlanner;
import fape.util.Counter;
import sun.java2d.xr.MutableInteger;

import static fape.core.planning.grounding.GAction.*;

import java.util.*;
import java.util.stream.Collectors;

public class CausalGraph {

    Map<GStateVariable, Map<GStateVariable, Integer>> outEdges = new HashMap<>();
    Map<GStateVariable, Map<GStateVariable, Integer>> inEdges = new HashMap<>();

    public Iterable<GStateVariable> getStateVariables() {
        return inEdges.keySet();
    }

    public void addEdge(GStateVariable from, GStateVariable to) {
        outEdges.putIfAbsent(from, new HashMap<>());
        inEdges.putIfAbsent(from, new HashMap<>());
        outEdges.putIfAbsent(to, new HashMap<>());
        inEdges.putIfAbsent(to, new HashMap<>());
<commit_msg>[planning] remove problematic unused import<commit_after>package fape.core.planning.search.strategies.plans.tsp;

import fape.core.planning.grounding.GAction;
import fape.core.planning.grounding.GStateVariable;
import fape.core.planning.planner.APlanner;
import fape.util.Counter;

import static fape.core.planning.grounding.GAction.*;

import java.util.*;
import java.util.stream.Collectors;

public class CausalGraph {

    Map<GStateVariable, Map<GStateVariable, Integer>> outEdges = new HashMap<>();
    Map<GStateVariable, Map<GStateVariable, Integer>> inEdges = new HashMap<>();

    public Iterable<GStateVariable> getStateVariables() {
        return inEdges.keySet();
    }

    public void addEdge(GStateVariable from, GStateVariable to) {
        outEdges.putIfAbsent(from, new HashMap<>());
        inEdges.putIfAbsent(from, new HashMap<>());
        outEdges.putIfAbsent(to, new HashMap<>());
        inEdges.putIfAbsent(to, new HashMap<>());

{'fraction_non_alphanumeric': 0.12610734757686295, 'fraction_numerical': 0.0005211047420531526, 'mean_word_length': 4.714285714285714, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '3960849', 'n_tokens_mistral': 620, 'n_tokens_neox': 608, 'n_words': 116}