original_string: public function col_category($expiredctx) {
          $context = context_helper::instance_by_id($expiredctx->get('contextid'));
          $category = api::get_effective_context_category($context);
  
          return s($category->get('name'));
      }
code: public function col_category($expiredctx) {
          $context = context_helper::instance_by_id($expiredctx->get('contextid'));
          $category = api::get_effective_context_category($context);
  
          return s($category->get('name'));
      }
code_tokens: public function col_category ( $ expiredctx ) { $ context = context_helper :: instance_by_id ( $ expiredctx -> get ( 'contextid' ) ) ; $ category = api :: get_effective_context_category ( $ context ) ; return s ( $ category -> get ( 'name' ) ) ; }
docstring: The category name column.
  
  @param stdClass $expiredctx The row data.
  @return mixed
  @throws coding_exception
  @throws dml_exception
docstring_tokens: The category name column .