<commit_before>
public class Edge {

	/**
	 * How much of the produced units are lost in transmission.
	 */
	private double loss;
	
	/** 
	 * How many of the demanded units should we supply. 
	 * 
	 * For example, given three nodes
	 *   - A, B and C
	 * if A gets 75% of its demand from B and 25% from C we should
	 * give these two edges a distribution value of 0.75 and 0.25,
	 * respectively.
	 */
	private double distribution;
	
	/** 
	 * For every demanded unit, how many units do we need to produce. 
	 * 
	 * For example, given two nodes
	 *   - A and B
	 * where A gets all of its demand from B. Lets say A requires heating
	 * and B provides that but at 75% efficiency. Then, for some demand 'x',
	 * B needs to produce 'x / 0.75'. Where '0.75' is the 'efficiency'.
	 */
	private double efficiency;
	private Node   node;
	
	/** Construct an edge from the given parameters. */
	public Edge( double loss
			   , double distribution
			   , double efficiency
			   , Node node) 
	{
		this.loss         = loss;
		this.distribution = distribution;
		this.efficiency   = efficiency;
		this.node         = node;<commit_msg>Comments.<commit_after>
public class Edge {

	/**
	 * How much of the produced units are lost in transmission.
	 */
	private double loss;
	
	/** 
	 * How many of the demanded units should we supply. 
	 * 
	 * For example, given three nodes
	 *   - A, B and C
	 * if A gets 75% of its demand from B and 25% from C we should
	 * give these two edges a distribution value of 0.75 and 0.25,
	 * respectively.
	 */
	private double distribution;
	
	/** 
	 * For every demanded unit, how many units do we need to produce. 
	 * 
	 * For example, given two nodes
	 *   - A and B
	 * where A gets all of its demand from B. Lets say A requires heating
	 * and B provides that but at 75% efficiency. Then, for some demand 'x',
	 * B needs to produce 'x / 0.75'. Where '0.75' is the 'efficiency'.
	 */
	private double efficiency;
	
	/** Node on the other end of this edge. */
	private Node   node;
	
	/** Construct an edge from the given parameters. */
	public Edge( double loss
			   , double distribution
			   , double efficiency
			   , Node node) 
	{
		this.loss         = loss;
		this.distribution = distribution;
		this.efficiency   = efficiency;
		this.node         = node;
{'fraction_non_alphanumeric': 0.08587619877942458, 'fraction_numerical': 0.015693112467306015, 'mean_word_length': 2.425373134328358, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1028612', 'n_tokens_mistral': 751, 'n_tokens_neox': 624, 'n_words': 315}