<commit_before>from __future__ import absolute_import

from bokeh.io import save
from bokeh.plotting import figure
from bokeh.models import Title


def test_figure_title_should_accept_title_or_string():

    # check if it works with title object
    title = Title(text='Great Title')
    plot = figure(title=title)
    l1 = plot.line([1, 2, 3], [1, 2, 3])
    assert plot.title.text == 'Great Title'

    # check if it works with string
    plot = figure(title='Great Title 2')
    l1 = plot.line([1, 2, 3], [1, 2, 3])
    assert plot.title.text == 'Great Title 2'

<commit_msg>removed blank line at end of file<commit_after>from __future__ import absolute_import

from bokeh.io import save
from bokeh.plotting import figure
from bokeh.models import Title


def test_figure_title_should_accept_title_or_string():

    # check if it works with title object
    title = Title(text='Great Title')
    plot = figure(title=title)
    l1 = plot.line([1, 2, 3], [1, 2, 3])
    assert plot.title.text == 'Great Title'

    # check if it works with string
    plot = figure(title='Great Title 2')
    l1 = plot.line([1, 2, 3], [1, 2, 3])
    assert plot.title.text == 'Great Title 2'

{'fraction_non_alphanumeric': 0.11063829787234042, 'fraction_numerical': 0.02723404255319149, 'mean_word_length': 3.6666666666666665, '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': '1181702', 'n_tokens_mistral': 410, 'n_tokens_neox': 384, 'n_words': 132}