<commit_before>@import "../../variables.less";
@import "../../../../bower_components/bootstrap/less/mixins.less";

body {
  header.navbar {

    [my-navbar] {
      padding-top: 10px;
      padding-bottom: 15px;

      // Logo
      a.navbar-brand {
        position: relative;
        top: 1px;

        &.first {
          background-image: none;
          font-size: 40px;
          top: -8px;
        }

        > strong {
          display: inline-block;
          visibility: hidden;
          width: 84px;
        }
      }

      div.navbar-collapse {

        &.in {
          @media (max-width: @screen-md-max) {
            margin-top: 15px;
            max-height: 800px;
            overflow-y: visible;

            ul.navbar-nav {
              display: block;
              visibility: visible;
            }

            div.error-button {
              float: left;
              min-width: 140px;
              text-align: center;
              visibility: visible;
            }
          }
          @media (max-width: @screen-xs-max) {
            div.error-button {
              float: none;
              div.popover { max-width: 100%; }
            }
          }
        }

        > ul.navbar-nav {

          // Namespace dropdown
          &:first-child {
            @media (min-width: @screen-sm-min) { float: left; }
            li.dropdown {
              @media (max-width: @screen-md-max) {
                &.one {
                  a.dropdown-toggle {
                    cursor: default;
                    .caret { display: none; }
                  }
                  &.open {
                    ul.dropdown-menu { padding: 0; }
                  }
                }
              }
              @media (min-width: @screen-lg-min) {
                &.one {
                  &.open {
                    .border-radius(4px);
                  }
                }
              }
            }

            @media (min-width: @screen-lg-min) {
              margin-left: 10px;
              visibility: visible;
              width: 160px;

              ul.dropdown-menu {
                .border-radius(0 0 4px 4px);
                left: 0;
                width: 160px;
                max-height: 500px;
                overflow-y: auto;
                float: none;
                li:nth-last-child(2) { border-bottom: 0; }
              }

              li.dropdown {
                width: 100%;
                a.dropdown-toggle {
                  white-space: nowrap;
                  span:first-child { padding-right: 5px; }
                  .tooltip.right {
                    display: none!important;
                    visibility: hidden;
                  }
                }

                &.open {
                  width: 160px;
                  z-index: 10;
                  a.dropdown-toggle {
                    margin: 7px;
                    padding: 10px;
                    overflow: auto;
                    .border-radius(4px);
                    span {
                      &:first-child { float: left; }
                      &:last-child { display: none; }
                    }
                  }
                }
              }
            }
          }

          // Settings dropdown
          &.navbar-right {
            @media (min-width: @screen-sm-min) { padding-left: 20px; }
            @media (min-width: @screen-lg-min) { padding-left: 0; }
            li.dropdown {
              @media (max-width: @screen-xs-max) { padding-top: 0; }
              @media (min-width: @screen-sm-min) { padding-bottom: 0; }
              @media (min-width: @screen-lg-min) {
                height: 51px;
                width: 40px;
                .border-radius(4px 4px 0 0);
              }

              &.open {
                a.dropdown-toggle {
                  @media (min-width: @screen-lg-min) {
                    .border-radius(4px 4px 0 0);
                    font-size: 14px;
                  }
                }
              }

              a.dropdown-toggle {
                height: auto;
                .fa-cog:before { font-size: 17px; }
                @media (max-width: @screen-md-max) {
                  padding-top: 0;
                  padding-left: 10px;
                  span.fa-cog { display: none; }
                  &:before {
                    content: 'Settings';
                    padding-right: 5px;
                  }
                }
                @media (min-width: @screen-lg-min) {
                  display: inline-block;
                  line-height: 51px;
                  padding: 0;
                  text-align: center;
                  width: 100%;
                }
              }

              ul.dropdown-menu {
                @media (min-width: @screen-sm-min) {
                  .border-radius(4px 0 4px 4px);
                  li.nav-subsection { border: 0; }
                }
                @media (max-width: @screen-md-max) {
                  > li > a {
                    padding-left: 10px;
                    padding-top: 5px;
                    padding-bottom: 5px;
                  }
                  li.nav-subsection { padding-left: 10px; }
                }
                @media (min-width: @screen-lg-min) {
                  > li > a { padding-left: 14px; }
                  li.nav-subsection { margin: 10px 0 0 10px; }
                }
              }
            }
          }

          // Namespace and Settings dropdowns
          li.dropdown {
            @media (max-width: @screen-md-max) {
              min-width: 140px;
              a.dropdown-toggle { padding-bottom: 0; }
              li.disabled { display: none; }
              &.open {
                a.dropdown-toggle {
                  background-color: transparent;
                  text-align: left;
                  .transition(all 0.2s ease-in);
                  &:hover, &:focus { background-color: transparent; }
                  .caret { display: none; }
                }
              }
            }
            @media (min-width: @screen-lg-min) {
              background-color: transparent;
              .border-radius(4px 4px 0 0);
              .transition(background-color 0.2s ease-in);
              &.open {
                height: 51px;
                a.dropdown-toggle {
                  font-size: 14px;
                  .border-radius(4px);
                }
              }

              ul.dropdown-menu {
                border: 0;
                margin: 0;
                padding: 0;
                top: 50px !important;
                li { position: relative; }
                a {
                  font-size: 14px;
                  margin: 7px;
                  padding: 10px;
                  max-width: 95%;
                  text-overflow: ellipsis;
                  overflow: hidden;
                  &:hover, &:focus {
                    outline: none;
                    .border-radius(4px);
                  }
                }
              }
            }
          }
        }

        ul.navbar-nav {
          @media (max-width: @screen-md-max) {
            display: none;
            visibility: hidden;
            ul.dropdown-menu {
              min-width: 140px;
              &.am-flip-x {
                .transition(none);
                -webkit-animation-duration: 0s;
                animation-duration: 0s;
              }
            }
          }
        }

        // Main nav
        nav {
          @media (min-width: @screen-sm-min) {
            position: absolute;
            top: 18px;
            left: 50%;
            margin-left: -148px;
            > ul.navbar-nav {
              .border-radius(25px);
              display: block;
              float: left;
              margin: 0;
              visibility: visible;
              > li { float: left; }
              li {
                width: 140px;
                overflow: hidden;
                text-align: center;
                &.active > a { cursor: default; }
                > a {
                  .border-radius(25px);
                  font-size: 15px;
                  letter-spacing: 0.5px;
                  margin: 1px;
                  padding: 10px;
                  text-transform: capitalize;
                }
              }
            }
          }
          @media (max-width: @screen-md-max) {
            ul.navbar-nav {
              > .active > a { background-color: transparent; }
            }
          }
          @media (min-width: @screen-md-min) { margin-left: -180px; }
        }

        @media (max-width: @screen-md-max) {
          border-top: 0;
          display: block;
          max-height: 0;
          visibility: visible;

          div.error-button { visibility: hidden; }
        }
      }
    }
  }

  &.theme-cdap {
    header.navbar {
      background-color: @cdap-header;

      [my-navbar] {

        // Mobile nav menu
        button.navbar-toggle {
          @media (max-width: @screen-md-max) {
            &:hover, &:focus { background-color: lighten(@cdap-header, 10%); }
          }
        }

        a.navbar-brand {
          &.first { color: @cdap-orange; }
          &:last-of-type { background: url('@{img-path}/cdap.png') 15px center / 100px auto no-repeat; }
        }

        div.navbar-collapse {

          > ul.navbar-nav {

            // Namespace dropdown
            &:first-child {
              li.dropdown {
                @media (max-width: @screen-md-max) {
                  &.one {
                    &.open {
                      a.dropdown-toggle { color: #9d9d9d; }
                    }
                  }
                }
                @media (min-width: @screen-lg-min) {
                  li.dropdown {
                    a.dropdown-toggle span { color: lightgray; }
                    &.open {
                      a.droptown-toggle span:first-child { color: @cdap-darkness; }
                    }
                  }
                }
              }
            }

            // Settings dropdown
            &.navbar-right {
              margin-right: 0;
              li.dropdown {

                &.open {
                  span.fa-cog { color: @cdap-darkness; }
                }
                @media (max-width: @screen-md-max) {
                  ul.dropdown-menu {
                    li.nav-subsection { color: #9d9d9d; }
                  }
                }
                @media (min-width: @screen-lg-min) {
                  &.open {
                    a.dropdown-toggle {
                      background-color: @cdap-white;
                      color: @cdap-header;
                    }
                  }
                  a.dropdown-toggle { color: white; }
                  ul.dropdown-menu {
                    background-color: @brand-primary;
                    li:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.1); }
                    a {
                      color: white;
                      &:hover, &:focus {
                        background-color: white;
                        color: @cdap-darkness;

                        span { color: @cdap-darkness; }
                      }
                    }
                  }
                }
              }
            }

            // Namespace and Settings dropdowns
            li.dropdown {
              @media (max-width: @screen-md-max) {
                a.dropdown-toggle { color: #9d9d9d; }
              }
              @media (min-width: @screen-lg-min) {
                &.open {
                  background-color: @brand-primary;
                  a.dropdown-toggle {
                    background-color: @cdap-white;
                    color: @cdap-header;
                  }
                }
                ul.dropdown-menu {
                  background-color: @brand-primary;
                  li:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.1); }
                  a {
                    color: white;
                    &:hover, &:focus {
                      background-color: white;
                      color: @cdap-darkness;

                      span { color: @cdap-darkness; }
                    }
                  }
                }
              }
            }
          }

          ul.navbar-nav {
            ul.dropdown-menu {
              li.nav-subsection { color: lightgray; }
              a:disabled { color: lightgray; }
            }
          }

          // Main nav
          nav {
            @media (min-width: @screen-sm-min) {
              > ul.navbar-nav {
                background-color: @cdap-darkness;
                li {
                  &.active > a {
                    color: @cdap-orange;
                    background-color: @gray-lighter;
                  }
                  > a {
                    color: lightgray;
                    &:hover, &:focus { color: @cdap-orange; }
                  }
                }
              }
            }
            @media (max-width: @screen-md-max) {
              ul.navbar-nav {
                > .active > a { color: @cdap-orange; }
              }
            }
          }
        }
      }
    }
  }
}
<commit_msg>adds correct padding to Settings dropdown<commit_after>@import "../../variables.less";
@import "../../../../bower_components/bootstrap/less/mixins.less";

