<commit_before>class Session extends Lanes.Models.Base
    api_path: 'user-session'
    props:
        id:         'integer'
        login:      'string'
        password:   '<PASSWORD>'
        access:     'object'
        user:       'object'


class Lanes.Access.LoginDialog extends Lanes.React.Component

    dataObjects: ->
        model: new Session

    login: ->
        @model.save().then =>
            Lanes.current_user.setLoginData(@model.user, @model.access) if @model.user

    warning: ->
        <BS.Alert bsStyle='warning'>
             <strong>{@model.lastServerMessage}</strong>
        </BS.Alert>
<commit_msg>Set login dialog to always be editable<commit_after>class Session extends Lanes.Models.Base
    api_path: 'user-session'
    props:
        id:         'integer'
        login:      'string'
        password:   '<PASSWORD>'
        access:     'object'
        user:       'object'


class Lanes.Access.LoginDialog extends Lanes.React.Component

    mixins: [
        Lanes.React.Mixins.RelayEditingState
    ]

    getDefaultProps: ->
        writable: true, editOnly: true

    dataObjects: ->
        model: new Session

    login: ->
        @model.save().then =>
            Lanes.current_user.setLoginData(@model.user, @model.access) if @model.user

    warning: ->
        <BS.Alert bsStyle='warning'>
             <strong>{@model.lastServerMessage}</strong>
        </BS.Alert>

{'fraction_non_alphanumeric': 0.11856033874382499, 'fraction_numerical': 0.0, 'mean_word_length': 2.023454157782516, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 22, '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': '2253781', 'n_tokens_mistral': 422, 'n_tokens_neox': 418, 'n_words': 85}