original_string: private function finalizeEpisode($episode) {
          $event = new EncodedEpisodeEvent($episode);
          $this->getContainer()->get('event_dispatcher')->dispatch(
              OktolabMediaEvent::ENCODED_EPISODE,
              $event
          );
  
          $this->oktolab_media->addFinalizeEpisodeJob(
              $episode->getUniqID(),
              false,
              true
          );
      }
code: private function finalizeEpisode($episode) {
          $event = new EncodedEpisodeEvent($episode);
          $this->getContainer()->get('event_dispatcher')->dispatch(
              OktolabMediaEvent::ENCODED_EPISODE,
              $event
          );
  
          $this->oktolab_media->addFinalizeEpisodeJob(
              $episode->getUniqID(),
              false,
              true
          );
      }
code_tokens: private function finalizeEpisode ( $ episode ) { $ event = new EncodedEpisodeEvent ( $ episode ) ; $ this -> getContainer ( ) -> get ( 'event_dispatcher' ) -> dispatch ( OktolabMediaEvent :: ENCODED_EPISODE , $ event ) ; $ this -> oktolab_media -> addFinalizeEpisodeJob ( $ episode -> getUniqID ( ) , false , true ) ; }
docstring: adds finalize job
  and dispatches encoded_episode event
docstring_tokens: adds finalize job and dispatches encoded_episode event