<commit_before><?php

/**
 * Class for handling concept property values.
 */
class ConceptPropertyValueLiteral
{
  /** the literal object for the property value */
  private $literal;
  /** property type */
  private $type;

  public function __construct($literal, $prop)
  {
    $this->literal = $literal;
    $this->type = $prop;
  }

  public function __toString()
  {
    if ($this->getLabel() === null)
      return "";
    return $this->getLabel();
  }

  public function getLang()
  {
    return $this->literal->getLang();
  }

  public function getExVocab()
  {
    return $this->exvocab;
  }

  public function getType()
  {
    return $this->type;
  }

  public function getLabel()
  {
    // if the property is a date object converting it to a human readable representation.
    if ($this->literal->getDataType() === 'xsd:date' || $this->literal->getDataType() === 'xsd:dateTime')
      return Punic\Calendar::formatDate($this->literal->getValue(), 'full');
    return $this->literal->getValue();
  }

  public function getUri()
  {
    return null;
  }

  public function getParent()
  {
    return $this->parentProperty;
  }
<commit_msg>use short format for timestamps. Fixes #191<commit_after><?php

/**
 * Class for handling concept property values.
 */
class ConceptPropertyValueLiteral
{
  /** the literal object for the property value */
  private $literal;
  /** property type */
  private $type;

  public function __construct($literal, $prop)
  {
    $this->literal = $literal;
    $this->type = $prop;
  }

  public function __toString()
  {
    if ($this->getLabel() === null)
      return "";
    return $this->getLabel();
  }

  public function getLang()
  {
    return $this->literal->getLang();
  }

  public function getExVocab()
  {
    return $this->exvocab;
  }

  public function getType()
  {
    return $this->type;
  }

  public function getLabel()
  {
    // if the property is a date object converting it to a human readable representation.
    if ($this->literal->getDataType() === 'xsd:date' || $this->literal->getDataType() === 'xsd:dateTime')
      return Punic\Calendar::formatDate($this->literal->getValue(), 'short');
    return $this->literal->getValue();
  }

  public function getUri()
  {
    return null;
  }

  public function getParent()
  {
    return $this->parentProperty;
  }

{'fraction_non_alphanumeric': 0.14757614757614756, 'fraction_numerical': 0.001287001287001287, 'mean_word_length': 3.1347517730496453, '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': '1770947', 'n_tokens_mistral': 726, 'n_tokens_neox': 703, 'n_words': 188}