<commit_before><?php

namespace Klaviyo\Model;

/**
 * Simple model that represents a campaign.
 */
class CampaignModel extends BaseModel {

  protected $id;
  protected $name;
  protected $subject;
  protected $fromEmail;
  protected $fromName;
  protected $listId;
  protected $template;
  protected $status;
  protected $sentAt;
  protected $created;

  /**
   * {@inheritdoc}
   */
  public function __construct($configuration) {
    parent::__construct($configuration);

    $this->id = $configuration['id'];
    $this->name = $configuration['name'];
    $this->subject = $configuration['subject'];
    $this->fromEmail = $configuration['from_email'];
    $this->fromName = $configuration['from_name'];
    $this->listId = $configuration['list_id'];
    $this->template = ModelFactory::create($configuration['template']);
    $this->status = $configuration['status'];
    $this->sentAt = $configuration['sent_at'];
    $this->created = new \DateTime($configuration['created']);
  }<commit_msg>Dont create circular dependency<commit_after><?php

namespace Klaviyo\Model;

/**
 * Simple model that represents a campaign.
 */
class CampaignModel extends BaseModel {

  protected $id;
  protected $name;
  protected $subject;
  protected $fromEmail;
  protected $fromName;
  protected $listId;
  protected $template;
  protected $status;
  protected $sentAt;
  protected $created;

  /**
   * {@inheritdoc}
   */
  public function __construct($configuration) {
    parent::__construct($configuration);

    $this->id = $configuration['id'];
    $this->name = $configuration['name'];
    $this->subject = $configuration['subject'];
    $this->fromEmail = $configuration['from_email'];
    $this->fromName = $configuration['from_name'];
    $this->listId = $configuration['list_id'];
    $this->template = TemplateModel::create($configuration['template']);
    $this->status = $configuration['status'];
    $this->sentAt = $configuration['sent_at'];
    $this->created = new \DateTime($configuration['created']);
  }
{'fraction_non_alphanumeric': 0.1607940446650124, 'fraction_numerical': 0.0, 'mean_word_length': 4.631284916201118, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '5366971', 'n_tokens_mistral': 569, 'n_tokens_neox': 561, 'n_words': 121}