<commit_before><?php
/**
 * Fuel
 *
 * Fuel is a fast, lightweight, community driven PHP5 framework.
 *
 * @package    Fuel
 * @version    1.0
 * @author     Fuel Development Team
 * @license    MIT License
 * @copyright  2010 - 2011 Fuel Development Team
 * @link       http://fuelphp.com
 */

namespace Less;

class Asset extends \Fuel\Core\Asset {

	public static function _init()
	{
		parent::_init();
		\Config::load('less', true);
	}
	
	public static function less($stylesheets = array(), $attr = array(), $group = NULL, $raw = false)
	{
		require_once PKGPATH.'less'.DS.'vendor'.DS.'lessphp'.DS.'lessc.inc.php';
		
		if(!is_array($stylesheets))
		{
			$stylesheets = array($stylesheets);
		}
		
		foreach($stylesheets as &$lessfile)
		{
			$plain_less		= APPPATH.\Config::get('less.path').$lessfile; // Name of source filename
			$compiled_css	= DOCROOT.reset(\Config::get('asset.paths')).\Config::get('asset.css_dir').pathinfo($lessfile, PATHINFO_FILENAME).'.css'; // Name of destination CSS compiled file
			
			if(!is_file($plain_less))
			{
				throw new \Fuel_Exception('Could not find lesscss source file: '.$plain_less);
			}
			
			\lessc::ccompile($plain_less, $compiled_css);
			
			// Change the name to load as CSS asset
			$lessfile = str_replace(pathinfo($lessfile, PATHINFO_EXTENSION), '', $lessfile).'css';
		}
		
		return static::css($stylesheets, $attr, $group, $raw);
	}
}<commit_msg>Fixed a extra tab on line 35<commit_after><?php
/**
 * Fuel
 *
 * Fuel is a fast, lightweight, community driven PHP5 framework.
 *
 * @package    Fuel
 * @version    1.0
 * @author     Fuel Development Team
 * @license    MIT License
 * @copyright  2010 - 2011 Fuel Development Team
 * @link       http://fuelphp.com
 */

namespace Less;

class Asset extends \Fuel\Core\Asset {

	public static function _init()
	{
		parent::_init();
		\Config::load('less', true);
	}
	
	public static function less($stylesheets = array(), $attr = array(), $group = NULL, $raw = false)
	{
		require_once PKGPATH.'less'.DS.'vendor'.DS.'lessphp'.DS.'lessc.inc.php';
		
		if(!is_array($stylesheets))
		{
			$stylesheets = array($stylesheets);
		}
		
		foreach($stylesheets as &$lessfile)
		{
			$plain_less	= APPPATH.\Config::get('less.path').$lessfile; // Name of source filename
			$compiled_css	= DOCROOT.reset(\Config::get('asset.paths')).\Config::get('asset.css_dir').pathinfo($lessfile, PATHINFO_FILENAME).'.css'; // Name of destination CSS compiled file
			
			if(!is_file($plain_less))
			{
				throw new \Fuel_Exception('Could not find lesscss source file: '.$plain_less);
			}
			
			\lessc::ccompile($plain_less, $compiled_css);
			
			// Change the name to load as CSS asset
			$lessfile = str_replace(pathinfo($lessfile, PATHINFO_EXTENSION), '', $lessfile).'css';
		}
		
		return static::css($stylesheets, $attr, $group, $raw);
	}
}
{'fraction_non_alphanumeric': 0.15808045165843332, 'fraction_numerical': 0.008468595624558928, 'mean_word_length': 3.6628289473684212, 'pattern_counts': {'":': 0, '<': 5, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3576703', 'n_tokens_mistral': 1074, 'n_tokens_neox': 920, 'n_words': 218}