<commit_before><?php
require("topsongs/SongParser.php");
require("topsongs/Song.php");
require("topsongs/YouTubeLinkFetch.php");
require("topsongs/PlaylistParser.php");
if(isset($_POST['playlist'])){
    $p = new PlayListParser;
    $p->fetchPlaylist($_POST['playlist']);
    die($p->dumpSongs('
                    <tr waiting="ID">
                    <td class="text-left small"><img class="album-art" src="IMG">
                    </td>
                    <td class="text-left">
                    <b>NAME - ARTIST</b>
                    </td>
                </tr>'));
}
elseif(isset($_GET["song"])){
    $f = new YouTubeLinkFetch($_GET["song"]);
    $f->sendQuery("http://gdata.youtube.com/feeds/api/videos?alt=json&max-results=1&q=");
    die($f->getLink());
}
else{
    $p = new SongParser;
    if(isset($_GET["q"])) $p->performSearch("http://itunes.apple.com/search?media=music&entity=song&limit=50&term=" . urlencode($_GET["q"]));<commit_msg>Fixed require...again<commit_after><?php
require "/app/topsongs/SongParser.php";
require "/app/topsongs/Song.php";
require "/app/topsongs/YouTubeLinkFetch.php";
require "/app/topsongs/PlaylistParser.php";
if(isset($_POST['playlist'])){
    $p = new PlayListParser;
    $p->fetchPlaylist($_POST['playlist']);
    die($p->dumpSongs('
                    <tr waiting="ID">
                    <td class="text-left small"><img class="album-art" src="IMG">
                    </td>
                    <td class="text-left">
                    <b>NAME - ARTIST</b>
                    </td>
                </tr>'));
}
elseif(isset($_GET["song"])){
    $f = new YouTubeLinkFetch($_GET["song"]);
    $f->sendQuery("http://gdata.youtube.com/feeds/api/videos?alt=json&max-results=1&q=");
    die($f->getLink());
}
else{
    $p = new SongParser;
    if(isset($_GET["q"])) $p->performSearch("http://itunes.apple.com/search?media=music&entity=song&limit=50&term=" . urlencode($_GET["q"]));
{'fraction_non_alphanumeric': 0.21229338842975207, 'fraction_numerical': 0.0030991735537190084, 'mean_word_length': 2.7906066536203524, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 31, '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': '4568974', 'n_tokens_mistral': 668, 'n_tokens_neox': 637, 'n_words': 80}