<commit_before>import numpy as np

def get_l2fc(a, b):
    return np.log2(b + 1) - np.log2(a + 1)<commit_msg>Add l2fc docstring<commit_after>import numpy as np

def l2fc(a, b):
    """
    Calculate the log2 Fold Change between two arrays, floats, or integers
    a and b cannot be, nor contain, values less than 0

    :param (int/float/np.array) a: Value or array
    :param (int/float/np.array) b: Value or array
    :return: L2FC array or value
    :rtype: (int/float/np.array)
    """
    return np.log2(a + 1) - np.log2(b + 1)
{'fraction_non_alphanumeric': 0.12218045112781954, 'fraction_numerical': 0.02631578947368421, 'mean_word_length': 3.037878787878788, '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': '4600393', 'n_tokens_mistral': 207, 'n_tokens_neox': 195, 'n_words': 67}