<commit_before><div ng-controller="HeaderController as Header">
    <!-- app-header -->
    <header class="app-header">
        <nav class="container">
            <!-- views nav -->
            <ul class="nav-list views">
                <li class="logo-box" ng-class="{'active': Header.menuItemActive === 'dashboard'}">
                    <a class="logo" ui-sref="dashboard.index" title="Dashboard"></a>
                </li>
                <li class="mobile-trigger">
                    <a class="mobile-trigger-link icon bars"
                        ng-click="Header.mobileMenu()"></a>
                </li>
                <li visible="customers" class="dropdown customers" ng-class="{'active': Header.menuState.customerMenu}">
                    <a class="customer-context drop-active" ng-click="Header.menuToggle('customerMenu', $event)">
                        <span class="active-context">Organization</span>
                        <span class="customer-name">{{ Header.currentCustomer.name }}</span>
                    </a>
                    <ul class="nav-sublist" ng-show="Header.menuState.customerMenu">
                        <li>
                            <a class="details" ng-click="Header.goToCurrentOrganization()">Details</a>
                        </li>
                        <li ng-repeat="customer in Header.customers" ng-if="customer.uuid != Header.currentCustomer.uuid">
                            <a ng-click="Header.setCurrentCustomer(customer)">{{ customer.name }}</a>
                        </li>
                        <li class="manage-item">
                            <a ui-sref="organizations.list" class="manage">
                                <i class="icon wrench"></i>
                                Manage organizations
                            </a>
                        </li>
                    </ul>
                </li>
                <li visible="projects" class="dropdown project-dropdown" ng-class="{'active': Header.menuState.projectMenu}">
                    <a class="project-context drop-active" ng-click="Header.menuToggle('projectMenu', $event)">
                        <span class="active-context">Project</span>
                        <span class="customer-name">{{ Header.currentProject.name ? Header.currentProject.name : 'No project' }}</span>
                    </a>
                    <ul block-ui="project-menu" class="nav-sublist" ng-show="Header.menuState.projectMenu">
                        <li ng-repeat="project in Header.projects" ng-if="project.uuid != Header.currentProject.uuid">
                            <a ng-click="Header.setCurrentProject(project)">
                                <span>{{ project.name }}</span>
                                <span></span>
                            </a>
                        </li>
                        <li class="manage-item">
                            <a ui-sref="organizations.details({uuid: Header.currentCustomer.uuid, tab: 'projects'})" class="manage">
                                <i class="icon wrench"></i>
                                Manage projects
                            </a>
                        </li>
                        <li class="manage-item">
                            <div class="tooltip-relative inline"
                                 check-quotas="{{Header.checkQuotas.projects}}"
                                 sref="projects.create"
                                 class-link="manage"
                                 tooltip-type="project-drop-down">
                                <div><i class="icon plus"></i> Add project</div>
                            </div>
                        </li>
                    </ul>
                </li>
                <li class="resources">
                    <a class="appstore"
                       ng-click="Header.goToCurrentProject()"
                       ng-class="{'active': Header.menuItemActive === 'projects', 'disabled' : !Header.currentProject.name}">
                        <span><b class="icon zoom"></b>Details</span>
                    </a>
                </li>
                <li visible="appstore" class="appstore">
                    <div check-quotas="{{Header.checkQuotas.resources}}"
                         sref="appstore.store"
                         ng-class="{'disabled' : !Header.currentProject.name}"
                         class-link="appstore {{ Header.menuItemActive === 'appstore' ? 'active' : '' }}"
                         tooltip-type="head-nav-appstore">
                        <span><b class="icon cart-plus"></b>Appstore</span>
                    </div>
                </li>
            </ul>
            <!-- /views nav -->
            <!-- context nav -->
            <ul class="nav-list context">
                <li class="dropdown user-dropdown" ng-class="{'active': Header.menuState.profileMenu || Header.menuItemActive == 'users'}">
                    <a class="user-area drop-active" ng-click="Header.menuToggle('profileMenu', $event)">
                        <span class="avatar">
                            <img gravatar-src="Header.currentUser.email" gravatar-size="100">
                        </span>
                        <span class="user-name">{{ Header.currentUser.full_name }}</span>
                    </a>
                    <ul class="nav-sublist user-area" ng-show="Header.menuState.profileMenu">
                        <li visible="services" class="on-tablet">
                            <div class="tooltip-relative"
                                 check-quotas="{{Header.checkQuotas.resources}}"
                                 sref="services.create"
                                 class-link="service"
                                 tooltip-type="user-drop-down">
                                <div>Add provider</div>
                            </div>
                        </li>
                        <li visible="projects" class="on-tablet">
                            <div class="tooltip-relative"
                                 check-quotas="{{Header.checkQuotas.projects}}"
                                 sref="projects.create"
                                 class-link="project"
                                 tooltip-type="user-drop-down">
                                <div><i class="icon plus"></i> Add project</div>
                            </div>
                        </li>
                        <li visible="import" ng-if="::Header.showImport" class="on-tablet">
                            <div class="tooltip-relative"
                                 check-quotas="{{Header.checkQuotas.resources}}"
                                 sref="import.import"
                                 class-link="import"
                                 tooltip-type="user-drop-down">
                                <div>Import resources</div>
                            </div>
                        </li>
                        <li visible="support" class="on-tablet">
                            <a ui-sref="support.list">Support</a>
                        </li>
                        <li>
                            <a ui-sref="profile.details">Profile</a>
                        </li>
                        <li>
                            <a ng-click="logout()">Logout</a>
                        </li>
                    </ul>
                </li>
                <li visible="support" class="customer-support">
                    <a ui-sref="support.list" class="support" title="Support"
                       ng-class="{'active': Header.menuItemActive === 'support'}"></a>
                </li>
                <li class="dropdown" ng-show="Header.LANGUAGE_CHOICES.length>1" ng-click="Header.menuToggle('langMenu', $event)">
                    <a class="lang" title="{{ Header.currentLanguage.label }}">{{ Header.currentLanguage.code | uppercase }}</a>
                    <ul class="nav-sublist lang" ng-show="Header.menuState.langMenu">
                        <li ng-repeat="language in Header.LANGUAGE_CHOICES"
                            ng-click="Header.changeLanguage(language)">
                            <a ng-class="{'current': language.code==Header.currentLanguage.code}">{{ language.label}}</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <!-- /context nav -->
        </nav>
    </header>
    <!-- app-header -->
    <div class="mobile-menu-side" ng-show="Header.showMobileMenu">
        <nav>
            <!-- views nav -->
            <ul class="nav-list-side">
                <li>
                    <a ui-sref="dashboard.index"
                        ng-class="{'active': Header.menuItemActive === 'dashboard'}" class="dashboard">
                        <span>Dashboard</span>
                    </a>
                </li>
                <li class="on-tablet customers current">
                    <span>Organization</span>
                    <a ui-sref="organizations.details({uuid: Header.currentCustomer.uuid})">{{ Header.currentCustomer.name }}</a>
                </li>
                <li class="on-tablet customers choose-list" stoppropagation
                    ng-click="showOrganizations = !showOrganizations"
                    ng-class="{'choose-list-active': showOrganizations}">
                    <a>Choose organization</a>
                </li>
                <li class="on-tablet customers choose-list-item"
                    ng-show="showOrganizations && customer.uuid !== Header.currentCustomer.uuid"
                    ng-repeat="customer in Header.customers">
                    <a ng-click="Header.setCurrentCustomer(customer)">{{ customer.name }}</a>
                </li>
                <li class="on-tablet">
                    <a ui-sref="organizations.list" class="manage">
                        <i class="icon wrench"></i>
                        Manage organizations
                    </a>
                </li>
                <li class="on-tablet customers current">
                    <span>Project</span>
                    <a ui-sref="projects.details({uuid: Header.currentProject.uuid})">{{ Header.currentProject.name }}</a>
                </li>
                <li class="on-tablet customers choose-list" stoppropagation
                    ng-click="showProjects = !showProjects"
                    ng-class="{'choose-list-active': showProjects}">
                    <a>Choose project</a>
                </li>
                <li class="on-tablet customers choose-list-item"
                    ng-show="showProjects && project.uuid !== Header.currentProject.uuid"
                    ng-repeat="project in Header.projects">
                    <a ng-click="Header.setCurrentProject(project)">{{ project.name }}</a>
                </li>
                <li class="on-tablet">
                    <a ui-sref="organizations.details({uuid: Header.currentCustomer.uuid, tab: 'projects'})" class="manage">
                        <i class="icon wrench"></i>
                        Manage projects
                    </a>
                </li>
            </ul>
            <!-- /views nav -->
            <!-- context nav -->
            <ul class="nav-list-side">
                <li visible="support">
                    <a ui-sref="support.list"
                        ng-class="{'active': Header.menuItemActive === 'support'}" class="support">Support</a>
                </li>
                <li class="dropdown">
                    <a href="" class="user-area drop-active" ng-click="Header.menuToggle('profileMenu', $event)"
                        ng-class="{'active': Header.menuState.profileMenu}" scroll-to-me container-class="mobile-menu-side">
                        <span class="avatar">
                            <img gravatar-src="Header.currentUser.email" gravatar-size="100">
                        </span>
                        <span class="user-name">{{ Header.currentUser.full_name }}</span>
                    </a>
                    <ul class="nav-sublist-side user-area" ng-show="Header.menuState.profileMenu">
                        <li visible="services" class="on-tablet">
                            <a ui-sref="services.create" class="service">Add provider</a>
                        </li>
                        <li visible="projects" class="on-tablet">
                            <a ui-sref="projects.create" class="project">
                                <i class="icon plus"></i> Add project
                            </a>
                        </li>
                        <li visible="resources" class="on-tablet">
                            <a ui-sref="appstore.store" class="resource">Add resource</a>
                        </li>
                        <li class="divider on-tablet"></li>
                        <li visible="customers" class="on-tablet" ng-repeat="customer in Header.customers">
                            <a ng-click="Header.setCurrentCustomer(customer)"
                                ng-class="{'current': customer.uuid == Header.currentCustomer.uuid}">{{ customer.name }}</a>
                        </li>
                        <li class="divider on-tablet"></li>
                        <li visible="customers" class="on-tablet">
                            <a ui-sref="organizations.list" class="manage">
                                <i class="icon wrench"></i>
                                Manage organizations
                            </a>
                        </li>
                        <li class="divider on-tablet"></li>
                        <li>
                            <a ui-sref="profile.details">Profile</a>
                        </li>
                        <li>
                            <a ng-click="logout()">Logout</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <!-- /context nav -->
        </nav>
    </div>
