original_string: private function calculateInterval($episode)
      {
          $max_image = floor(65500/$this->sprite_height);
          $calculated_interval = ceil($episode->getDuration()/$max_image);
          if ($calculated_interval > $this->sprite_interval) {
              $this->sprite_interval = $calculated_interval;
          }
      }
code: private function calculateInterval($episode)
      {
          $max_image = floor(65500/$this->sprite_height);
          $calculated_interval = ceil($episode->getDuration()/$max_image);
          if ($calculated_interval > $this->sprite_interval) {
              $this->sprite_interval = $calculated_interval;
          }
      }
code_tokens: private function calculateInterval ( $ episode ) { $ max_image = floor ( 65500 / $ this -> sprite_height ) ; $ calculated_interval = ceil ( $ episode -> getDuration ( ) / $ max_image ) ; if ( $ calculated_interval > $ this -> sprite_interval ) { $ this -> sprite_interval = $ calculated_interval ; } }
docstring: calculates the interval time for the length of an episode and considers jpeg dimension limit of 65500 px.
docstring_tokens: calculates the interval time for the length of an episode and considers jpeg dimension limit of 65500 px .