<commit_before>package edu.sdsc.scigraph.neo4j;

import static com.google.common.collect.Lists.newArrayList;
import static java.util.Collections.emptyList;

import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentMap;

import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Label;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Relationship;
import org.neo4j.graphdb.RelationshipType;
import org.neo4j.graphdb.Transaction;

import com.google.common.base.Optional;

public class GraphInterfaceTransactionImpl implements GraphInterface {

  private static Object graphLock = new Object();
  private final ConcurrentMap<String, Long> idMap;
  private final RelationshipMap relationshipMap;
  private final GraphDatabaseService graphDb;

  public GraphInterfaceTransactionImpl(GraphDatabaseService graphDb,
      ConcurrentMap<String, Long> idMap, RelationshipMap relationshipMap) {
    this.idMap = idMap;
    this.relationshipMap = relationshipMap;<commit_msg>Adds injection for transactional graph<commit_after>package edu.sdsc.scigraph.neo4j;

import static com.google.common.collect.Lists.newArrayList;
import static java.util.Collections.emptyList;

import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentMap;

import javax.inject.Inject;

import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Label;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Relationship;
import org.neo4j.graphdb.RelationshipType;
import org.neo4j.graphdb.Transaction;

import com.google.common.base.Optional;

public class GraphInterfaceTransactionImpl implements GraphInterface {

  private static Object graphLock = new Object();
  private final ConcurrentMap<String, Long> idMap;
  private final RelationshipMap relationshipMap;
  private final GraphDatabaseService graphDb;

  @Inject
  public GraphInterfaceTransactionImpl(GraphDatabaseService graphDb,
      ConcurrentMap<String, Long> idMap, RelationshipMap relationshipMap) {
    this.idMap = idMap;
    this.relationshipMap = relationshipMap;
{'fraction_non_alphanumeric': 0.08105646630236794, 'fraction_numerical': 0.006375227686703097, 'mean_word_length': 6.064308681672026, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1698815', 'n_tokens_mistral': 642, 'n_tokens_neox': 628, 'n_words': 142}