original_string: public static function get_course_pattern($course) {
          $color = self::coursecolor($course->id);
          $pattern = new \core_geopattern();
          $pattern->setColor($color);
          $pattern->patternbyid($course->id);
          return $pattern->datauri();
      }
code: public static function get_course_pattern($course) {
          $color = self::coursecolor($course->id);
          $pattern = new \core_geopattern();
          $pattern->setColor($color);
          $pattern->patternbyid($course->id);
          return $pattern->datauri();
      }
code_tokens: public static function get_course_pattern ( $ course ) { $ color = self :: coursecolor ( $ course -> id ) ; $ pattern = new \ core_geopattern ( ) ; $ pattern -> setColor ( $ color ) ; $ pattern -> patternbyid ( $ course -> id ) ; return $ pattern -> datauri ( ) ; }
docstring: Get the course pattern datauri.
  
  The datauri is an encoded svg that can be passed as a url.
  @param object $course
  @return string datauri
docstring_tokens: Get the course pattern datauri .