<commit_before>
from bayeslite.shell.hook import bayesdb_shell_cmd
import math


@bayesdb_shell_cmd('register_bql_math_functions')
def register_bql_math(self, args):
    '''Adds basic math functions to BQL'''
    self._bdb.sqlite3.create_function('exp', 1, math.exp)
    self._bdb.sqlite3.create_function('sqrt', 1, math.sqrt)
    self._bdb.sqlite3.create_function('pow', 2, pow)
    self._bdb.sqlite3.create_function('log', 1, math.log)
<commit_msg>BUGFIX: Added extra line to register register_bql_math doctring. Having a docstring w/ only one line causes .help to crash.<commit_after>
from bayeslite.shell.hook import bayesdb_shell_cmd
import math


@bayesdb_shell_cmd('register_bql_math_functions')
def register_bql_math(self, args):
    '''Adds basic math functions to BQL
    (No arguments)
    '''
    self._bdb.sqlite3.create_function('exp', 1, math.exp)
    self._bdb.sqlite3.create_function('sqrt', 1, math.sqrt)
    self._bdb.sqlite3.create_function('pow', 2, pow)
    self._bdb.sqlite3.create_function('log', 1, math.log)

{'fraction_non_alphanumeric': 0.12088974854932302, 'fraction_numerical': 0.015473887814313346, 'mean_word_length': 5.088235294117647, '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': '2329367', 'n_tokens_mistral': 383, 'n_tokens_neox': 367, 'n_words': 78}