<commit_before>"use strict";

let _decodeAudioPromise = null;
export function isCompatible() {
    try {
        let audioContext = window.AudioContext || window.webkitAudioContext;
        if (!audioContext) {
            console.error("No audio context.");
            return false;
        }
        if (!window.AnalyserNode) {
            console.error("No AnalyserNode.");
            return false;
        }
        if (!AnalyserNode.prototype.getFloatTimeDomainData) {
            console.error("No AnalyserNode.getFloatTimeDomainData.");
            return false;
        }
        if (!window.RTCPeerConnection) {
            console.error("No WebRTC support.");
            return false;
        }
        if (!RTCPeerConnection.prototype.createDataChannel) {
            console.error("No RTC data channel support.");
            return false;
        }
        if (!window.Promise) {
            console.error("No native Promise support.");
            return false;<commit_msg>Should probably check for fetch() too.<commit_after>"use strict";

let _decodeAudioPromise = null;
export function isCompatible() {
    try {
        let audioContext = window.AudioContext || window.webkitAudioContext;
        if (!audioContext) {
            console.error("No audio context.");
            return false;
        }
        if (!window.AnalyserNode) {
            console.error("No AnalyserNode.");
            return false;
        }
        if (!AnalyserNode.prototype.getFloatTimeDomainData) {
            console.error("No AnalyserNode.getFloatTimeDomainData.");
            return false;
        }
        if (!window.RTCPeerConnection) {
            console.error("No WebRTC support.");
            return false;
        }
        if (!RTCPeerConnection.prototype.createDataChannel) {
            console.error("No RTC data channel support.");
            return false;
        }
        if (!window.Promise) {
            console.error("No native Promise support.");
            return false;
        }
        if (!window.fetch) {
            console.error("No fetch support.");
            return false;
{'fraction_non_alphanumeric': 0.1052880075542965, 'fraction_numerical': 0.0, 'mean_word_length': 1.8829931972789116, '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': '6569267', 'n_tokens_mistral': 528, 'n_tokens_neox': 520, 'n_words': 123}