original_string: public function get_taskbasepath() {
          $basepath = $this->get_basepath();
  
          // Module blocks are under module dir
          if (!empty($this->moduleid)) {
              $basepath .= '/activities/' . $this->modulename . '_' . $this->moduleid .
                           '/blocks/' . $this->blockname . '_' . $this->blockid;
  
          // Course blocks are under course dir
          } else {
              $basepath .= '/course/blocks/' . $this->blockname . '_' . $this->blockid;
          }
          return $basepath;
      }
code: public function get_taskbasepath() {
          $basepath = $this->get_basepath();
  
          // Module blocks are under module dir
          if (!empty($this->moduleid)) {
              $basepath .= '/activities/' . $this->modulename . '_' . $this->moduleid .
                           '/blocks/' . $this->blockname . '_' . $this->blockid;
  
          // Course blocks are under course dir
          } else {
              $basepath .= '/course/blocks/' . $this->blockname . '_' . $this->blockid;
          }
          return $basepath;
      }
code_tokens: public function get_taskbasepath ( ) { $ basepath = $ this -> get_basepath ( ) ; // Module blocks are under module dir if ( ! empty ( $ this -> moduleid ) ) { $ basepath .= '/activities/' . $ this -> modulename . '_' . $ this -> moduleid . '/blocks/' . $ this -> blockname . '_' . $ this -> blockid ; // Course blocks are under course dir } else { $ basepath .= '/course/blocks/' . $ this -> blockname . '_' . $ this -> blockid ; } return $ basepath ; }
docstring: Block tasks have their own directory to write files
docstring_tokens: Block tasks have their own directory to write files