<commit_before>import nslsii


nslsii.configure_base(get_ipython().user_ns, 'srx')
nslsii.configure_olog(get_ipython().user_ns)

#Optional: set any metadata that rarely changes.
RE.md['beamline_id'] = 'SRX'

# Custom Matplotlib configs:
import matplotlib as mpl
mpl.rcParams['axes.grid'] = True      #grid always on

# Uncomment the following lines to turn on verbose messages for
# debugging.
# import logging
# ophyd.logger.setLevel(logging.DEBUG)
# logging.basicConfig(level=logging.DEBUG)

from ophyd import PseudoSingle, PseudoPositioner, Signal

from IPython.terminal.prompts import Prompts, Token
class SRXPrompt(Prompts):
    def in_prompt_tokens(self, cli=None):
        return [(Token.Prompt, 'BlueSky@SRX ['),
                (Token.PromptNum, str(self.shell.execution_count)),
                (Token.Prompt, ']: ')]

ip = get_ipython()
ip.prompts = SRXPrompt(ip)<commit_msg>MNT: remove LiveTable from BEC config<commit_after>import nslsii


nslsii.configure_base(get_ipython().user_ns, 'srx')
nslsii.configure_olog(get_ipython().user_ns)

#Optional: set any metadata that rarely changes.
RE.md['beamline_id'] = 'SRX'

# Custom Matplotlib configs:
import matplotlib as mpl
mpl.rcParams['axes.grid'] = True      #grid always on

# Uncomment the following lines to turn on verbose messages for
# debugging.
# import logging
# ophyd.logger.setLevel(logging.DEBUG)
# logging.basicConfig(level=logging.DEBUG)

from ophyd import PseudoSingle, PseudoPositioner, Signal

from IPython.terminal.prompts import Prompts, Token
class SRXPrompt(Prompts):
    def in_prompt_tokens(self, cli=None):
        return [(Token.Prompt, 'BlueSky@SRX ['),
                (Token.PromptNum, str(self.shell.execution_count)),
                (Token.Prompt, ']: ')]

ip = get_ipython()
ip.prompts = SRXPrompt(ip)

# Comment it out to enable BEC table:
bec.disable_table()

{'fraction_non_alphanumeric': 0.11422413793103449, 'fraction_numerical': 0.0, 'mean_word_length': 4.559880239520958, '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': '346000', 'n_tokens_mistral': 662, 'n_tokens_neox': 624, 'n_words': 146}