body {
  header.navbar {

    [my-navbar] {
      padding-top: 10px;
      padding-bottom: 15px;

      // Logo
      a.navbar-brand {
        position: relative;
        top: 1px;

        &.first {
          background-image: none;
          font-size: 40px;
          top: -8px;
        }

        > strong {
          display: inline-block;
          visibility: hidden;
          width: 84px;
        }
      }

      div.navbar-collapse {

        &.in {
          @media (max-width: @screen-md-max) {
            margin-top: 15px;
            max-height: 800px;
            overflow-y: visible;

            ul.navbar-nav {
              display: block;
              visibility: visible;
            }

            div.error-button {
              float: left;
              min-width: 140px;
              text-align: center;
              visibility: visible;
            }
          }
          @media (max-width: @screen-xs-max) {
            div.error-button {
              float: none;
              div.popover { max-width: 100%; }
            }
          }
        }

        > ul.navbar-nav {

          // Namespace dropdown
          &:first-child {
            @media (min-width: @screen-sm-min) { float: left; }
            li.dropdown {
              @media (max-width: @screen-md-max) {
                &.one {
                  a.dropdown-toggle {
                    cursor: default;
                    .caret { display: none; }
                  }
                  &.open {
                    ul.dropdown-menu { padding: 0; }
                  }
                }
              }
              @media (min-width: @screen-lg-min) {
                &.one {
                  &.open {
                    .border-radius(4px);
                  }
                }
              }
            }

            @media (min-width: @screen-lg-min) {
              margin-left: 10px;
              visibility: visible;
              width: 160px;

              ul.dropdown-menu {
                .border-radius(0 0 4px 4px);
                left: 0;
                width: 160px;
                max-height: 500px;
                overflow-y: auto;
                float: none;
                li:nth-last-child(2) { border-bottom: 0; }
              }

              li.dropdown {
                width: 100%;
                a.dropdown-toggle {
                  white-space: nowrap;
                  span:first-child { padding-right: 5px; }
                  .tooltip.right {
                    display: none!important;
                    visibility: hidden;
                  }
                }

                &.open {
                  width: 160px;
                  z-index: 10;
                  a.dropdown-toggle {
                    margin: 7px;
                    padding: 10px;
                    overflow: auto;
                    .border-radius(4px);
                    span {
                      &:first-child { float: left; }
                      &:last-child { display: none; }
                    }
                  }
                }
              }
            }
          }

          // Settings dropdown
          &.navbar-right {
            @media (min-width: @screen-sm-min) {
              float: left;
              padding-left: 20px;
            }
            @media (min-width: @screen-lg-min) { padding-left: 0; }
            li.dropdown {
              @media (max-width: @screen-xs-max) { padding-top: 0; }
              @media (min-width: @screen-sm-min) {
                padding: 11px 5px 0;
              }
              @media (min-width: @screen-lg-min) {
                padding: 0;
                height: 51px;
                width: 40px;
                .border-radius(4px 4px 0 0);
              }

              &.open {
                a.dropdown-toggle {
                  @media (min-width: @screen-lg-min) {
                    .border-radius(4px 4px 0 0);
                    font-size: 14px;
                  }
                }
              }

              a.dropdown-toggle {
                height: auto;
                .fa-cog:before { font-size: 17px; }
                @media (max-width: @screen-md-max) {
                  padding-top: 0;
                  padding-left: 15px;
                  span.fa-cog { display: none; }
                  &:before {
                    content: 'Settings';
                    padding-right: 5px;
                  }
                }
                @media (min-width: @screen-lg-min) {
                  display: inline-block;
                  line-height: 51px;
                  padding: 0;
                  text-align: center;
                  width: 100%;
                }
              }

              ul.dropdown-menu {
                @media (min-width: @screen-sm-min) {
                  .border-radius(4px 0 4px 4px);
                  li.nav-subsection { border: 0; }
                }
                @media (max-width: @screen-md-max) {
                  > li > a {
                    padding-left: 10px;
                    padding-top: 5px;
                    padding-bottom: 5px;
                  }
                  li.nav-subsection { padding-left: 10px; }
                }
                @media (min-width: @screen-lg-min) {
                  > li > a { padding-left: 14px; }
                  li.nav-subsection { margin: 10px 0 0 10px; }
                }
              }
            }
          }

          // Namespace and Settings dropdowns
          li.dropdown {
            @media (max-width: @screen-md-max) {
              min-width: 140px;
              a.dropdown-toggle { padding-bottom: 0; }
              li.disabled { display: none; }
              &.open {
                a.dropdown-toggle {
                  background-color: transparent;
                  text-align: left;
                  .transition(all 0.2s ease-in);
                  &:hover, &:focus { background-color: transparent; }
                  .caret { display: none; }
                }
              }
            }
            @media (min-width: @screen-lg-min) {
              background-color: transparent;
              .border-radius(4px 4px 0 0);
              .transition(background-color 0.2s ease-in);
              &.open {
                height: 51px;
                a.dropdown-toggle {
                  font-size: 14px;
                  .border-radius(4px);
                }
              }

              ul.dropdown-menu {
                border: 0;
                margin: 0;
                padding: 0;
                top: 50px !important;
                li { position: relative; }
                a {
                  font-size: 14px;
                  margin: 7px;
                  padding: 10px;
                  max-width: 95%;
                  text-overflow: ellipsis;
                  overflow: hidden;
                  &:hover, &:focus {
                    outline: none;
                    .border-radius(4px);
                  }
                }
              }
            }
          }
        }

        ul.navbar-nav {
          @media (max-width: @screen-md-max) {
            display: none;
            visibility: hidden;
            ul.dropdown-menu {
              min-width: 140px;
              &.am-flip-x {
                .transition(none);
                -webkit-animation-duration: 0s;
                animation-duration: 0s;
              }
            }
          }
        }

        // Main nav
        nav {
          @media (min-width: @screen-sm-min) {
            position: absolute;
            top: 18px;
            left: 50%;
            margin-left: -148px;
            > ul.navbar-nav {
              .border-radius(25px);
              display: block;
              float: left;
              margin: 0;
              visibility: visible;
              > li { float: left; }
              li {
                width: 140px;
                overflow: hidden;
                text-align: center;
                &.active > a { cursor: default; }
                > a {
                  .border-radius(25px);
                  font-size: 15px;
                  letter-spacing: 0.5px;
                  margin: 1px;
                  padding: 10px;
                  text-transform: capitalize;
                }
              }
            }
          }
          @media (max-width: @screen-md-max) {
            ul.navbar-nav {
              > .active > a { background-color: transparent; }
            }
          }
          @media (min-width: @screen-md-min) { margin-left: -180px; }
        }

        @media (max-width: @screen-md-max) {
          border-top: 0;
          display: block;
          max-height: 0;
          visibility: visible;

          div.error-button { visibility: hidden; }
        }
      }
    }
  }

  &.theme-cdap {
    header.navbar {
      background-color: @cdap-header;

      [my-navbar] {

        // Mobile nav menu
        button.navbar-toggle {
          @media (max-width: @screen-md-max) {
            &:hover, &:focus { background-color: lighten(@cdap-header, 10%); }
          }
        }

        a.navbar-brand {
          &.first { color: @cdap-orange; }
          &:last-of-type { background: url('@{img-path}/cdap.png') 15px center / 100px auto no-repeat; }
        }

        div.navbar-collapse {

          > ul.navbar-nav {

            // Namespace dropdown
            &:first-child {
              li.dropdown {
                @media (max-width: @screen-md-max) {
                  &.one {
                    &.open {
                      a.dropdown-toggle { color: #9d9d9d; }
                    }
                  }
                }
                @media (min-width: @screen-lg-min) {
                  li.dropdown {
                    a.dropdown-toggle span { color: lightgray; }
                    &.open {
                      a.droptown-toggle span:first-child { color: @cdap-darkness; }
                    }
                  }
                }
              }
            }

            // Settings dropdown
            &.navbar-right {
              margin-right: 0;
              li.dropdown {

                &.open {
                  span.fa-cog { color: @cdap-darkness; }
                }
                @media (max-width: @screen-md-max) {
                  ul.dropdown-menu {
                    li.nav-subsection { color: #9d9d9d; }
                  }
                }
                @media (min-width: @screen-lg-min) {
                  &.open {
                    a.dropdown-toggle {
                      background-color: @cdap-white;
                      color: @cdap-header;
                    }
                  }
                  a.dropdown-toggle { color: white; }
                  ul.dropdown-menu {
                    background-color: @brand-primary;
                    li:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.1); }
                    a {
                      color: white;
                      &:hover, &:focus {
                        background-color: white;
                        color: @cdap-darkness;

                        span { color: @cdap-darkness; }
                      }
                    }
                  }
                }
              }
            }

            // Namespace and Settings dropdowns
            li.dropdown {
              @media (max-width: @screen-md-max) {
                a.dropdown-toggle { color: #9d9d9d; }
              }
              @media (min-width: @screen-lg-min) {
                &.open {
                  background-color: @brand-primary;
                  a.dropdown-toggle {
                    background-color: @cdap-white;
                    color: @cdap-header;
                  }
                }
                ul.dropdown-menu {
                  background-color: @brand-primary;
                  li:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.1); }
                  a {
                    color: white;
                    &:hover, &:focus {
                      background-color: white;
                      color: @cdap-darkness;

                      span { color: @cdap-darkness; }
                    }
                  }
                }
              }
            }
          }

          ul.navbar-nav {
            ul.dropdown-menu {
              li.nav-subsection { color: lightgray; }
              a:disabled { color: lightgray; }
            }
          }

          // Main nav
          nav {
            @media (min-width: @screen-sm-min) {
              > ul.navbar-nav {
                background-color: @cdap-darkness;
                li {
                  &.active > a {
                    color: @cdap-orange;
                    background-color: @gray-lighter;
                  }
                  > a {
                    color: lightgray;
                    &:hover, &:focus { color: @cdap-orange; }
                  }
                }
              }
            }
            @media (max-width: @screen-md-max) {
              ul.navbar-nav {
                > .active > a { color: @cdap-orange; }
              }
            }
          }
        }
      }
    }
  }
}

{'fraction_non_alphanumeric': 0.10855004677268475, 'fraction_numerical': 0.014742750233863424, 'mean_word_length': 0.7856617892697267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, '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': '6122333', 'n_tokens_mistral': 7678, 'n_tokens_neox': 6806, 'n_words': 1283}