<commit_before><?php

class Boom_Controller_Cms_Page_Urls_Save extends Controller_Cms_Page_Urls
{
	public function before()
	{
		parent::before();

		$this->_csrf_check();
	}

	public function action_add()
	{
		$location = Page_Url::sanitise($this->request->post('location'));

		$this->page_url->where('location', '=', $location)->find();

		if ($this->page_url->loaded() AND $this->page_url->page_id !== $this->page->id)
		{
			// Url is being used for a different page.
			// Notify that the url is already in use so that the JS can load a prompt to move the url.
			$this->response->body(json_encode(array('existing_url_id' => $this->page_url->id)));
		}
		elseif ( ! $this->page_url->loaded())
		{
			//  It's not an old URL, so create a new one.
			$this->page_url
				->values(array(<commit_msg>Fixed incorrect class name - Page_Url should have been Page_URL<commit_after><?php

class Boom_Controller_Cms_Page_Urls_Save extends Controller_Cms_Page_Urls
{
	public function before()
	{
		parent::before();

		$this->_csrf_check();
	}

	public function action_add()
	{
		$location = Page_URL::sanitise($this->request->post('location'));

		$this->page_url->where('location', '=', $location)->find();

		if ($this->page_url->loaded() AND $this->page_url->page_id !== $this->page->id)
		{
			// Url is being used for a different page.
			// Notify that the url is already in use so that the JS can load a prompt to move the url.
			$this->response->body(json_encode(array('existing_url_id' => $this->page_url->id)));
		}
		elseif ( ! $this->page_url->loaded())
		{
			//  It's not an old URL, so create a new one.
			$this->page_url
				->values(array(
{'fraction_non_alphanumeric': 0.1626360338573156, 'fraction_numerical': 0.0, 'mean_word_length': 4.061162079510703, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '4930760', 'n_tokens_mistral': 616, 'n_tokens_neox': 564, 'n_words': 139}