<commit_before><?php
namespace OCA\QuickNotes\Db;

use JsonSerializable;

use OCP\AppFramework\Db\Entity;

class Attach extends Entity implements JsonSerializable {
	protected $userId;
	protected $noteId;
	protected $fileId;
	protected $createdAt;
	protected $previewUrl;
	protected $redirectUrl;
	protected $deepLinkUrl;

	public function setPreviewUrl(string $previewUrl): void {
		$this->previewUrl = $previewUrl;
	}

	public function setRedirectUrl(string $redirectUrl): void {
		$this->redirectUrl = $redirectUrl;
	}

	public function setDeepLinkUrl(string $deepLinkUrl): void {
		$this->deepLinkUrl = $deepLinkUrl;
	}

	public function jsonSerialize() {
		return [
			'id'            => $this->id,
			'note_id'       => $this->noteId,
			'file_id'       => $this->fileId,
			'created_at'    => $this->createdAt,
			'preview_url'   => $this->previewUrl,
			'redirect_url'  => $this->redirectUrl,
			'deep_link_url' => $this->deepLinkUrl
		];
	}
}
<commit_msg>Explain the methods of the Attach entity<commit_after><?php
namespace OCA\QuickNotes\Db;

use JsonSerializable;

use OCP\AppFramework\Db\Entity;

/**
 * @method string getUserId()
 * @method void setUserId(string $userId)
 * @method int getNoteId()
 * @method void setNoteId(int $noteId)
 * @method int getFileId()
 * @method void setFileId(int $fileId)
 * @method int getCreatedAt()
 * @method void setCreatedAt(int $createdAt)
 */

class Attach extends Entity implements JsonSerializable {
	protected $userId;
	protected $noteId;
	protected $fileId;
	protected $createdAt;

	protected $previewUrl;
	protected $redirectUrl;
	protected $deepLinkUrl;

	public function setPreviewUrl(string $previewUrl): void {
		$this->previewUrl = $previewUrl;
	}

	public function setRedirectUrl(string $redirectUrl): void {
		$this->redirectUrl = $redirectUrl;
	}

	public function setDeepLinkUrl(string $deepLinkUrl): void {
		$this->deepLinkUrl = $deepLinkUrl;
	}

	public function jsonSerialize() {
		return [
			'id'            => $this->id,
			'note_id'       => $this->noteId,
			'file_id'       => $this->fileId,
			'created_at'    => $this->createdAt,
			'preview_url'   => $this->previewUrl,
			'redirect_url'  => $this->redirectUrl,
			'deep_link_url' => $this->deepLinkUrl
		];
	}
}

{'fraction_non_alphanumeric': 0.13146167557932265, 'fraction_numerical': 0.0, 'mean_word_length': 4.2453271028037385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '3346177', 'n_tokens_mistral': 788, 'n_tokens_neox': 749, 'n_words': 166}