<commit_before>var assert      = require('assert')
  , path        = require('path')
  , fs          = require('fs')
  , muk         = require('muk')
  , streamEqual = require('stream-equal')
  ;


var URL = 'http://www.youtube.com/watch?v='

  , id1 = '_HSylqgVYQI'
  , url1 = URL + id1
  , page1 = path.resolve(__dirname, 'files', 'video1.html')
  , info1 = JSON.parse(fs.readFileSync(
    path.resolve(__dirname, 'files', 'info1.json'), 'utf8'))

  , id2 = '_HSylqgyyyy'
  , url2 = URL + id2
  , page2 = path.resolve(__dirname, 'files', 'video2.html')

  , id3 = '_HSylqgVYQI'
  , url3 = URL + id3
  , video3 = path.resolve(__dirname, 'files', 'video3.flv')

  , video4 = path.resolve(__dirname, 'files', 'video4.flv')
  ;


describe('ytdl.getInfo()', function() {
  it('Returns correct video metainfo', function(done) {
    var ytdl = muk('..', {<commit_msg>style<commit_after>var assert      = require('assert');
var path        = require('path');
var fs          = require('fs');
var muk         = require('muk');
var streamEqual = require('stream-equal');


var url = 'http://www.youtube.com/watch?v=';
var id1 = '_HSylqgVYQI';
var url1 = url + id1;
var page1 = path.resolve(__dirname, 'files', 'video1.html');
var info1 = require('./files/info1.json');

var id2 = '_HSylqgyyyy';
var url2 = url + id2;
var page2 = path.resolve(__dirname, 'files', 'video2.html');

var id3 = '_HSylqgVYQI';
var url3 = url + id3;
var video3 = path.resolve(__dirname, 'files', 'video3.flv');

var video4 = path.resolve(__dirname, 'files', 'video4.flv');


describe('ytdl.getInfo()', function() {
  it('Returns correct video metainfo', function(done) {
    var ytdl = muk('..', {
{'fraction_non_alphanumeric': 0.18678678678678678, 'fraction_numerical': 0.023423423423423424, 'mean_word_length': 3.6022099447513813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6371840', 'n_tokens_mistral': 629, 'n_tokens_neox': 612, 'n_words': 133}