<commit_before>var Log = require('./log.js')

var CPBAPI = require('cpasbien-api')
var CpasbienApi = new CPBAPI()

function SearchT () {}

SearchT.prototype.search = function (query, callback) {
  Log.print('Search: ' + query)
  CpasbienApi.Search(query, {
    scope: 'tvshow',
    language: 'EN'
  }).then(function (data1) {
    data1.type = 'series'
    CpasbienApi.Search(query, {
      scope: 'tvshow',
      language: 'FR'
    }).then(function (data2) {
      data2.type = 'series'
      CpasbienApi.Search(query).then(function (data3) {
        data3.type = 'films'
        callback({
          tven: data1,
          tvfr: data2,
          mv: data3
        })
      })
    })
  })
}

SearchT.prototype.latest = function (callback) {
  CpasbienApi.Latest({
    scope: 'tvshow'
  }).then(function (data1) {
    data1.type = 'series'
    data1.items = data1.items.slice(0, 10)
    CpasbienApi.Latest().then(function (data2) {
      data2.type = 'films'
      data2.items = data2.items.slice(0, 10)
      callback({
        tv: data1,
        mv: data2
      })
    })
  })
}

var instaSearchT = new SearchT()
module.exports = instaSearchT<commit_msg>show more line when search torrent<commit_after>var Log = require('./log.js')

var CPBAPI = require('cpasbien-api')
var CpasbienApi = new CPBAPI()

function SearchT () {}

SearchT.prototype.search = function (query, callback) {
  Log.print('Search: ' + query)
  CpasbienApi.Search(query, {
    scope: 'tvshow',
    language: 'EN'
  }).then(function (data1) {
    data1.type = 'series'
    CpasbienApi.Search(query, {
      scope: 'tvshow',
      language: 'FR'
    }).then(function (data2) {
      data2.type = 'series'
      CpasbienApi.Search(query).then(function (data3) {
        data3.type = 'films'
        callback({
          tven: data1,
          tvfr: data2,
          mv: data3
        })
      })
    })
  })
}

SearchT.prototype.latest = function (callback) {
  CpasbienApi.Latest({
    scope: 'tvshow'
  }).then(function (data1) {
    data1.type = 'series'
    data1.items = data1.items.slice(0, 20)
    CpasbienApi.Latest().then(function (data2) {
      data2.type = 'films'
      data2.items = data2.items.slice(0, 20)
      callback({
        tv: data1,
        mv: data2
      })
    })
  })
}

var instaSearchT = new SearchT()
module.exports = instaSearchT
{'fraction_non_alphanumeric': 0.15100815100815101, 'fraction_numerical': 0.02145002145002145, 'mean_word_length': 2.4910179640718564, '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': '6366870', 'n_tokens_mistral': 857, 'n_tokens_neox': 839, 'n_words': 160}