<commit_before>// @flow

/*
 * Monkey-patch RN's URL global.
 *
 * A history: get-urls@8 requires normalize-url@2, which uses the new
 * window.URL global object for URL parsing.
 *
 * RN provides a global URL object… but only puts two things into it.
 *
 * The JSDOM project maintains a browser-compatible URL module.
 *
 * Thus, we stick that into the global namespace, and monkey-patch RN's
 * two non-standard methods onto it so as to not break either things that
 * expect web!URL or RN!URL objects.
 */

import {URL, URLSearchParams} from 'whatwg-url'

let RNURL = global.URL;

URL.createObjectURL = RNURL.createObjectURL;
URL.revokeObjectURL = RNURL.revokeObjectURL;

global.URL = URL;
global.URLSearchParams = URLSearchParams;<commit_msg>prettier: Fix code that slipped through the cracks<commit_after>// @flow

/*
 * Monkey-patch RN's URL global.
 *
 * A history: get-urls@8 requires normalize-url@2, which uses the new
 * window.URL global object for URL parsing.
 *
 * RN provides a global URL object… but only puts two things into it.
 *
 * The JSDOM project maintains a browser-compatible URL module.
 *
 * Thus, we stick that into the global namespace, and monkey-patch RN's
 * two non-standard methods onto it so as to not break either things that
 * expect web!URL or RN!URL objects.
 */

import {URL, URLSearchParams} from 'whatwg-url'

let RNURL = global.URL

URL.createObjectURL = RNURL.createObjectURL
URL.revokeObjectURL = RNURL.revokeObjectURL

global.URL = URL
global.URLSearchParams = URLSearchParams
{'fraction_non_alphanumeric': 0.08661417322834646, 'fraction_numerical': 0.0026246719160104987, 'mean_word_length': 4.049668874172186, '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': '5087009', 'n_tokens_mistral': 481, 'n_tokens_neox': 453, 'n_words': 180}