<commit_before>// Copyright (c) 2012, 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.

/// This library contains testing classes for the HTTP library.
///
/// The [MockClient] class is a drop-in replacement for `http.Client` that
/// allows test code to set up a local request handler in order to fake a server
/// that responds to HTTP requests:
///
///     import 'dart:convert';
///     import 'package:http/testing.dart';
///
///     var client = new MockClient((request) {
///       if (request.url.path != "/data.json") {
///         return new Response("", 404);
///       }
///       return new Response(JSON.encode({
///         'numbers': [1, 4, 15, 19, 214]
///       }, 200, headers: {
///         'content-type': 'application/json'
///       });
///     };
export 'src/mock_client.dart';<commit_msg>Fix http.testing docs example<commit_after>// Copyright (c) 2012, 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.

/// This library contains testing classes for the HTTP library.
///
/// The [MockClient] class is a drop-in replacement for `http.Client` that
/// allows test code to set up a local request handler in order to fake a server
/// that responds to HTTP requests:
///
///     import 'dart:convert';
///     import 'package:http/testing.dart';
///
///     var client = new MockClient((request) async {
///       if (request.url.path != "/data.json") {
///         return new Response("", 404);
///       }
///       return new Response(
///           JSON.encode({
///             'numbers': [1, 4, 15, 19, 214]
///           }),
///           200,
///           headers: {'content-type': 'application/json'});
///     });
export 'src/mock_client.dart';
{'fraction_non_alphanumeric': 0.15572519083969466, 'fraction_numerical': 0.019338422391857506, 'mean_word_length': 2.2071778140293636, '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': '1253916', 'n_tokens_mistral': 579, 'n_tokens_neox': 536, 'n_words': 218}