<commit_before>use v6;

use HTTP::UserAgent;

use Test;

plan 2;

try require ::("IO::Socket::SSL");
if ::('IO::Socket::SSL') ~~ Failure {
    skip-rest("IO::Socket::SSL not available");
    exit 0;
}

throws-like 'use HTTP::UserAgent; my $ssl = HTTP::UserAgent.new(:throw-exceptions); $ssl.get("https://httpbin.org/status/403")', X::HTTP::Response, message => "Response error: '403 Forbidden'";

my $url = 'https://github.com/';

my $ssl = HTTP::UserAgent.new;<commit_msg>Temporarily TODO the test as OpenSSL issue<commit_after>use v6;

use HTTP::UserAgent;

use Test;

plan 2;

try require ::("IO::Socket::SSL");
if ::('IO::Socket::SSL') ~~ Failure {
    skip-rest("IO::Socket::SSL not available");
    exit 0;
}

todo "OpenSSL is having trouble with httpbin.org";
throws-like 'use HTTP::UserAgent; my $ssl = HTTP::UserAgent.new(:throw-exceptions); $ssl.get("https://httpbin.org/status/403")', X::HTTP::Response, message => "Response error: '403 Forbidden'";

my $url = 'https://github.com/';

my $ssl = HTTP::UserAgent.new;
{'fraction_non_alphanumeric': 0.2046783625730994, 'fraction_numerical': 0.017543859649122806, 'mean_word_length': 5.300613496932515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '6223489', 'n_tokens_mistral': 371, 'n_tokens_neox': 359, 'n_words': 88}