<commit_before>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
      <link href='http://fonts.googleapis.com/css?family=Oldenburg' rel='stylesheet' type='text/css'>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>TuneTravelr</title>
        <meta name="description" content="">

        <!-- Behavioral Meta Data -->
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

        <link rel="stylesheet/less" type="text/css" href="../static/js/metronomik-player/m-player.less" />

        <link rel="stylesheet" href="../static/css/bootstrap.min.css">
        <link rel="stylesheet" href="../static/css/bootstrap-theme.min.css">


        <link href="../static/css/toastr.css" rel="stylesheet"/>
        <link rel="stylesheet" href="../static/css/main.css">
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.js"></script>

        <script src="../static/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
        <script type = "text/javascript">


        var Tune = {};
        var rdioIDs = [];
        Tune.tracks = [];



        function getArtistData(data){

          if(Tune.tracks || Tune.rdio) {
            Tune.tracks = [];
            Tune.rdio = [];
          }
          R.player.queue.clear();
            Tune.response = data.response;
            Tune.artists = data.response.artists;
            var regEx = /[^:]+$/;
            var name;
            var id;
            for(var artist in Tune.artists) {
              name = Tune.artists[artist].name;
              id = Tune.artists[artist].foreign_ids[0].foreign_id.match(regEx).toString();
              rdioIDs.push({"name":name, "id":id});

            }
            Tune.rdio = rdioIDs;

                for(var i = 0; i < Tune.rdio.length; i++) {
                    R.request({
                        method: "getTracksForArtist",
                        content: {
                          artist: Tune.rdio[i].id
                        },
                        success: function(response) {
                            Tune.tracks.push(response.result[0].key);

                        },

                        error: function(response) {
                            console.log("error: " + reponse.message);
                        }
                      });

                }
            }






    </script>
    </head>
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->

    <script src="https://www.rdio.com/api/api.js?client_id=Of3Y_P29zCgZzjVPUpWb7g"></script>

    <div id="container" class="container">

       <!-- Main jumbotron for a primary marketing message or call to action -->
        <div class="jumbotron" id="jumbo">
          <div class="container">
<commit_msg>Fixed playback for heroku<commit_after>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
      <link href='http://fonts.googleapis.com/css?family=Oldenburg' rel='stylesheet' type='text/css'>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>TuneTravelr</title>
        <meta name="description" content="">

        <!-- Behavioral Meta Data -->
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

        <link rel="stylesheet/less" type="text/css" href="../static/js/metronomik-player/m-player.less" />

        <link rel="stylesheet" href="../static/css/bootstrap.min.css">
        <link rel="stylesheet" href="../static/css/bootstrap-theme.min.css">


        <link href="../static/css/toastr.css" rel="stylesheet"/>
        <link rel="stylesheet" href="../static/css/main.css">
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.js"></script>

        <script src="../static/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
        <script type = "text/javascript">


        var Tune = {};
        var rdioIDs = [];
        Tune.tracks = [];



        function getArtistData(data){

          console.log("gets here");

            if(Tune.tracks.length > 0) {
              Tune.tracks.length = 0;
              rdioIDs.length = 0;
              Tune.artists.length = 0;
              Tune.rdio.length = 0;
              R.player.queue.clear();
              toastr.success("Next songs will be updated to reflect","Settings Changed!");
            }
            Tune.response = data.response;
            Tune.artists = data.response.artists;
            var regEx = /[^:]+$/;
            var name;
            var id;
            for(var artist in Tune.artists) {
              console.log(artist);
              name = Tune.artists[artist].name;
              id = Tune.artists[artist].foreign_ids[0].foreign_id.match(regEx).toString();
              rdioIDs.push({"name":name, "id":id});

            }
            Tune.rdio = rdioIDs;

                for(var i = 0; i < Tune.rdio.length; i++) {
                    R.request({
                        method: "getTracksForArtist",
                        content: {
                          artist: Tune.rdio[i].id
                        },
                        success: function(response) {
                            Tune.tracks.push(response.result[0].key);
                            R.player.queue.add(response.result[0].key)

                        },

                        error: function(response) {
                            console.log("error: " + reponse.message);
                        }
                      });

                }





          }










    </script>
    </head>
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->

    <script src="https://www.rdio.com/api/api.js?client_id=Of3Y_P29zCgZzjVPUpWb7g"></script>

    <div id="container" class="container">

       <!-- Main jumbotron for a primary marketing message or call to action -->
        <div class="jumbotron" id="jumbo">
          <div class="container">

{'fraction_non_alphanumeric': 0.1715035931453842, 'fraction_numerical': 0.009673852957435046, 'mean_word_length': 1.7674952198852771, 'pattern_counts': {'":': 4, '<': 113, '<?xml version=': 0, '>': 110, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '2090282', 'n_tokens_mistral': 2346, 'n_tokens_neox': 2166, 'n_words': 397}