original_string: public function get_all_samples(\core_analytics\analysable $course) {
  
          $context = \context_course::instance($course->get_id());
  
          // Just 1 sample per analysable.
          return array(
              array($course->get_id() => $course->get_id()),
              array($course->get_id() => array('course' => $course->get_course_data(), 'context' => $context))
          );
      }
code: public function get_all_samples(\core_analytics\analysable $course) {
  
          $context = \context_course::instance($course->get_id());
  
          // Just 1 sample per analysable.
          return array(
              array($course->get_id() => $course->get_id()),
              array($course->get_id() => array('course' => $course->get_course_data(), 'context' => $context))
          );
      }
code_tokens: public function get_all_samples ( \ core_analytics \ analysable $ course ) { $ context = \ context_course :: instance ( $ course -> get_id ( ) ) ; // Just 1 sample per analysable. return array ( array ( $ course -> get_id ( ) => $ course -> get_id ( ) ) , array ( $ course -> get_id ( ) => array ( 'course' => $ course -> get_course_data ( ) , 'context' => $ context ) ) ) ; }
docstring: This will return just one course as we analyse 'by_course'.
  
  @param \core_analytics\analysable $course
  @return array
docstring_tokens: This will return just one course as we analyse by_course .