<commit_before>#==============================================================================
# Joules
#
# @description: Module for providing density formulas
# @author: <NAME>
# @version: 0.0.2 16/05/2015
#==============================================================================

# Density module (density.rb)

# density: (union Int Float) (union Int Float) -> Float
# Conditions:
#     PRE: mass >= 0
#          mass is in kilograms.
#          volume > 0
#          volume is in meters cubed.
#     POST: Returns a Float.
#           returned value >= 0 
#           returned value is in kilograms per meter cubed.
# Purpose: Consumes two numbers, mass and volume. Returns the
# calculated density.
def density(mass, volume)
  return mass / volume.to_f
end
<commit_msg>Update density.rb<commit_after>#==============================================================================
# Joules
#
# @description: Module for providing density formulas
# @author: <NAME>
# @version: 0.0.3 16/05/2015
#==============================================================================

# Density module (density.rb)

# density: (union Int Float) (union Int Float) -> Float
# Conditions:
#     PRE: mass >= 0
#          mass is in kilograms.
#          volume > 0
#          volume is in meters cubed.
#     POST: Returns a Float.
#           returned value >= 0 
#           returned value is in kilograms per meter cubed.
# Purpose: Consumes two numbers, mass and volume. Returns the
# calculated density.
def density(mass, volume)
  return mass / volume.to_f
end

{'fraction_non_alphanumeric': 0.28361075544174136, 'fraction_numerical': 0.01792573623559539, 'mean_word_length': 3.5835777126099706, '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': '4187940', 'n_tokens_mistral': 438, 'n_tokens_neox': 387, 'n_words': 145}