<commit_before>r"""
===============================================================================
Submodule -- throat_surface_area
===============================================================================

"""
import scipy as _sp

def sphere(geometry,
             pore_diameter='pore.diameter',
             **kwargs):
    r"""
    Calculate internal surface area for a spherical pore
    """
    D = geometry[pore_diameter]
    value = 2*_sp.constants.pi*D
    return value

def cube(geometry,
           pore_diameter='pore.diameter',
           **kwargs):
    r"""
    Calculate internal surface area for a cubic pore
    """
    D = geometry[pore_diameter]
    value = 6*D**2
    return value
<commit_msg>Fix to the pore_surface_area model<commit_after>r"""
===============================================================================
Submodule -- throat_surface_area
===============================================================================

"""
import scipy as _sp

def sphere(geometry,
             pore_diameter='pore.diameter',
             **kwargs):
    r"""
    Calculate internal surface area for a spherical pore
    """
    R = geometry[pore_diameter]/2
    value = 4*_sp.constants.pi*R**2
    return value

def cube(geometry,
           pore_diameter='pore.diameter',
           **kwargs):
    r"""
    Calculate internal surface area for a cubic pore
    """
    D = geometry[pore_diameter]
    value = 6*D**2
    return value

{'fraction_non_alphanumeric': 0.3002735978112175, 'fraction_numerical': 0.005471956224350205, 'mean_word_length': 3.4877300613496933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3860185', 'n_tokens_mistral': 415, 'n_tokens_neox': 369, 'n_words': 94}