<commit_before><?php
/**
 * framework_patch_0313
 * @package modules.framework
 */
class framework_patch_0313 extends patch_BasePatch
{
	/**
	 * Returns true if the patch modify code that is versionned.
	 * If your patch modify code that is versionned AND database structure or content,
	 * you must split it into two different patches.
	 * @return Boolean true if the patch modify code that is versionned.
	 */
	public function isCodePatch()
	{
		return false;
	}
	
	/**
	 * Entry point of the patch execution.
	 */
	public function execute()
	{
		$computedPath = f_util_FileUtils::buildWebeditPath(".change", "autoload", ".computedChangeComponents.ser");
		$computedDeps = unserialize(f_util_FileUtils::read($computedPath));
		$libSrc = $computedDeps["LOCAL_REPOSITORY"] . DIRECTORY_SEPARATOR . "change-lib" . DIRECTORY_SEPARATOR . "change-script" . DIRECTORY_SEPARATOR . "change-script-3.3";
		$libDest = f_util_FileUtils::buildWebeditPath("libs", "change-script");
		f_util_FileUtils::symlink($libSrc, $libDest, f_util_FileUtils::OVERRIDE);
		f_util_System::execChangeHTTPCommand("update-autoload", array($libDest));
	}
	
	/**<commit_msg>patch 0313: reset commands autoload<commit_after><?php
/**
 * framework_patch_0313
 * @package modules.framework
 */
class framework_patch_0313 extends patch_BasePatch
{
	/**
	 * Returns true if the patch modify code that is versionned.
	 * If your patch modify code that is versionned AND database structure or content,
	 * you must split it into two different patches.
	 * @return Boolean true if the patch modify code that is versionned.
	 */
	public function isCodePatch()
	{
		return false;
	}
	
	/**
	 * Entry point of the patch execution.
	 */
	public function execute()
	{
		$computedPath = f_util_FileUtils::buildWebeditPath(".change", "autoload", ".computedChangeComponents.ser");
		$computedDeps = unserialize(f_util_FileUtils::read($computedPath));
		$libSrc = $computedDeps["LOCAL_REPOSITORY"] . DIRECTORY_SEPARATOR . "change-lib" . DIRECTORY_SEPARATOR . "change-script" . DIRECTORY_SEPARATOR . "change-script-3.3";
		$libDest = f_util_FileUtils::buildWebeditPath("libs", "change-script");
		f_util_FileUtils::symlink($libSrc, $libDest, f_util_FileUtils::OVERRIDE);
		f_util_System::execChangeHTTPCommand("update-autoload", array($libDest));
		f_util_FileUtils::rmdir(f_util_FileUtils::buildWebeditPath(".change", "autoload"));
	}
	
	/**
{'fraction_non_alphanumeric': 0.12123745819397994, 'fraction_numerical': 0.010033444816053512, 'mean_word_length': 5.2643979057591626, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7449778', 'n_tokens_mistral': 804, 'n_tokens_neox': 752, 'n_words': 178}