<commit_before>extends ../layout

block content
  .page-header
    h1= title
      small &nbsp;#{description}
  .row
    .col-md-4
      ul.nav.nav-pills.nav-stacked
        li(class=title==='Account'?'active':undefined)
          a(href="/settings/account") Account
            span.fa.fa-arrow-right.pull-right
        li(class=title==='Videos'?'active':undefined)
          a(href="/settings/videos") Videos
            span.fa.fa-arrow-right.pull-right
        li(class=title==='Password'?'active':undefined)
          a(href="/settings/password") Password
            span.fa.fa-arrow-right.pull-right
    .col-md-8
      if title === "Account"
        form.form-horizontal(role="form" method="post")
          input(type="hidden" name="_csrf" value=_csrf)
          .form-group
            label.col-sm-2.control-label Avatar
            .col-sm-10
              input.form-control(type="text" name="avatar" value="#{user.profile.avatar}")
              p.help-block Enter .png, .jpg, .gif image url here
              br
              img.avatar(src="#{user.profile.avatar || user.gravatar()}" alt="avatar profile")
          .form-group
            label.col-sm-2.control-label Username
            .col-sm-10
              input.form-control(type="text" name="username" value="#{user.username}" required)
              p.help-block http://localhost:3000/#{user.uid}
          .form-group
            label.col-sm-2.control-label Email
            .col-sm-10
              input.form-control(type="email" name="email" value="#{user.email}" required)
              p.help-block Email will not be publicly displayed.
          .form-group
            label.col-sm-2.control-label Location
            .col-sm-10
              input.form-control(type="text" name="location" value="#{user.profile.location}")
              p.help-block Where in the world are you?
          .form-group
            label.col-sm-2.control-label Website
            .col-sm-10
              input.form-control(type="text" name="website" value="#{user.profile.website}")
              p.help-block Have a homepage or a blog? Put the address here.
          .form-group
            label.col-sm-2.control-label Bio
            .col-sm-10
              textarea.form-control.bio(name="bio" rows="3") #{user.profile.bio}
              p.help-block About yourself in 160 characters or less.
                span.count.pull-right 160
          .form-group
            .col-sm-offset-2.col-sm-4
              button.btn.btn-primary(type="submit") Save Changes
        hr
        a(href="/settings/delete") Delete my account
        br
        br
      if title === 'Password'
        form(role="form" method="post")
          input(type="hidden" name="_csrf" value=_csrf)
          .form-group
            label New Password
            input.form-control(type="password" name="password" required)
          .form-group
            label Confirm Password
            input.form-control(type="password" name="<PASSWORD>Password" required)
          .form-group
            button.btn.btn-primary(type="submit") Save Changes
      if title === 'Videos'
        p The higher the video limit, the more videos you can see in your feed but it takes longer to render your feed. The lower the video limit, there will be less videos you can see in your feed but it will render your feed faster. Your subscription's video limit defaults to 2 weeks.
        form(role="form" method="post")
          input(type="hidden" name="_csrf" value=_csrf)
          .form-group
            select.form-control.input-lg(name="videolimit" required)
              option(selected=user.videolimit.limit==='2 weeks'?"selected":false) 2 weeks
              option(selected=user.videolimit.limit==='1 day'?"selected":false) 1 day
              option(selected=user.videolimit.limit==='2 days'?"selected":false) 2 days
              option(selected=user.videolimit.limit==='3 days'?"selected":false) 3 days
              option(selected=user.videolimit.limit==='4 days'?"selected":false) 4 days
              option(selected=user.videolimit.limit==='5 days'?"selected":false) 5 days
              option(selected=user.videolimit.limit==='6 days'?"selected":false) 6 days
              option(selected=user.videolimit.limit==='1 week'?"selected":false) 1 week
              option(selected=user.videolimit.limit==='3 week'?"selected":false) 3 weeks
              option(selected=user.videolimit.limit==='1 month'?"selected":false) 1 month
              option(selected=user.videolimit.limit==='2 months'?"selected":false) 2 months
              option(selected=user.videolimit.limit==='3 months'?"selected":false) 3 months
              option(selected=user.videolimit.limit==='1 year'?"selected":false) 1 year<commit_msg>Move video limit options 2 week to correct order<commit_after>extends ../layout