</div>
<commit_msg>Fix sidebar menu in tablet mode (SAAS-1054)<commit_after><div ng-controller="HeaderController as Header">
    <!-- app-header -->
    <header class="app-header">
        <nav class="container">
            <!-- views nav -->
            <ul class="nav-list views">
                <li class="logo-box" ng-class="{'active': Header.menuItemActive === 'dashboard'}">
                    <a class="logo" ui-sref="dashboard.index" title="Dashboard"></a>
                </li>
                <li class="mobile-trigger">
                    <a class="mobile-trigger-link icon bars"
                        ng-click="Header.mobileMenu()"></a>
                </li>
                <li visible="customers" class="dropdown customers" ng-class="{'active': Header.menuState.customerMenu}">
                    <a class="customer-context drop-active" ng-click="Header.menuToggle('customerMenu', $event)">
                        <span class="active-context">Organization</span>
                        <span class="customer-name">{{ Header.currentCustomer.name }}</span>
                    </a>
                    <ul class="nav-sublist" ng-show="Header.menuState.customerMenu">
                        <li>
                            <a class="details" ng-click="Header.goToCurrentOrganization()">Details</a>
                        </li>
                        <li ng-repeat="customer in Header.customers" ng-if="customer.uuid != Header.currentCustomer.uuid">
                            <a ng-click="Header.setCurrentCustomer(customer)">{{ customer.name }}</a>
                        </li>
                        <li class="manage-item">
                            <a ui-sref="organizations.list" class="manage">
                                <i class="icon wrench"></i>
                                Manage organizations
                            </a>
                        </li>
                    </ul>
                </li>
                <li visible="projects" class="dropdown project-dropdown" ng-class="{'active': Header.menuState.projectMenu}">
                    <a class="project-context drop-active" ng-click="Header.menuToggle('projectMenu', $event)">
                        <span class="active-context">Project</span>
                        <span class="customer-name">{{ Header.currentProject.name ? Header.currentProject.name : 'No project' }}</span>
                    </a>
                    <ul block-ui="project-menu" class="nav-sublist" ng-show="Header.menuState.projectMenu">
                        <li ng-repeat="project in Header.projects" ng-if="project.uuid != Header.currentProject.uuid">
                            <a ng-click="Header.setCurrentProject(project)">
                                <span>{{ project.name }}</span>
                                <span></span>
                            </a>
                        </li>
                        <li class="manage-item">
                            <a ui-sref="organizations.details({uuid: Header.currentCustomer.uuid, tab: 'projects'})" class="manage">
                                <i class="icon wrench"></i>
                                Manage projects
                            </a>
                        </li>
                        <li class="manage-item">
                            <div class="tooltip-relative inline"
                                 check-quotas="{{Header.checkQuotas.projects}}"
                                 sref="projects.create"
                                 class-link="manage"
                                 tooltip-type="project-drop-down">
                                <div><i class="icon plus"></i> Add project</div>
                            </div>
                        </li>
                    </ul>
                </li>
                <li class="resources">
                    <a class="appstore"
                       ng-click="Header.goToCurrentProject()"
                       ng-class="{'active': Header.menuItemActive === 'projects', 'disabled' : !Header.currentProject.name}">
                        <span><b class="icon zoom"></b>Details</span>
                    </a>
                </li>
                <li visible="appstore" class="appstore">
                    <div check-quotas="{{Header.checkQuotas.resources}}"
                         sref="appstore.store"
                         ng-class="{'disabled' : !Header.currentProject.name}"
                         class-link="appstore {{ Header.menuItemActive === 'appstore' ? 'active' : '' }}"
                         tooltip-type="head-nav-appstore">
                        <span><b class="icon cart-plus"></b>Appstore</span>
                    </div>
                </li>
            </ul>
            <!-- /views nav -->
            <!-- context nav -->
            <ul class="nav-list context">
                <li class="dropdown user-dropdown" ng-class="{'active': Header.menuState.profileMenu || Header.menuItemActive == 'users'}">
                    <a class="user-area drop-active" ng-click="Header.menuToggle('profileMenu', $event)">
                        <span class="avatar">
                            <img gravatar-src="Header.currentUser.email" gravatar-size="100">
                        </span>
                        <span class="user-name">{{ Header.currentUser.full_name }}</span>
                    </a>
                    <ul class="nav-sublist user-area" ng-show="Header.menuState.profileMenu">
                        <li visible="services" class="on-tablet">
                            <div class="tooltip-relative"
                                 check-quotas="{{Header.checkQuotas.resources}}"
                                 sref="services.create"
                                 class-link="service"
                                 tooltip-type="user-drop-down">
                                <div>Add provider</div>
                            </div>
                        </li>
                        <li visible="projects" class="on-tablet">
                            <div class="tooltip-relative"
                                 check-quotas="{{Header.checkQuotas.projects}}"
                                 sref="projects.create"
                                 class-link="project"
                                 tooltip-type="user-drop-down">
                                <div><i class="icon plus"></i> Add project</div>
                            </div>
                        </li>
                        <li visible="import" ng-if="::Header.showImport" class="on-tablet">
                            <div class="tooltip-relative"
                                 check-quotas="{{Header.checkQuotas.resources}}"
                                 sref="import.import"
                                 class-link="import"
                                 tooltip-type="user-drop-down">
                                <div>Import resources</div>
                            </div>
                        </li>
                        <li visible="support" class="on-tablet">
                            <a ui-sref="support.list">Support</a>
                        </li>
                        <li>
                            <a ui-sref="profile.details">Profile</a>
                        </li>
                        <li>
                            <a ng-click="logout()">Logout</a>
                        </li>
                    </ul>
                </li>
                <li visible="support" class="customer-support">
                    <a ui-sref="support.list" class="support" title="Support"
                       ng-class="{'active': Header.menuItemActive === 'support'}"></a>
                </li>
                <li class="dropdown" ng-show="Header.LANGUAGE_CHOICES.length>1" ng-click="Header.menuToggle('langMenu', $event)">
                    <a class="lang" title="{{ Header.currentLanguage.label }}">{{ Header.currentLanguage.code | uppercase }}</a>
                    <ul class="nav-sublist lang" ng-show="Header.menuState.langMenu">
                        <li ng-repeat="language in Header.LANGUAGE_CHOICES"
                            ng-click="Header.changeLanguage(language)">
                            <a ng-class="{'current': language.code==Header.currentLanguage.code}">{{ language.label}}</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <!-- /context nav -->
        </nav>
    </header>
    <!-- app-header -->
    <div class="mobile-menu-side" ng-show="Header.showMobileMenu">
        <nav>
            <!-- views nav -->
            <ul class="nav-list-side">
                <li>
                    <a ui-sref="dashboard.index"
                        ng-class="{'active': Header.menuItemActive === 'dashboard'}" class="dashboard">
                        <span>Dashboard</span>
                    </a>
                </li>
                <li class="on-tablet customers current">
                    <span>Organization</span>
                    <a ui-sref="organizations.details({uuid: Header.currentCustomer.uuid})">{{ Header.currentCustomer.name }}</a>
                </li>
                <li class="on-tablet customers choose-list" stoppropagation
                    ng-click="Header.showOrganizations = !Header.showOrganizations"
                    ng-if="Header.customers.length > 1"
                    ng-class="{'choose-list-active': Header.showOrganizations}">
                    <a>Choose organization</a>
                </li>
                <li class="on-tablet customers choose-list-item"
                    ng-show="Header.showOrganizations && customer.uuid !== Header.currentCustomer.uuid"
                    ng-repeat="customer in Header.customers">
                    <a ng-click="Header.setCurrentCustomer(customer)">{{ customer.name }}</a>
                </li>
                <li class="on-tablet">
                    <a ui-sref="organizations.list" class="manage">
                        <i class="icon wrench"></i>
                        Manage organizations
                    </a>
                </li>
                <li class="on-tablet customers current" ng-if="Header.currentProject.name">
                    <span>Project</span>
                    <a ui-sref="projects.details({uuid: Header.currentProject.uuid})">{{ Header.currentProject.name }}</a>
                </li>
                <li class="on-tablet customers choose-list" stoppropagation
                    ng-if="Header.projects.length > 1"
                    ng-click="showProjects = !showProjects"
                    ng-class="{'choose-list-active': showProjects}">
                    <a>Choose project</a>
                </li>
                <li class="on-tablet customers choose-list-item"
                    ng-show="showProjects && project.uuid !== Header.currentProject.uuid"
                    ng-repeat="project in Header.projects">
                    <a ng-click="Header.setCurrentProject(project)">{{ project.name }}</a>
                </li>
                <li class="on-tablet">
                    <a ui-sref="organizations.details({uuid: Header.currentCustomer.uuid, tab: 'projects'})" class="manage">
                        <i class="icon wrench"></i>
                        Manage projects
                    </a>
                </li>
            </ul>
            <!-- /views nav -->
            <!-- context nav -->
            <ul class="nav-list-side">
                <li visible="support">
                    <a ui-sref="support.list"
                        ng-class="{'active': Header.menuItemActive === 'support'}" class="support">Support</a>
                </li>
                <li class="dropdown">
                    <a href="" class="user-area drop-active" ng-click="Header.menuToggle('profileMenu', $event)"
                        ng-class="{'active': Header.menuState.profileMenu}" scroll-to-me container-class="mobile-menu-side">
                        <span class="avatar">
                            <img gravatar-src="Header.currentUser.email" gravatar-size="100">
                        </span>
                        <span class="user-name">{{ Header.currentUser.full_name }}</span>
                    </a>
                    <ul class="nav-sublist-side user-area" ng-show="Header.menuState.profileMenu">
                        <li visible="services" class="on-tablet">
                            <a ui-sref="services.create" class="service">Add provider</a>
                        </li>
                        <li visible="projects" class="on-tablet">
                            <a ui-sref="projects.create" class="project">
                                <i class="icon plus"></i> Add project
                            </a>
                        </li>
                        <li visible="resources" class="on-tablet">
                            <a ui-sref="appstore.store" class="resource">Add resource</a>
                        </li>
                        <li class="divider on-tablet"></li>
                        <li visible="customers" class="on-tablet" ng-repeat="customer in Header.customers">
                            <a ng-click="Header.setCurrentCustomer(customer)"
                                ng-class="{'current': customer.uuid == Header.currentCustomer.uuid}">{{ customer.name }}</a>
                        </li>
                        <li class="divider on-tablet"></li>
                        <li visible="customers" class="on-tablet">
                            <a ui-sref="organizations.list" class="manage">
                                <i class="icon wrench"></i>
                                Manage organizations
                            </a>
                        </li>
                        <li class="divider on-tablet"></li>
                        <li>
                            <a ui-sref="profile.details">Profile</a>
                        </li>
                        <li>
                            <a ng-click="logout()">Logout</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <!-- /context nav -->
        </nav>
    </div>
</div>

{'fraction_non_alphanumeric': 0.13760141093474426, 'fraction_numerical': 0.0007054673721340388, 'mean_word_length': 1.151062215477997, 'pattern_counts': {'":': 2, '<': 531, '<?xml version=': 0, '>': 535, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 40, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '503369', 'n_tokens_mistral': 7010, 'n_tokens_neox': 6609, 'n_words': 1155}