original_string: private function createNewCacheAssetForResolution($episode, $resolution) {
          $asset = $this->getContainer()->get('bprs.asset')->createAsset();
          $asset->setFilekey(
              sprintf('%s.%s',$asset->getFilekey(), $resolution['container'])
          );
          $asset->setAdapter(
              $this->getContainer()->getParameter(
                  'oktolab_media.encoding_filesystem'
              )
          );
          $asset->setName($episode->getVideo()->getName());
          $asset->setMimetype($resolution['mimetype']);
  
          return $asset;
      }
code: private function createNewCacheAssetForResolution($episode, $resolution) {
          $asset = $this->getContainer()->get('bprs.asset')->createAsset();
          $asset->setFilekey(
              sprintf('%s.%s',$asset->getFilekey(), $resolution['container'])
          );
          $asset->setAdapter(
              $this->getContainer()->getParameter(
                  'oktolab_media.encoding_filesystem'
              )
          );
          $asset->setName($episode->getVideo()->getName());
          $asset->setMimetype($resolution['mimetype']);
  
          return $asset;
      }
code_tokens: private function createNewCacheAssetForResolution ( $ episode , $ resolution ) { $ asset = $ this -> getContainer ( ) -> get ( 'bprs.asset' ) -> createAsset ( ) ; $ asset -> setFilekey ( sprintf ( '%s.%s' , $ asset -> getFilekey ( ) , $ resolution [ 'container' ] ) ) ; $ asset -> setAdapter ( $ this -> getContainer ( ) -> getParameter ( 'oktolab_media.encoding_filesystem' ) ) ; $ asset -> setName ( $ episode -> getVideo ( ) -> getName ( ) ) ; $ asset -> setMimetype ( $ resolution [ 'mimetype' ] ) ; return $ asset ; }
docstring: returns an empty asset to be used in an encoding situation.
  the filekey, mimetype and adapter are already set for ffmpeg
docstring_tokens: returns an empty asset to be used in an encoding situation . the filekey mimetype and adapter are already set for ffmpeg