<commit_before>import numpy

def OpticalDensityFwd(I):
    '''
    Transforms input RGB image "I" into optical density space for color deconvolution.
    *Inputs:
        I (rgbimage) - a floating-point RGB image with channel ranges 0-255.
    *Outputs:
        Out (rgbimage) - a floating-point image of corresponding optical 
                         density values.
    *Related functions:
        OpticalDensityInv, ColorDeconvolution, ColorConvolution
    '''
    
    return (-(255*numpy.log(I/255))/numpy.log(255));<commit_msg>OpticalDensityFwd - docstring to numpy style, good return var name, numpy as np<commit_after>import numpy as np


def OpticalDensityFwd(I):
    """Transforms input RGB image "I" into optical density space
    for color deconvolution.
    
    Parameters
    ----------
    I : array_like
        A floating-point RGB image with intensity ranges of [0, 255].

    Returns
    -------
    IOut : array_like
        A floating-point image of corresponding optical density values.


    See Also
    --------
    OpticalDensityInv, ColorDeconvolution, ColorConvolution
    """
    
    IOut = (-(255*np.log(I/255))/np.log(255))

    return IOut

{'fraction_non_alphanumeric': 0.10042553191489362, 'fraction_numerical': 0.022127659574468085, 'mean_word_length': 2.458823529411765, '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': '499944', 'n_tokens_mistral': 364, 'n_tokens_neox': 330, 'n_words': 106}