original_string: protected function process_activity($data) {
          $data = (object)$data;
          $this->task->set_old_contextid($data->contextid); // Save old contextid in task
          $this->set_mapping('context', $data->contextid, $this->task->get_contextid()); // Set the mapping
          $this->task->set_old_activityid($data->id); // Save old activityid in task
      }
code: protected function process_activity($data) {
          $data = (object)$data;
          $this->task->set_old_contextid($data->contextid); // Save old contextid in task
          $this->set_mapping('context', $data->contextid, $this->task->get_contextid()); // Set the mapping
          $this->task->set_old_activityid($data->id); // Save old activityid in task
      }
code_tokens: protected function process_activity ( $ data ) { $ data = ( object ) $ data ; $ this -> task -> set_old_contextid ( $ data -> contextid ) ; // Save old contextid in task $ this -> set_mapping ( 'context' , $ data -> contextid , $ this -> task -> get_contextid ( ) ) ; // Set the mapping $ this -> task -> set_old_activityid ( $ data -> id ) ; // Save old activityid in task }
docstring: Process the activity path, informing the task about various ids, needed later
docstring_tokens: Process the activity path informing the task about various ids needed later