<commit_before>$(document).ready(function(){
  //init html/js
  //slider bar functions
  $("#slider").slider(); //create slider bar
  var speed = 0;
  $("#slider").mousemove(function(){
    speed = +$('#slider').slider("option", "value");
    $("#speed_value").text("×"+speed);
  });
  $("#slider").hover(function(){
    $("#label").slideToggle();
    speed = +$('#slider').slider("option", "value");
    $("#speed_value").text("×"+speed);
  });
  //button clicked
  var geocentric = false;
  var drawpath = false; // set if draw the path
  $("#draw").click(function(){
	ctx2.clearRect ( 0 , 0 , canvas_layer2.width , canvas_layer2.height );
    if(drawpath == false){
      drawpath = true;
      $("#draw").text("Erase Path");
    }
    else {
      drawpath = false;
      $("#draw").text("Draw Path");
    }
  });
  $("#system").click(function(){
	ctx2.clearRect ( 0 , 0 , canvas_layer2.width , canvas_layer2.height );
    if(geocentric == false){
      geocentric = true;
      $("#system").text("Geocentric");
    }
    else {
      geocentric = false;
      $("#system").text("Heliocentric");
    }
  });
  //canvas_layer1 background
  var canvas_layer1 = document.getElementById("canvas_layer1");
  var canvas_layer2 = document.getElementById("canvas_layer2");
  ctx1 = canvas_layer1.getContext("2d");
  ctx2 = canvas_layer2.getContext("2d");
  var backimg = document.getElementById("background");

  //draw Solar system
  var number_planet = 9;
  var planets = new Array(number_planet);
  var maximagesize = 15; // same width and heigth
  var center_x = canvas_layer1.width/2 - maximagesize/2;
  var center_y = canvas_layer1.height/2 - maximagesize/2;
  var planet_distance = 30;
  var timer = 0;
  var interval_time = 100;
  var earth_year = 6000; // how long a earth year on this canvas_layer1, unit is ms
  var orbit_portion = earth_year/interval_time;
  var cycle_H = [0.000001,0.24,0.62,1,1.88,11.86,29.46,84,165]; //first element should be zero, set to 0.000001 is to avoid divid by zero
  var cycle_G = [1,0.24,0.62,0.000001,1.88,11.86,29.46,84,165];
  var orbit_color = ["red","ivory","gold","deepskyblue","brown","darkcyan","khaki","powderblue","aqua"]    
<commit_msg>Update solarsystem.js<commit_after>$(document).ready(function(){
  //init html/js
  //slider bar functions
  $("#slider").slider(); //create slider bar
  var speed = 0;
  $("#slider").mousemove(function(){
    speed = +$('#slider').slider("option", "value");
    $("#speed_value").text("×"+speed);
  });
  $("#slider").hover(function(){
    $("#label").slideToggle();
    speed = +$('#slider').slider("option", "value");
    $("#speed_value").text("×"+speed);
  });
  //button clicked
  var geocentric = false;
  var drawpath = false; // set if draw the path
  $("#draw").click(function(){
	ctx2.clearRect ( 0 , 0 , canvas_layer2.width , canvas_layer2.height );
    if(drawpath == false){
      drawpath = true;
      $("#draw").text("Erase Path");
    }
    else {
      drawpath = false;
      $("#draw").text("Draw Path");
    }
  });
  $("#system").click(function(){
	ctx2.clearRect ( 0 , 0 , canvas_layer2.width , canvas_layer2.height );
    if(geocentric == false){
      geocentric = true;
      $("#system").text("Geocentric");
    }
    else {
      geocentric = false;
      $("#system").text("Heliocentric");
    }
  });
  //canvas_layer1 background
  var canvas_layer1 = document.getElementById("canvas_layer1");
  var canvas_layer2 = document.getElementById("canvas_layer2");
  ctx1 = canvas_layer1.getContext("2d");
  ctx2 = canvas_layer2.getContext("2d");
  var backimg = document.getElementById("background");

  //draw Solar system
  var number_planet = 9;
  var planets = new Array(number_planet);
  var maximagesize = 15; // same width and heigth
  var center_x = canvas_layer1.width/2 - maximagesize/2;
  var center_y = canvas_layer1.height/2 - maximagesize/2;
  var planet_distance = 30;
  var timer = 0;
  var interval_time = 100;
  var earth_year = 60000; // how long a earth year on this canvas_layer1, unit is ms
  var orbit_portion = earth_year/interval_time;
  var cycle_H = [0.000001,0.24,0.62,1,1.88,11.86,29.46,84,165]; //first element should be zero, set to 0.000001 is to avoid divid by zero
  var cycle_G = [1,0.24,0.62,0.000001,1.88,11.86,29.46,84,165];
  var orbit_color = ["red","ivory","gold","deepskyblue","brown","darkcyan","khaki","powderblue","aqua"]    

{'fraction_non_alphanumeric': 0.18275154004106775, 'fraction_numerical': 0.04996577686516085, 'mean_word_length': 3.7704026115342764, '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': '2437445', 'n_tokens_mistral': 1563, 'n_tokens_neox': 1483, 'n_words': 317}