<commit_before>#!/bin/bash
set -ex

PATH="$HOME/depot_tools:$PATH"
cd ..

PATH=$(pwd)/third_party/dart/tools/sdks/dart-sdk/bin:$PATH

# Build the dart UI files
flutter/tools/gn --unoptimized
ninja -C out/host_debug_unopt generate_dart_ui

# Analyze the dart UI
flutter/ci/analyze.sh
flutter/ci/licenses.sh

# Check that dart libraries conform
cd flutter/web_sdk
pub get
cd ..
dart web_sdk/test/api_conform_test.dart<commit_msg>Disable the web SDK API conformance test until the analyzer is updated for Dart 2.10 (#20023)<commit_after>#!/bin/bash
set -ex

PATH="$HOME/depot_tools:$PATH"
cd ..

PATH=$(pwd)/third_party/dart/tools/sdks/dart-sdk/bin:$PATH

# Build the dart UI files
flutter/tools/gn --unoptimized
ninja -C out/host_debug_unopt generate_dart_ui

# Analyze the dart UI
flutter/ci/analyze.sh
flutter/ci/licenses.sh

# Check that dart libraries conform
cd flutter/web_sdk
pub get
cd ..
# TODO(jsimmons): reenable this when the analyzer has been updated for Dart 2.10
# dart web_sdk/test/api_conform_test.dart
{'fraction_non_alphanumeric': 0.11012782694198624, 'fraction_numerical': 0.010816125860373648, 'mean_word_length': 4.593406593406593, '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': '7094077', 'n_tokens_mistral': 406, 'n_tokens_neox': 372, 'n_words': 96}