<commit_before><?php

/*
* This file is part of Spoon Library.
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the license
* file that was distributed with this source code.
*/

namespace Spoon\Template\Parser;
use Spoon\Template\TokenStream;
use Spoon\Template\Environment;

/**
 * Base class for all nodes. If you wish to write your own tags, your node parsing classes
 * need to extend this class.
 *
 * @author <NAME> <<EMAIL>>
 */
class Node
{
	/**
	 * @var Spoon\Template\Environment
	 */
	protected $environment;

	/**
	 * @var Spoon\Template\TokenStream
	 */
	protected $stream;

	/**
	 * @param Spoon\Template\TokenStream
	 * @param Spoon\Template\Environment
	 */
	public function __construct(TokenStream $stream, Environment $environment)
	{
		$this->stream = $stream;
		$this->environment = $environment;
	}
}<commit_msg>Node now fetches the starting line of the tag.<commit_after><?php

/*
* This file is part of Spoon Library.
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the license
* file that was distributed with this source code.
*/

namespace Spoon\Template\Parser;
use Spoon\Template\TokenStream;
use Spoon\Template\Environment;

/**
 * Base class for all nodes. If you wish to write your own tags, your node parsing classes
 * need to extend this class.
 *
 * @author <NAME> <<EMAIL>>
 */
class Node
{
	/**
	 * @var Spoon\Template\Environment
	 */
	protected $environment;

	/**
	 * Starting line of the node. Considering that nodes may be spread over multiple lines.
	 *
	 * @var int
	 */
	protected $line;

	/**
	 * @var Spoon\Template\TokenStream
	 */
	protected $stream;

	/**
	 * @param Spoon\Template\TokenStream
	 * @param Spoon\Template\Environment
	 */
	public function __construct(TokenStream $stream, Environment $environment)
	{
		$this->stream = $stream;
		$this->environment = $environment;
		$this->line = $stream->getCurrent()->getLine();
	}
}
{'fraction_non_alphanumeric': 0.12614445574771108, 'fraction_numerical': 0.0, 'mean_word_length': 3.7283653846153846, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 22, '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': '5473717', 'n_tokens_mistral': 612, 'n_tokens_neox': 582, 'n_words': 198}