<commit_before>// Copyright (C) <NAME> 2012 <EMAIL>
package GCParser;

import YaoGC.*;
import java.util.*;
import java.math.BigInteger;
import GCParser.Operation.CircuitDescriptionException;

public abstract class Variable implements Comparable<Variable> {
  private String id;
  private int debugLineNum;
  private int party;
  private Map<Computed_Variable, Integer> parents;
  private boolean feedsLocally = true;
  protected boolean local_eval_visit;

  public Variable(String idarg, int partyarg ,int lineNumArg){
    party = partyarg;
    id = idarg;
    debugLineNum = lineNumArg;
    parents = new HashMap<Computed_Variable, Integer>();
  }
  public Variable( String idarg, int partyarg ){
    this( idarg, partyarg, -1 );
  }
  public int getParty(){
    return party;
  }
  public void setParty( int p ){
    party = p;
  }
  public String getId(){
    return id;
  }
  public int getLineNum(){
    return debugLineNum;
  }
  public int compareTo( Variable v ){
    return id.compareTo(v.id);
  }
  public int hashCode(){
    return id.hashCode();<commit_msg>Variable class has much better gc performance<commit_after>// Copyright (C) <NAME> 2012 <EMAIL>
package GCParser;

import YaoGC.*;
import java.util.*;
import java.math.BigInteger;
import GCParser.Operation.CircuitDescriptionException;

public abstract class Variable implements Comparable<Variable> {
  private String id;
  private int debugLineNum;
  private int party;
  private Map<Computed_Variable, Integer> parents;
  private boolean feedsLocally = true;
  protected boolean local_eval_visit;

  public Variable(String idarg, int partyarg ,int lineNumArg){
    party = partyarg;
    id = idarg;
    debugLineNum = lineNumArg;
    parents = new TreeMap<Computed_Variable, Integer>();
  }
  public Variable( String idarg, int partyarg ){
    this( idarg, partyarg, -1 );
  }
  public int getParty(){
    return party;
  }
  public void setParty( int p ){
    party = p;
  }
  public String getId(){
    return id;
  }
  public int getLineNum(){
    return debugLineNum;
  }
  public int compareTo( Variable v ){
    return id.compareTo(v.id);
  }
  public int hashCode(){
    return id.hashCode();
{'fraction_non_alphanumeric': 0.0967741935483871, 'fraction_numerical': 0.004608294930875576, 'mean_word_length': 3.813747228381375, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4197199', 'n_tokens_mistral': 679, 'n_tokens_neox': 656, 'n_words': 211}