<commit_before><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  uses('img.util.ExifData');

  /**
   * Represents a single image within an album.
   *
   * @see      xp://de.thekid.dialog.Album
   * @purpose  Value object
   */
  class AlbumImage extends Object {
    public
      $name       = '',
      $exifData   = NULL;

    /**
     * Constructor
     *
     * @param   string name
     */
    public function __construct($name) {
      $this->name= $name;
    }

    /**
     * Set name
     *
     * @param   string name
     */
    public function setName($name) {
      $this->name= $name;
    }

    /**
     * Get name
     *
     * @return  string
     */
    public function getName() {
      return $this->name;
    }

    /**
     * Set exifData
     *
     * @param   &img.util.ExifData exifData
     */
    public function setExifData($exifData) {
      $this->exifData= $exifData;
    }

    /**
     * Get exifData
     *
     * @return  &img.util.ExifData
     */
    public function getExifData() {
      return $this->exifData;
    }
    
    /**
     * Retrieve a string representation
     *
     * @return  string
     */
    public function toString() {
      return sprintf(
        '%s(%s) <%s>',
        $this->getClassName(),
        $this->name,
        str_replace("\n", "\n  ", xp::stringOf($this->exifData))
      );
    }
  }
?><commit_msg>- Add iptc data as member and accessors<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  uses('img.util.ExifData', 'img.util.IptcData');

  /**
   * Represents a single image within an album.
   *
   * @see      xp://de.thekid.dialog.Album
   * @purpose  Value object
   */
  class AlbumImage extends Object {
    public
      $name       = '',
      $exifData   = NULL,
      $iptcData   = NULL;

    /**
     * Constructor
     *
     * @param   string name
     */
    public function __construct($name) {
      $this->name= $name;
    }

    /**
     * Set name
     *
     * @param   string name
     */
    public function setName($name) {
      $this->name= $name;
    }

    /**
     * Get name
     *
     * @return  string
     */
    public function getName() {
      return $this->name;
    }

    /**
     * Set exifData
     *
     * @param   img.util.ExifData exifData default NULL
     */
    public function setExifData(ExifData $exifData= NULL) {
      $this->exifData= $exifData;
    }

    /**
     * Get exifData
     *
     * @return  img.util.ExifData
     */
    public function getExifData() {
      return $this->exifData;
    }

    /**
     * Set IptcData
     *
     * @param   img.util.IptcData iptcData default NULL
     */
    public function setIptcData(IptcData $iptcData= NULL) {
      $this->iptcData= $iptcData;
    }

    /**
     * Get IptcData
     *
     * @return  img.util.IptcData
     */
    public function getIptcData() {
      return $this->iptcData;
    }
    
    /**
     * Retrieve a string representation
     *
     * @return  string
     */
    public function toString() {
      return sprintf(
        '%s(%s) <%s/%s>',
        $this->getClassName(),
        $this->name,
        str_replace("\n", "\n  ", xp::stringOf($this->exifData)),
        str_replace("\n", "\n  ", xp::stringOf($this->iptcData))
      );
    }
  }
?>
{'fraction_non_alphanumeric': 0.14398064125831822, 'fraction_numerical': 0.0, 'mean_word_length': 1.6498397435897436, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 26, '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': '7315230', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1120, 'n_words': 232}