original_string: public function getContentSize($contentsWithPlaceholders)
      {
          $placeholderSize = $this->map(function ($value, $key) use (&$contentsWithPlaceholders){
              $count = substr_count($contentsWithPlaceholders, $key);
  
              return strlen($key) * $count - strlen($value) * $count;
          })->sum();
  
          return strlen($contentsWithPlaceholders) - $placeholderSize;
      }
code: public function getContentSize($contentsWithPlaceholders)
      {
          $placeholderSize = $this->map(function ($value, $key) use (&$contentsWithPlaceholders){
              $count = substr_count($contentsWithPlaceholders, $key);
  
              return strlen($key) * $count - strlen($value) * $count;
          })->sum();
  
          return strlen($contentsWithPlaceholders) - $placeholderSize;
      }
code_tokens: public function getContentSize ( $ contentsWithPlaceholders ) { $ placeholderSize = $ this -> map ( function ( $ value , $ key ) use ( & $ contentsWithPlaceholders ) { $ count = substr_count ( $ contentsWithPlaceholders , $ key ) ; return strlen ( $ key ) * $ count - strlen ( $ value ) * $ count ; } ) -> sum ( ) ; return strlen ( $ contentsWithPlaceholders ) - $ placeholderSize ; }
docstring: Calculate the byte size of the placeholders.
  
  @param string $contentsWithPlaceholders
  @return int
docstring_tokens: Calculate the byte size of the placeholders .