<commit_before>import UAParser from 'ua-parser-js';

export function getAdvancedBinding() {
  try {
    if (window.navigator && window.navigator.userAgent &&  typeof window.navigator.userAgent==='string') {
      if(window.navigator.userAgent.indexOf('Trident') !== -1) {
        return false;
      }
      var uastring = window.navigator.userAgent;
      var parser = new UAParser();
      parser.setUA(uastring);
      var parseUserAgent = parser.getResult();
      // console.debug({ parseUserAgent, });
      if (parseUserAgent.browser.name === 'Chrome' && parseUserAgent.os.name === 'Android' && parseInt(parseUserAgent.browser.version, 10) < 50) {
        return false;
      }<commit_msg>uaparser<commit_after>import UAParser from 'ua-parser-js';

export function getAdvancedBinding() {
  try {
    if (window.navigator && window.navigator.userAgent &&  typeof window.navigator.userAgent==='string') {
      if(window.navigator.userAgent.indexOf('Trident') !== -1) {
        return false;
      }
      var uastring = window.navigator.userAgent;
      var parser = new UAParser();
      parser.setUA(uastring);
      var parseUserAgent = parser.getResult();
      // console.debug({ parseUserAgent, });
      if ((parseUserAgent.browser.name === 'Chrome' || parseUserAgent.browser.name === 'Chrome WebView' ) && parseUserAgent.os.name === 'Android' && parseInt(parseUserAgent.browser.version, 10) < 50) {
        return false;
      }
{'fraction_non_alphanumeric': 0.1463245492371706, 'fraction_numerical': 0.006934812760055479, 'mean_word_length': 3.3595166163141994, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3519590', 'n_tokens_mistral': 448, 'n_tokens_neox': 433, 'n_words': 83}