<commit_before><?php

final class PhabricatorApplicationsListController
  extends PhabricatorApplicationsController {

  public function processRequest() {
    $request = $this->getRequest();
    $user = $request->getUser();

    $nav = $this->buildSideNavView();
    $nav->selectFilter('/');

    $applications = PhabricatorApplication::getAllApplications();

    $list = $this->buildInstalledApplicationsList($applications);

    $title = pht('Installed Applications');

    $header = id(new PhabricatorHeaderView())
      ->setHeader($title);

    $nav->appendChild(
      array(
        $header,
        $list
      ));

    $crumbs = $this
      ->buildApplicationCrumbs()
      ->addCrumb(
        id(new PhabricatorCrumbView())
          ->setName(pht('Applications'))
          ->setHref($this->getApplicationURI()));

    $nav->setCrumbs($crumbs);

    return $this->buildApplicationPage(
      $nav,
      array(
        'title' => $title,
        'device' => true,
      ));
  }


  private function buildInstalledApplicationsList(array $applications) {
    $list = new PhabricatorObjectItemListView();

    $applications = msort($applications, 'getName');
<commit_msg>Add dust, remove header on Applications<commit_after><?php

final class PhabricatorApplicationsListController
  extends PhabricatorApplicationsController {

  public function processRequest() {
    $request = $this->getRequest();
    $user = $request->getUser();

    $nav = $this->buildSideNavView();
    $nav->selectFilter('/');

    $applications = PhabricatorApplication::getAllApplications();

    $list = $this->buildInstalledApplicationsList($applications);
    $title = pht('Installed Applications');
    $nav->appendChild($list);

    $crumbs = $this
      ->buildApplicationCrumbs()
      ->addCrumb(
        id(new PhabricatorCrumbView())
          ->setName(pht('Applications'))
          ->setHref($this->getApplicationURI()));

    $nav->setCrumbs($crumbs);

    return $this->buildApplicationPage(
      $nav,
      array(
        'title' => $title,
        'device' => true,
        'dust' => true,
      ));
  }


  private function buildInstalledApplicationsList(array $applications) {
    $list = new PhabricatorObjectItemListView();

    $applications = msort($applications, 'getName');

{'fraction_non_alphanumeric': 0.1425448185395715, 'fraction_numerical': 0.0, 'mean_word_length': 3.4, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '1118265', 'n_tokens_mistral': 689, 'n_tokens_neox': 657, 'n_words': 116}