<commit_before><?php

namespace BrianReeve\AssetProxy;

//use BrianReeve\AssetProxy\Asset;

class AssetLoader
{
	protected $_basePath = '/';

	public function __construct($basePath = NULL)
	{
		if (!empty($basePath)) {
			$this->_basePath = $basePath;
		}
	}

	public function getAsset($path)
	{
		if (empty($this->_basePath) || strpos($path,'/') === 0) {
			$fullPath = $path;
		} else {
			$fullPath = $this->_basePath.$path;
		}
		return new Asset($fullPath);
	}


}<commit_msg>Fix base path for WIN so paths don't start with /<commit_after><?php

namespace BrianReeve\AssetProxy;

//use BrianReeve\AssetProxy\Asset;

class AssetLoader
{
	protected $_basePath = '/';

	public function __construct($basePath = NULL)
	{
		if (strtoupper(substr(PHP_OS, 0 , 3)) === 'WIN') {
			$this->_basePath = '';
		}

		if (!empty($basePath)) {
			$this->_basePath = $basePath;
		}
	}

	public function getAsset($path)
	{
		if (empty($this->_basePath) || strpos($path,'/') === 0) {
			$fullPath = $path;
		} else {
			$fullPath = $this->_basePath.$path;
		}
		return new Asset($fullPath);
	}


}
{'fraction_non_alphanumeric': 0.17744916820702403, 'fraction_numerical': 0.0036968576709796672, 'mean_word_length': 3.7709251101321586, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '5383650', 'n_tokens_mistral': 436, 'n_tokens_neox': 392, 'n_words': 80}