<commit_before>'use strict';

import hostNameFromUrl from '../hostNameFromUrl';

describe('hostNameFromUrl', () => {
    let urls = [
        {
            url: 'https://www.youtube.com/watch?v=_OVg8uov78I',
            hostname: 'www.youtube.com'
        },
        {
            url: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#For_of_iteration_and_destructuring',
            hostname: 'developer.mozilla.org'
        }
    ];

    it('returns hostname correctly', () => {
        for (let { url, hostname } of urls) {<commit_msg>fix hostNameFromUrl test<commit_after>'use strict';

import hostNameFromUrl from '../hostNameFromUrl';

describe('hostNameFromUrl', () => {
    let urls = [
        {
            url: 'https://www.youtube.com/watch?v=_OVg8uov78I',
            hostname: 'www.youtube.com'
        },
        {
            url: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#For_of_iteration_and_destructuring',
            hostname: 'developer.mozilla.org'
        },
        {
            url: 'www.google.com',
            hostname: 'www.google.com'
        }
    ];

    it('returns hostname correctly', () => {
        for (let { url, hostname } of urls) {
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.004658385093167702, 'mean_word_length': 2.3136246786632393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 6, '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': '5003099', 'n_tokens_mistral': 421, 'n_tokens_neox': 402, 'n_words': 58}