<commit_before><?php use_helper('Date') ?>
<?php echo '<?xml version="1.0" encoding="'.sfConfig::get('sf_charset', 'UTF-8').'" ?>' ?>
<entry xmlns="http://www.w3.org/2005/Atom"
       xmlns:sword="http://purl.org/net/sword/">

  <title><?php echo render_title($informationObject, false) ?></title>

  <id><?php echo $informationObject->id.' / ' . $informationObject->createdAt->format('c') ?></id>

  <updated><?php echo $informationObject->createdAt->format('c') ?></updated>

  <author>
    <name><?php echo $user->user ?></name>
  </author>

  <generator uri="<?php echo url_for('@homepage', true) ?>" version="<?php echo qubitConfiguration::VERSION ?>">Qubit <?php echo qubitConfiguration::VERSION ?></generator>

  <content type="text/html" src="<?php echo url_for(array($informationObject, 'module' => 'informationobject'), true) ?>" /><commit_msg>Handle case where createdAt returns unexepected data type<commit_after><?php use_helper('Date') ?>
<?php echo '<?xml version="1.0" encoding="'.sfConfig::get('sf_charset', 'UTF-8').'" ?>' ?>
<entry xmlns="http://www.w3.org/2005/Atom"
       xmlns:sword="http://purl.org/net/sword/">

  <title><?php echo render_title($informationObject, false) ?></title>

  <?php
    // For unknown reasons the type of the createdAt property is not always a DateTime but a string
    // This is a workaround to retrieve the same result if the property returns a string
    $creationDate = $informationObject->createdAt instanceof DateTime ? $informationObject->createdAt->format('c') : format_date($informationObject->createdAt, 's')
  ?>

  <id><?php echo $informationObject->id.' / ' . $creationDate ?></id>

  <updated><?php echo $creationDate ?></updated>
  <author>
    <name><?php echo $user->user ?></name>
  </author>

  <generator uri="<?php echo url_for('@homepage', true) ?>" version="<?php echo qubitConfiguration::VERSION ?>">Qubit <?php echo qubitConfiguration::VERSION ?></generator>

  <content type="text/html" src="<?php echo url_for(array($informationObject, 'module' => 'informationobject'), true) ?>" />
{'fraction_non_alphanumeric': 0.20087336244541484, 'fraction_numerical': 0.0077632217370208634, 'mean_word_length': 5.364197530864198, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 2, '>': 68, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '2564138', 'n_tokens_mistral': 637, 'n_tokens_neox': 629, 'n_words': 151}