<commit_before><?php namespace Rancherize\Blueprint\Infrastructure\Service\Events;

use Rancherize\Blueprint\Infrastructure\Service\Service;
use Symfony\Component\EventDispatcher\Event;

/**
 * Class ServiceWriterServicePreparedEvent
 * @package Rancherize\Blueprint\Infrastructure\Service\Events
 */
class ServiceWriterServicePreparedEvent extends Event {

	const NAME = 'service-writer.write';

	/**
	 * @var Service
	 */
	private $service;

	/**
	 * @var array
	 */
	private $dockerContent;

	/**
	 * @var
	 */
	private $rancherContent;

	/**
	 * @var array
	 */
	private $volumeDefinition;

	/**
	 * @var int
	 */
	private $fileVersion = 2;

	/**
	 * ServiceWriterServicePreparedEvent constructor.
	 * @param Service $service
	 * @param $rancherContent
	 */
	public function __construct( Service $service, &$rancherContent) {
		$this->service = $service;
		$this->rancherContent = $rancherContent;
	}

	/**
	 * @return Service
	 */
	public function getService() {
		return $this->service;
	}

	/**
	 * @return array
	 */
	public function getRancherContent() {
		return $this->rancherContent;
	}

	/**
	 * @param mixed $rancherContent
	 */
	public function setRancherContent( $rancherContent ) {
		$this->rancherContent = $rancherContent;
	}

	/**<commit_msg>added docker content and volume defs in constructor<commit_after><?php namespace Rancherize\Blueprint\Infrastructure\Service\Events;

use Rancherize\Blueprint\Infrastructure\Service\Service;
use Symfony\Component\EventDispatcher\Event;

/**
 * Class ServiceWriterServicePreparedEvent
 * @package Rancherize\Blueprint\Infrastructure\Service\Events
 */
class ServiceWriterServicePreparedEvent extends Event {

	const NAME = 'service-writer.write';

	/**
	 * @var Service
	 */
	private $service;

	/**
	 * @var array
	 */
	private $dockerContent;

	/**
	 * @var
	 */
	private $rancherContent;

	/**
	 * @var array
	 */
	private $volumeDefinition;

	/**
	 * @var int
	 */
	private $fileVersion = 2;
	/**

	/**
	 * ServiceWriterServicePreparedEvent constructor.
	 * @param Service $service
	 * @param $dockerContent
	 * @param $volumes
	 * @param $rancherContent
	 */
	public function __construct( Service $service, $dockerContent, $volumes, $rancherContent) {
		$this->service = $service;
		$this->rancherContent = $rancherContent;
		$this->dockerContent = $dockerContent;
		$this->volumeDefinition = $volumes;
	}

	/**
	 * @return Service
	 */
	public function getService() {
		return $this->service;
	}

	/**
	 * @return array
	 */
	public function getRancherContent() {
		return $this->rancherContent;
	}

	/**
	 * @param mixed $rancherContent
	 */
	public function setRancherContent( $rancherContent ) {
		$this->rancherContent = $rancherContent;
	}

	/**
{'fraction_non_alphanumeric': 0.1332351858667648, 'fraction_numerical': 0.000736105999263894, 'mean_word_length': 3.8972972972972975, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6544470', 'n_tokens_mistral': 934, 'n_tokens_neox': 845, 'n_words': 173}