original_string: public function get_sha1() {
  
          $identifier = 'submission:'.$this->submission->id.'@'.$this->submission->timemodified;
  
          if ($this->assessments) {
              $ids = array_keys($this->assessments);
              sort($ids);
              $identifier .= '/assessments:'.implode(',', $ids);
          }
  
          if ($this->multifiles) {
              $identifier .= '/files:'.$this->get_sha1_file();
          }
  
          return sha1($identifier);
      }
code: public function get_sha1() {
  
          $identifier = 'submission:'.$this->submission->id.'@'.$this->submission->timemodified;
  
          if ($this->assessments) {
              $ids = array_keys($this->assessments);
              sort($ids);
              $identifier .= '/assessments:'.implode(',', $ids);
          }
  
          if ($this->multifiles) {
              $identifier .= '/files:'.$this->get_sha1_file();
          }
  
          return sha1($identifier);
      }
code_tokens: public function get_sha1 ( ) { $ identifier = 'submission:' . $ this -> submission -> id . '@' . $ this -> submission -> timemodified ; if ( $ this -> assessments ) { $ ids = array_keys ( $ this -> assessments ) ; sort ( $ ids ) ; $ identifier .= '/assessments:' . implode ( ',' , $ ids ) ; } if ( $ this -> multifiles ) { $ identifier .= '/files:' . $ this -> get_sha1_file ( ) ; } return sha1 ( $ identifier ) ; }
docstring: Return the SHA1 hash of the exported content.
  
  @return string
docstring_tokens: Return the SHA1 hash of the exported content .