<commit_before><!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery.parseXML demo</title>
  <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
  <style>
      .s8195 {float:left;
                  font-size:20px;    
                  border: 6px solid black; padding: 7px; border-radius: 10px;
                  background-color:lightgreen;
                  margin-left:20px;
        
      }
      .s8417 {float:right;
                  font-size:20px;
                  border: 6px solid black; padding: 7px; border-radius: 10px;
                  background-color:lightgreen;
                  margin-right:20px;
        
      }
      .s8415 {float:right;
                  font-size:20px;
                  border: 6px solid black; padding: 7px; border-radius: 10px;
                  background-color:lightgreen;
                  margin-right:50px;
        
      }
      .s8197 {float:left;
                  font-size:20px;
                  border: 6px solid black; padding: 7px; border-radius: 10px;
                  background-color:lightgreen;
                  margin-left:50px;
        
      }
      body {
        background-color:lightblue;
      }
  </style>
</head>
<body>
      <h1>Bus tracker</h1>

      <div class="s8417">Western & Addison</br></div>
      <div class="s8195">Western & Addison</br></div>
      <div class="s8415">Western & Roscoe</br></div>
      <div class="s8197">Western & Roscoe</br></div>
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
      

  
      <script>
        $(function() {
          
          var apiPassThruUrl = "https://polar-garden-75406.herokuapp.com/apiPassThru.php";
          
          var apiEndpoint= "http://www.ctabustracker.com/bustime/api/v2/getpredictions"
          $.ajax({
              url: apiPassThruUrl,
              dataType: "json",
              method: 'GET',
              data: {"apiEndpoint": apiEndpoint,
                      "key" : "M6twiGgbJhjATEYaRNsCGEEfN",
                      "stpid" : "8417,8195,8197,8415",
                      "format":"json"}
            }).done (function (data) {
              console.log(data);
             
              $.each(data["bustime-response"]["prd"], function(i,v) {
                var time = "";
                if (v.prdctdn == "DUE") {
                  time = "Due Now";
                } else if (v.prdctdn == "DLY") {
                  time = "Delayed" ;
                } else {
                  time = v.prdctdn + " Minutes";
                }
                 var html = (v.rtdir + " - Route #" + v.rt + " - " + time + "<br>");
                if (v.stpid == "8417") {
                  $(".s8417").append(html);
                } else if (v.stpid == "8195") {
                  $(".s8195").append(html);
                } else if (v.stpid == "8415") {
                  $(".s8415").append(html);
                } else {
                  $(".s8197").append(html);
                }
              })

            });
        });
            
  
</script>
 
</body>
</html><commit_msg>Bus Tracker<commit_after><!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Cta Bus Tracker</title>
  <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
  <style>
      .s8195 {float:left;
                  font-size:20px;    
                  border: 6px solid black; padding: 7px; border-radius: 10px;
                  background-color:lightgreen;
                  margin-left:20px;
        
      }
      .s8417 {float:right;
                  font-size:20px;
                  border: 6px solid black; padding: 7px; border-radius: 10px;
                  background-color:lightgreen;
                  margin-right:20px;
        
      }
      .s8415 {float:right;
                  font-size:20px;
                  border: 6px solid black; padding: 7px; border-radius: 10px;
                  background-color:lightgreen;
                  margin-right:50px;
        
      }
      .s8197 {float:left;
                  font-size:20px;
                  border: 6px solid black; padding: 7px; border-radius: 10px;
                  background-color:lightgreen;
                  margin-left:50px;
        
      }
      body {
        background-color:lightblue;
      }
  </style>
</head>
<body>
      <h1>Bus tracker</h1>

      <div class="s8417">Western & Addison</br></div>
      <div class="s8195">Western & Addison</br></div>
      <div class="s8415">Western & Roscoe</br></div>
      <div class="s8197">Western & Roscoe</br></div>
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
      

  
      <script>
        $(function() {
          
          var apiPassThruUrl = "https://polar-garden-75406.herokuapp.com/apiPassThru.php";
          
          var apiEndpoint= "http://www.ctabustracker.com/bustime/api/v2/getpredictions"
          $.ajax({
              url: apiPassThruUrl,
              dataType: "json",
              method: 'GET',
              data: {"apiEndpoint": apiEndpoint,
                      "key" : "M6twiGgbJhjATEYaRNsCGEEfN",
                      "stpid" : "8417,8195,8197,8415",
                      "format":"json"}
            }).done (function (data) {
              console.log(data);
             
              $.each(data["bustime-response"]["prd"], function(i,v) {
                var time = "";
                if (v.prdctdn == "DUE") {
                  time = "Due Now";
                } else if (v.prdctdn == "DLY") {
                  time = "Delayed" ;
                } else {
                  time = v.prdctdn + " Minutes";
                }
                 var html = (v.rtdir + " - Route #" + v.rt + " - " + time + "<br>");
                if (v.stpid == "8417") {
                  $(".s8417").append(html);
                } else if (v.stpid == "8195") {
                  $(".s8195").append(html);
                } else if (v.stpid == "8415") {
                  $(".s8415").append(html);
                } else {
                  $(".s8197").append(html);
                }
              })

            });
        });
            
  
</script>
 
</body>
</html>
{'fraction_non_alphanumeric': 0.1483912277893389, 'fraction_numerical': 0.0400192092204258, 'mean_word_length': 1.2819576333089846, 'pattern_counts': {'":': 4, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 6, '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': '5592049', 'n_tokens_mistral': 2134, 'n_tokens_neox': 1889, 'n_words': 317}