<commit_before>#==============================================================================
# Joules
#
# @description: Module for providing pressure equations
# @author: <NAME>
# @version: 0.0.1 16/05/2015
#==============================================================================

# Pressure module (pressure.rb)

# pressure: (union Int Float) (union Int Float) -> Float
# Conditions:
#     PRE: force >= 0
#          force is in newtons.
#          area > 0
#          area is in meters cubed.
#     POST: Returns a Float.
#           returned value >= 0
#           returned value is in pascals.
# Purpose: Consumes two numbers, force and area. Returns the calculated
# pressure.
def pressure(force, area)
  return force / area.to_f<commit_msg>Update pressure.rb<commit_after>#==============================================================================
# Joules
#
# @description: Module for providing pressure equations
# @author: <NAME>
# @version: 0.0.1 16/05/2015
#==============================================================================

# Pressure module (pressure.rb)

require 'constants'

# pressure: (union Int Float) (union Int Float) -> Float
# Conditions:
#     PRE: force >= 0
#          force is in newtons.
#          area > 0
#          area is in meters cubed.
#     POST: Returns a Float.
#           returned value >= 0
#           returned value is in pascals.
# Purpose: Consumes two numbers, force and area. Returns the calculated
# pressure.
def pressure(force, area)
  return force / area.to_f
{'fraction_non_alphanumeric': 0.2897135416666667, 'fraction_numerical': 0.018229166666666668, 'mean_word_length': 3.6295180722891565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5647662', 'n_tokens_mistral': 426, 'n_tokens_neox': 382, 'n_words': 138}