original_docstring: 
          Calculates a percentile value for a given list of values and a percentile.
  
          The implementation is based on http://onlinestatbook.com/2/introduction/percentiles.html
  
          :param sorted_values: A sorted list of raw values for which a percentile should be calculated.
          :param percentile: A percentile between [0, 100]
          :return: the corresponding percentile value.
          
docstring: Calculates a percentile value for a given list of values and a percentile.
docstring_tokens: Calculates a percentile value for a given list of values and a percentile .
code: def percentile_value(sorted_values, percentile):
          """
          Calculates a percentile value for a given list of values and a percentile.
  
          The implementation is based on http://onlinestatbook.com/2/introduction/percentiles.html
  
          :param sorted_values: A sorted list of raw values for which a percentile should be calculated.
          :param percentile: A percentile between [0, 100]
          :return: the corresponding percentile value.
          """
          rank = float(percentile) / 100.0 * (len(sorted_values) - 1)
          if rank == int(rank):
              return sorted_values[int(rank)]
          else:
              lr = math.floor(rank)
              lr_next = math.ceil(rank)
              fr = rank - lr
              lower_score = sorted_values[lr]
              higher_score = sorted_values[lr_next]
              return lower_score + (higher_score - lower_score) * fr
code_tokens: def percentile_value ( sorted_values , percentile ) : rank = float ( percentile ) / 100.0 * ( len ( sorted_values ) - 1 ) if rank == int ( rank ) : return sorted_values [ int ( rank ) ] else : lr = math . floor ( rank ) lr_next = math . ceil ( rank ) fr = rank - lr lower_score = sorted_values [ lr ] higher_score = sorted_values [ lr_next ] return lower_score + ( higher_score - lower_score ) * fr
short_docstring: Calculates a percentile value for a given list of values and a percentile.
short_docstring_tokens: Calculates a percentile value for a given list of values and a percentile .
comment: """
          Calculates a percentile value for a given list of values and a percentile.
  
          The implementation is based on http://onlinestatbook.com/2/introduction/percentiles.html
  
          :param sorted_values: A sorted list of raw values for which a percentile should be calculated.
          :param percentile: A percentile between [0, 100]
          :return: the corresponding percentile value.
          """