<commit_before>// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.


   google.load("visualization", "1", {packages:["geochart"]});
 
 $(function() {

   google.setOnLoadCallback(drawMap);

    function drawMap() {
         // when document loads, grab the json
         $.getJSON('home/data', function(data) {
             // once grabbed, we run this callback
 
             // setup the new map and its variables
             var map = new google.visualization.DataTable();
                 map.addRows(data.length);  // length gives us the number of results in our returned data
          
         
          map.addColumn('number', 'LATITUDE', 'Latitude');
map.addColumn('number', 'LONGITUDE', 'Longitude');
map.addColumn({type: 'string', role: 'tooltip'})
// Won't use this column, but still must define it.

 
             // now we need to build the map data, loop over each result
             $.each(data, function(i,v) {
                 // set the values for both the name and the population
                 map.setValue(i, 0, v.lat);
                 map.setValue(i, 1, v.long);
                 map.setValue(i, 2, v.text);
             });

              var options = {
              	displayMode :"markers",
              	legend:"none",
              	sizeAxis: { minValue: 0, maxValue: 100 },
              	colorAxis: {minValue:1, maxValue:1,colors: ['#e74c3c','#8e44ad']},
              	datalessRegionColor: '#27ae60',
              	  backgroundColor: '#f1c40f',
              	  width:'1200px',
              	  height:'900px'

              };
             

             // finally, create the map!
             var geochart = new google.visualization.GeoChart(
               document.getElementById('content'));
                  geochart.draw(map, options);
    
 
         });
};
});



<commit_msg>added tweet text<commit_after>// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.


   google.load("visualization", "1", {packages:["geochart"]});
 
 $(function() {

   google.setOnLoadCallback(drawMap);

    function drawMap() {
         // when document loads, grab the json
         $.getJSON('home/data', function(data) {
             // once grabbed, we run this callback
 
             // setup the new map and its variables
             var map = new google.visualization.DataTable();
                 map.addRows(data.length);  // length gives us the number of results in our returned data
          
         
          map.addColumn('number', 'LATITUDE', 'Latitude');
map.addColumn('number', 'LONGITUDE', 'Longitude');
map.addColumn({type: 'string', role: 'tooltip'})
// Won't use this column, but still must define it.

 
             // now we need to build the map data, loop over each result
             $.each(data, function(i,v) {
                 // set the values for both the name and the population
                 map.setValue(i, 0, v.lat);
                 map.setValue(i, 1, v.long);
                 map.setValue(i, 2, v.tweet);
             });

              var options = {
              	displayMode :"markers",
              	legend:"none",
              	sizeAxis: { minValue: 0, maxValue: 100 },
              	colorAxis: {minValue:1, maxValue:1,colors: ['#e74c3c','#8e44ad']},
              	datalessRegionColor: '#27ae60',
              	  backgroundColor: '#f1c40f',
              	  width:'1200px',
              	  height:'900px'

              };
             

             // finally, create the map!
             var geochart = new google.visualization.GeoChart(
               document.getElementById('content'));
                  geochart.draw(map, options);
    
 
         });
};
});




{'fraction_non_alphanumeric': 0.1193565127140633, 'fraction_numerical': 0.015568240788790867, 'mean_word_length': 1.7359829666430093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '219183', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1022, 'n_words': 300}