original_string: public function percentUsage()
      {
          $total = $this->systemTotal();
          $free  = $this->systemFree();
  
          $usage = [];
  
          foreach( $total as $slotId => $amount ) {
              $usage[ $slotId ] = intval( ceil( ( ( $amount - $free[ $slotId ] ) * 100 ) / $amount ) );
          }
  
          return $usage;
      }
code: public function percentUsage()
      {
          $total = $this->systemTotal();
          $free  = $this->systemFree();
  
          $usage = [];
  
          foreach( $total as $slotId => $amount ) {
              $usage[ $slotId ] = intval( ceil( ( ( $amount - $free[ $slotId ] ) * 100 ) / $amount ) );
          }
  
          return $usage;
      }
code_tokens: public function percentUsage ( ) { $ total = $ this -> systemTotal ( ) ; $ free = $ this -> systemFree ( ) ; $ usage = [ ] ; foreach ( $ total as $ slotId => $ amount ) { $ usage [ $ slotId ] = intval ( ceil ( ( ( $ amount - $ free [ $ slotId ] ) * 100 ) / $ amount ) ) ; } return $ usage ; }
docstring: Percentage of memory used per slot
  
  @return array Integer percentage of memory used
docstring_tokens: Percentage of memory used per slot