<commit_before>const o = require('os')
const platform = process.platform == 'android' ? 'linux' : process.platform // Termux fix
// platform = process.platform === 'linux' && o.release().match(/^2./) ? 'linux2' : platform // OpenVZ kernels

const dir = `bin/${platform}/${process.arch}`
const bin = `${dir}/ffmpeg${platform === 'win32' ? '.exe' : ''}`
const probeBin = `${dir}/ffprobe${platform === 'win32' ? '.exe' : ''}`
const path = require('path')

module.exports = {
  download: require('./downloader'),
  path: platform === 'freebsd' ? '/usr/local/bin/ffmpeg' : path.join(__dirname, bin),
  probePath: platform === 'freebsd' ? '/usr/local/bin/ffprobe' : path.join(__dirname, probeBin)
}<commit_msg>Add OpenBSD fallback<commit_after>const o = require('os')
const platform = process.platform == 'android' ? 'linux' : process.platform // Termux fix
const unsupportedPlatforms = [
  'freebsd',
  'openbsd'
]
const isUnsupported = (plat) => unsupportedPlatforms.indexOf(plat) >= 0

const dir = `bin/${platform}/${process.arch}`
const bin = `${dir}/ffmpeg${platform === 'win32' ? '.exe' : ''}`
const probeBin = `${dir}/ffprobe${platform === 'win32' ? '.exe' : ''}`
const path = require('path')

module.exports = {
  download: require('./downloader'),
  path: isUnsupported(platform) ? '/usr/local/bin/ffmpeg' : path.join(__dirname, bin),
  probePath: isUnsupported(platform) ? '/usr/local/bin/ffprobe' : path.join(__dirname, probeBin)
}
{'fraction_non_alphanumeric': 0.2096100278551532, 'fraction_numerical': 0.00766016713091922, 'mean_word_length': 4.889344262295082, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4677657', 'n_tokens_mistral': 480, 'n_tokens_neox': 475, 'n_words': 101}