<commit_before>@Tags(const ['aot'])
@TestOn('browser')
import 'dart:async';

import 'package:angular/angular.dart';
import 'package:angular_test/angular_test.dart';
import 'package:angular_tour_of_heroes/app_component.dart';
import 'package:pageloader/objects.dart';
import 'package:test/test.dart';

class AppPO {
  @ByTagName('h1')
  PageLoaderElement _title;

  @FirstByCss('div')
  PageLoaderElement _id; // e.g. 'id: 1'

  @ByTagName('h2')
  PageLoaderElement _heroName; // e.g. 'Mr Freeze details!'

  @ByTagName('input')
  PageLoaderElement _input;

  Future<String> get title => _title.visibleText;

  Future<int> get heroId async {
    final idAsString = (await _id.visibleText).split(' ')[1];
    return int.parse(idAsString, onError: (_) => -1);
  }

  Future<String> get heroName async {
    final text = await _heroName.visibleText;
    return text.substring(0, text.lastIndexOf(' '));
  }

  Future type(String s) => _input.type(s);<commit_msg>Sync with 45f7986<commit_after>@Tags(const ['aot'])
@TestOn('browser')
import 'dart:async';

import 'package:angular/angular.dart';
import 'package:angular_test/angular_test.dart';
import 'package:angular_tour_of_heroes/app_component.dart';
import 'package:pageloader/objects.dart';
import 'package:test/test.dart';

class AppPO {
  @ByTagName('h1')
  PageLoaderElement _title;

  @FirstByCss('div')
  PageLoaderElement _id; // e.g. 'id: 1'

  @ByTagName('h2')
  PageLoaderElement _heroName; // e.g. 'Mr Freeze details!'

  @ByTagName('input')
  PageLoaderElement _input;

  Future<String> get title => _title.visibleText;

  Future<int> get heroId async {
    final idAsString = (await _id.visibleText).split(':')[1];
    return int.parse(idAsString, onError: (_) => -1);
  }

  Future<String> get heroName async {
    final text = await _heroName.visibleText;
    return text.substring(0, text.lastIndexOf(' '));
  }

  Future type(String s) => _input.type(s);
{'fraction_non_alphanumeric': 0.15260416666666668, 'fraction_numerical': 0.009375, 'mean_word_length': 4.929012345679013, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '723015', 'n_tokens_mistral': 701, 'n_tokens_neox': 682, 'n_words': 136}