<commit_before>//  Copyright (c) 2015 <NAME>. All rights reserved.

public enum Node: Equatable, Printable {
	/// A parameter of a graph.
	case Parameter(Symbol)

	/// A return of a graph.
	case Return(Symbol)

	/// An arbitrary graph node referencing a value bound in the environment.
	case Symbolic(Symbol)


	public var symbol: Symbol {
		switch self {
		case let Parameter(symbol):
			return symbol
		case let Return(symbol):
			return symbol
		case let Symbolic(symbol):
			return symbol
		}
	}


	public var isReturn: Bool {
		switch self {
		case Return:
			return true
		default:
			return false
		}
	}


	public func inputs(identifier: Identifier, _ graph: Graph<Node>) -> [(Symbol, (Identifier, Node)?)] {
		let inputNodes = Dictionary(lazy(graph.edges)
			.filter { $0.destination.identifier == identifier }
			.map { ($0.destination.inputIndex, ($0.source.identifier, graph.nodes[$0.source.identifier]!)) })
		return Array(lazy(enumerate(symbol.type.parameters))
			.map { (Symbol($0, $1), inputNodes[$0]) })
	}


	// MARK: Printable

	public var description: String {
		switch self {
		case let Parameter(symbol):
			return ".Parameter(\(symbol))"
		case let Return(symbol):
			return ".Return(\(symbol))"
		case let Symbolic(symbol):
			return ".Symbolic(\(symbol))"
		}
	}
}


public func == (left: Node, right: Node) -> Bool {
	switch (left, right) {<commit_msg>Remove the inputs method.<commit_after>//  Copyright (c) 2015 <NAME>. All rights reserved.

public enum Node: Equatable, Printable {
	/// A parameter of a graph.
	case Parameter(Symbol)

	/// A return of a graph.
	case Return(Symbol)

	/// An arbitrary graph node referencing a value bound in the environment.
	case Symbolic(Symbol)


	public var symbol: Symbol {
		switch self {
		case let Parameter(symbol):
			return symbol
		case let Return(symbol):
			return symbol
		case let Symbolic(symbol):
			return symbol
		}
	}


	public var isReturn: Bool {
		switch self {
		case Return:
			return true
		default:
			return false
		}
	}


	// MARK: Printable

	public var description: String {
		switch self {
		case let Parameter(symbol):
			return ".Parameter(\(symbol))"
		case let Return(symbol):
			return ".Return(\(symbol))"
		case let Symbolic(symbol):
			return ".Symbolic(\(symbol))"
		}
	}
}


public func == (left: Node, right: Node) -> Bool {
	switch (left, right) {
{'fraction_non_alphanumeric': 0.12611464968152866, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 3.3710575139146566, 'pattern_counts': {'":': 0, '<': 6, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1425995', 'n_tokens_mistral': 824, 'n_tokens_neox': 725, 'n_words': 242}