original_string: protected function getClassFromPercent($percent)
      {
          $mapping = array(95, 70, 50, 30, 15, 5, 0);
          foreach ($mapping as $key => $value) {
              if ($percent >= $value) {
                  return $key;
              }
          }
          return 0;
      }
code: protected function getClassFromPercent($percent)
      {
          $mapping = array(95, 70, 50, 30, 15, 5, 0);
          foreach ($mapping as $key => $value) {
              if ($percent >= $value) {
                  return $key;
              }
          }
          return 0;
      }
code_tokens: protected function getClassFromPercent ( $ percent ) { $ mapping = array ( 95 , 70 , 50 , 30 , 15 , 5 , 0 ) ; foreach ( $ mapping as $ key => $ value ) { if ( $ percent >= $ value ) { return $ key ; } } return 0 ; }
docstring: Get the class range using a percentage
  
  @param $percent
  
  @return int class
docstring_tokens: Get the class range using a percentage