block content
  .page-header
    h1= title
      small &nbsp;#{description}
  .row
    .col-md-4
      ul.nav.nav-pills.nav-stacked
        li(class=title==='Account'?'active':undefined)
          a(href="/settings/account") Account
            span.fa.fa-arrow-right.pull-right
        li(class=title==='Videos'?'active':undefined)
          a(href="/settings/videos") Videos
            span.fa.fa-arrow-right.pull-right
        li(class=title==='Password'?'active':undefined)
          a(href="/settings/password") Password
            span.fa.fa-arrow-right.pull-right
    .col-md-8
      if title === "Account"
        form.form-horizontal(role="form" method="post")
          input(type="hidden" name="_csrf" value=_csrf)
          .form-group
            label.col-sm-2.control-label Avatar
            .col-sm-10
              input.form-control(type="text" name="avatar" value="#{user.profile.avatar}")
              p.help-block Enter .png, .jpg, .gif image url here
              br
              img.avatar(src="#{user.profile.avatar || user.gravatar()}" alt="avatar profile")
          .form-group
            label.col-sm-2.control-label Username
            .col-sm-10
              input.form-control(type="text" name="username" value="#{user.username}" required)
              p.help-block http://localhost:3000/#{user.uid}
          .form-group
            label.col-sm-2.control-label Email
            .col-sm-10
              input.form-control(type="email" name="email" value="#{user.email}" required)
              p.help-block Email will not be publicly displayed.
          .form-group
            label.col-sm-2.control-label Location
            .col-sm-10
              input.form-control(type="text" name="location" value="#{user.profile.location}")
              p.help-block Where in the world are you?
          .form-group
            label.col-sm-2.control-label Website
            .col-sm-10
              input.form-control(type="text" name="website" value="#{user.profile.website}")
              p.help-block Have a homepage or a blog? Put the address here.
          .form-group
            label.col-sm-2.control-label Bio
            .col-sm-10
              textarea.form-control.bio(name="bio" rows="3") #{user.profile.bio}
              p.help-block About yourself in 160 characters or less.
                span.count.pull-right 160
          .form-group
            .col-sm-offset-2.col-sm-4
              button.btn.btn-primary(type="submit") Save Changes
        hr
        a(href="/settings/delete") Delete my account
        br
        br
      if title === 'Password'
        form(role="form" method="post")
          input(type="hidden" name="_csrf" value=_csrf)
          .form-group
            label New Password
            input.form-control(type="password" name="password" required)
          .form-group
            label Confirm Password
            input.form-control(type="password" name="confirmPassword" required)
          .form-group
            button.btn.btn-primary(type="submit") Save Changes
      if title === 'Videos'
        p The higher the video limit, the more videos you can see in your feed but it takes longer to render your feed. The lower the video limit, there will be less videos you can see in your feed but it will render your feed faster. Your subscription's video limit defaults to 2 weeks.
        form(role="form" method="post")
          input(type="hidden" name="_csrf" value=_csrf)
          .form-group
            select.form-control.input-lg(name="videolimit" required)
              option(selected=user.videolimit.limit==='1 day'?"selected":false) 1 day
              option(selected=user.videolimit.limit==='2 days'?"selected":false) 2 days
              option(selected=user.videolimit.limit==='3 days'?"selected":false) 3 days
              option(selected=user.videolimit.limit==='4 days'?"selected":false) 4 days
              option(selected=user.videolimit.limit==='5 days'?"selected":false) 5 days
              option(selected=user.videolimit.limit==='6 days'?"selected":false) 6 days
              option(selected=user.videolimit.limit==='1 week'?"selected":false) 1 week
              option(selected=user.videolimit.limit==='2 weeks'?"selected":false) 2 weeks
              option(selected=user.videolimit.limit==='3 week'?"selected":false) 3 weeks
              option(selected=user.videolimit.limit==='1 month'?"selected":false) 1 month
              option(selected=user.videolimit.limit==='2 months'?"selected":false) 2 months
              option(selected=user.videolimit.limit==='3 months'?"selected":false) 3 months
              option(selected=user.videolimit.limit==='1 year'?"selected":false) 1 year
{'fraction_non_alphanumeric': 0.1345591307981613, 'fraction_numerical': 0.012849979105725032, 'mean_word_length': 2.226491405460061, 'pattern_counts': {'":': 26, '<': 4, '<?xml version=': 0, '>': 4, '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': '5421248', 'n_tokens_mistral': 2803, 'n_tokens_neox': 2701, 'n_words': 571}