<commit_before>"use strict"

const express = require('express')
const router = express.Router()
const browserslist = require('browserslist')
const caniuse = require('caniuse-db/data.json').agents
const GA_ID = process.env.GA_ID

/* GET home page. */
router.get('/', function(req, res) {
  const query = req.query.q || "> 5%"
  let bl = null
  try {
    bl = browserslist(query)
  } catch (e) {
    // Error
  }

  const compatible = {}

  if (bl) {
    bl.map((b) => {
      b = b.split(" ")
      const db = caniuse[b[0]]

      if(!compatible[db.type]) {
        compatible[db.type] = []
      }

      compatible[db.type].push({
        "version": b[1],
        "id": b[0],
        "name": db.browser,
        "logo": "/images/" + b[0] + ".png"<commit_msg>Defaulting to the browserslist default string<commit_after>"use strict"

const express = require('express')
const router = express.Router()
const browserslist = require('browserslist')
const caniuse = require('caniuse-db/data.json').agents
const GA_ID = process.env.GA_ID

/* GET home page. */
router.get('/', function(req, res) {
  const query = req.query.q || browserslist.defaults.join(", ")
  let bl = null
  try {
    bl = browserslist(query)
  } catch (e) {
    // Error
  }

  const compatible = {}

  if (bl) {
    bl.map((b) => {
      b = b.split(" ")
      const db = caniuse[b[0]]

      if(!compatible[db.type]) {
        compatible[db.type] = []
      }

      compatible[db.type].push({
        "version": b[1],
        "id": b[0],
        "name": db.browser,
        "logo": "/images/" + b[0] + ".png"
{'fraction_non_alphanumeric': 0.18210659898477158, 'fraction_numerical': 0.005710659898477157, 'mean_word_length': 2.5518018018018016, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 6, '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': '297856', 'n_tokens_mistral': 560, 'n_tokens_neox': 541, 'n_words': 122}