<commit_before>define [
    './core'
    'tpl!templates/views/search.html'
], (c, templates...) ->

    templates = c._.object ['search'], templates


    class Search extends c.Marionette.ItemView
        className: 'search'

        template: templates.search

        ui:
            input: 'input'

        onRender: ->
            if @options.placeholder
                @ui.input.attr('placeholder', @options.placeholder)


    { Search }<commit_msg>Focus newly rendered search inputs<commit_after>define [
    './core'
    'tpl!templates/views/search.html'
], (c, templates...) ->

    templates = c._.object ['search'], templates


    class Search extends c.Marionette.ItemView
        className: 'search'

        template: templates.search

        ui:
            input: 'input'

        onRender: ->
            if @options.placeholder
                @ui.input.attr('placeholder', @options.placeholder)
            c._.defer => @ui.input.focus()


    { Search }
{'fraction_non_alphanumeric': 0.13217213114754098, 'fraction_numerical': 0.0, 'mean_word_length': 1.9969325153374233, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2247258', 'n_tokens_mistral': 277, 'n_tokens_neox': 260, 'n_words': 58}