<commit_before>export var name = '射手网 (伪)'

export function search (name) {
  let token = window.app.config.subtitleServices.shooterFake.token
  return window.fetch(`http://api.assrt.net/v1/sub/search?token=${token}&q=${name}&cnt=10`)
  .then(res => res.json())
  .then(res => {
    if (res.sub.subs.length) return res.sub.subs
    else return []
  })
  .then(subs => {
    subs.forEach(sub => {
      sub.filelist = []
    })
    return subs
  })
}

export function detail (id) {<commit_msg>Add `no_muxer=1` for filename searching<commit_after>export var name = '射手网 (伪)'

export function search (name) {
  let token = window.app.config.subtitleServices.shooterFake.token
  return window.fetch(`http://api.assrt.net/v1/sub/search?token=${token}&q=${name}&cnt=10&no_muxer=1`)
  .then(res => res.json())
  .then(res => {
    if (res.sub.subs.length) return res.sub.subs
    else return []
  })
  .then(subs => {
    subs.forEach(sub => {
      sub.filelist = []
    })
    return subs
  })
}

export function detail (id) {
{'fraction_non_alphanumeric': 0.1772771792360431, 'fraction_numerical': 0.007835455435847209, 'mean_word_length': 3.348936170212766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6121102', 'n_tokens_mistral': 381, 'n_tokens_neox': 380, 'n_words': 68}