<commit_before>// Copyright (c) 2016, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:async';
import 'dart:html';

import 'package:angular/angular.dart';
import 'package:observable/observable.dart';
import 'package:angular_components/button_decorator/button_decorator.dart';
import 'package:angular_components/material_icon/material_icon.dart';
import 'package:angular_components/material_menu/menu_root.dart';
import 'package:angular_components/model/menu/menu_item_affix.dart';
import 'package:angular_components/model/ui/icon.dart';

/// Renders the list of menu item affixes.
///
/// An affix can be a text or an icon component. This component also listens
/// on any affix list changes.
@Component(
  selector: 'menu-item-affix-list',
  changeDetection: ChangeDetectionStrategy.OnPush,
  directives: const [
    ButtonDirective,
    MaterialIconComponent,
    NgFor,
    NgIf,
  ],
  templateUrl: 'menu_item_affix_list.html',
  styleUrls: const ['menu_item_affix_list.scss.css'],
  // TODO(google): Change preserveWhitespace to false to improve codesize.
  preserveWhitespace: true,
  // TODO(google): Change to `Visibility.local` to reduce code size.
  visibility: Visibility.all,
)
class MenuItemAffixListComponent implements OnDestroy {
  final ChangeDetectorRef _cdRef;

  StreamSubscription _itemChangeStreamSub;
<commit_msg>Remove visibility.all from @Component annotations. This is potentially BREAKING change.<commit_after>// Copyright (c) 2016, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:async';
import 'dart:html';

import 'package:angular/angular.dart';
import 'package:observable/observable.dart';
import 'package:angular_components/button_decorator/button_decorator.dart';
import 'package:angular_components/material_icon/material_icon.dart';
import 'package:angular_components/material_menu/menu_root.dart';
import 'package:angular_components/model/menu/menu_item_affix.dart';
import 'package:angular_components/model/ui/icon.dart';

/// Renders the list of menu item affixes.
///
/// An affix can be a text or an icon component. This component also listens
/// on any affix list changes.
@Component(
  selector: 'menu-item-affix-list',
  changeDetection: ChangeDetectionStrategy.OnPush,
  directives: const [
    ButtonDirective,
    MaterialIconComponent,
    NgFor,
    NgIf,
  ],
  templateUrl: 'menu_item_affix_list.html',
  styleUrls: const ['menu_item_affix_list.scss.css'],
  // TODO(google): Change preserveWhitespace to false to improve codesize.
  preserveWhitespace: true,
)
class MenuItemAffixListComponent implements OnDestroy {
  final ChangeDetectorRef _cdRef;

  StreamSubscription _itemChangeStreamSub;

{'fraction_non_alphanumeric': 0.09584880188997638, 'fraction_numerical': 0.0026999662504218697, 'mean_word_length': 5.136645962732919, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1679813', 'n_tokens_mistral': 894, 'n_tokens_neox': 885, 'n_words': 251}