original_string: public function get($idSite, $idNote)
      {
          $this->checkIdSiteIsLoaded($idSite);
          $this->checkNoteExists($idSite, $idNote);
  
          $annotation = $this->annotations[$idSite][$idNote];
          $this->augmentAnnotationData($idSite, $idNote, $annotation);
          return $annotation;
      }
code: public function get($idSite, $idNote)
      {
          $this->checkIdSiteIsLoaded($idSite);
          $this->checkNoteExists($idSite, $idNote);
  
          $annotation = $this->annotations[$idSite][$idNote];
          $this->augmentAnnotationData($idSite, $idNote, $annotation);
          return $annotation;
      }
code_tokens: public function get ( $ idSite , $ idNote ) { $ this -> checkIdSiteIsLoaded ( $ idSite ) ; $ this -> checkNoteExists ( $ idSite , $ idNote ) ; $ annotation = $ this -> annotations [ $ idSite ] [ $ idNote ] ; $ this -> augmentAnnotationData ( $ idSite , $ idNote , $ annotation ) ; return $ annotation ; }
docstring: Retrieves an annotation by ID.
  
  This function returns an array with the following elements:
  - idNote: The ID of the annotation.
  - date: The date of the annotation.
  - note: The text of the annotation.
  - starred: 1 or 0, whether the annotation is stared;
  - user: (unless current user is anonymous) The user that created the annotation.
  - canEditOrDelete: True if the user can edit/delete the annotation.
  
  @param int $idSite The ID of the site to get an annotation for.
  @param int $idNote The ID of the note to get.
  @throws Exception if $idSite is not an ID that was supplied upon construction.
  @throws Exception if $idNote does not refer to valid note for the site.
docstring_tokens: Retrieves an annotation by ID .