original_string: public function addMetadata($idSite, $period, $name, $value)
      {
          $row = & $this->get($idSite, $period);
          $row[self::METADATA_CONTAINER_ROW_KEY][$name] = $value;
      }
code: public function addMetadata($idSite, $period, $name, $value)
      {
          $row = & $this->get($idSite, $period);
          $row[self::METADATA_CONTAINER_ROW_KEY][$name] = $value;
      }
code_tokens: public function addMetadata ( $ idSite , $ period , $ name , $ value ) { $ row = & $ this -> get ( $ idSite , $ period ) ; $ row [ self :: METADATA_CONTAINER_ROW_KEY ] [ $ name ] = $ value ; }
docstring: Adds a new metadata to the data for specific site & period. If there is no
  data for the given site ID & period, it is set to the default row.
  
  Note: Site ID and period range string are two special types of metadata. Since
  the data stored in this class is indexed by site & period, this metadata is not
  stored in individual data rows.
  
  @param int $idSite
  @param string $period eg, '2012-01-01,2012-01-31'
  @param string $name The metadata name.
  @param mixed $value The metadata name.
docstring_tokens: Adds a new metadata to the data for specific site & period . If there is no data for the given site ID & period it is set to the default row .