<commit_before>'use strict';

var request = require('request');

var url = 'http://www.generalfil.es/files-a/';
var options = '/?filter=_Video_';

var gse = function(title, cb) {
  title = title.replace(/[^(\w)]+/gi, '-').toLowerCase();
  request(url+title+options, function (error, response, body) {
    if (!error && response.statusCode == 200) {
      var links = body.match(/gf_ShowDownloadLink\([\w',?=\/&]+/gi);
      links = links.map(function(link){
        return link.split(',').pop().replace(/'/gi, '');
      });
      console.log(links);
    }
  });
};


gse('American Dad! S01E01', function(err, result) {

});

//GENERALFIL.ES<commit_msg>:bicyclist: split host to separate variable<commit_after>'use strict';

var request = require('request');

var host = 'http://www.generalfil.es/';
var url = host + 'files-a/';
var options = '/?filter=_Video_';


var gse = function(title, cb) {
  title = title.replace(/[^(\w)]+/gi, '-').toLowerCase();
  request(url+title+options, function (error, response, body) {
    if (!error && response.statusCode == 200) {
      var links = body.match(/gf_ShowDownloadLink\([\w',?=\/&]+/gi);
      links = links.map(function(link){
        return link.split(',').pop().replace(/'/gi, '');
      });


      console.log(links);
    }
  });
};


gse('American Dad! S01E01', function(err, result) {

});

//GENERALFIL.ES
{'fraction_non_alphanumeric': 0.22263041880969875, 'fraction_numerical': 0.010286554004408524, 'mean_word_length': 3.495049504950495, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5656471', 'n_tokens_mistral': 487, 'n_tokens_neox': 467, 'n_words': 90}