<commit_before>$('body').append("<div id='ext-mouse-cursor'></div>");

var mouseMoveHighlight = $("#ext-mouse-cursor");
var mouseDownHighlight = $("#ext-mouse-cursor");


var mouseMoveColor = '000000';
var mouseMoveSize = 0;
var mouseMoveBorderColor = '000000';
var mouseMoveBorderSize = 0;

var mouseDownColor = '000000';
var mouseDownSize = 0;
var mouseDownBorderColor = '000000';
var mouseDownBorderSize = 0;



function mouseMove(e){
  var x = e.clientX-mouseMoveHighlight.outerWidth()/2;
  var y = e.clientY-mouseMoveHighlight.outerHeight()/2;

  chrome.storage.sync.get(null, function(response) {

    console.log(response);
    mouseMoveColor = response.mouseMoveColor;
    mouseMoveSize = parseInt(response.mouseMoveSize, 10);
    mouseMoveBorderColor = response.mouseMoveBorderColor;
    mouseMoveBorderSize = parseInt(response.mouseMoveBorderSize, 10);

    mouseDownColor = response.mouseDownColor;
    mouseDownSize = parseInt(response.mouseDownSize, 10);
    mouseDownBorderColor = response.mouseDownBorderColor;
    mouseDownBorderSize = parseInt(response.mouseDownBorderSize, 10);


    mouseMoveHighlight.css({
         'display': 'block',
         'z-index': '99999999',
         "pointer-events": 'none',
         "position": "fixed",
        //  "opacity": mouseMoveAlpha,
        //  "transition": "opacity 0.2s",
         "border-radius": "50%",
         "width": mouseMoveSize+'px',
         "height": mouseMoveSize+'px',
         "border":"none",
         "background-color": mouseMoveColor,
     });
  });

	mouseMoveHighlight.css({
			'top':y,
			'left':x,
		});
}


function mouseDown(e){
  var x = e.clientX-mouseDownHighlight.outerWidth()/2;
  var y = e.clientY-mouseDownHighlight.outerHeight()/2;

  chrome.storage.sync.get(null, function(response) {
    mouseMoveColor = response.mouseMoveColor;
    mouseMoveSize = parseInt(response.mouseMoveSize, 10);
    mouseMoveBorderColor = response.mouseMoveBorderColor;
    mouseMoveBorderSize = parseInt(response.mouseMoveBorderSize, 10);

    mouseDownColor = response.mouseDownColor;
    mouseDownSize = parseInt(response.mouseDownSize, 10);
    mouseDownBorderColor = response.mouseDownBorderColor;
    mouseDownBorderSize = parseInt(response.mouseDownBorderSize, 10);


    mouseDownHighlight.css({
         'display': 'block',
         'z-index': '99999999',
         "pointer-events": 'none',
         "position": "fixed",
        //  "opacity": "0.5",
        //  "transition": "opacity 0.2s",
         "border-radius": "50%",
         "width": mouseDownSize+'px',
         "height": mouseDownSize+'px',
         "border":"none",
         "background-color": mouseDownColor,
     });
  });

	mouseDownHighlight.css({
			'top':y,
			'left':x,
		});
}




















// function mouseDown(e){
//   var offset = mouseMoveHighlight.offset();mouseMoveHighlight<commit_msg>Added adjustable widths to the circles.<commit_after>$('body').append("<div id='ext-mouse-cursor'></div>");

var mouseMoveHighlight = $("#ext-mouse-cursor");
var mouseDownHighlight = $("#ext-mouse-cursor");


var mouseMoveColor = '000000';
var mouseMoveSize = 0;
var mouseMoveBorderColor = '000000';
var mouseMoveBorderSize = 0;

var mouseDownColor = '000000';
var mouseDownSize = 0;
var mouseDownBorderColor = '000000';
var mouseDownBorderSize = 0;



function mouseMove(e){
  var x = e.clientX-mouseMoveHighlight.outerWidth()/2;
  var y = e.clientY-mouseMoveHighlight.outerHeight()/2;

  chrome.storage.sync.get(null, function(response) {

    console.log(response);
    mouseMoveColor = response.mouseMoveColor;
    mouseMoveSize = parseInt(response.mouseMoveSize, 10);
    mouseMoveBorderColor = response.mouseMoveBorderColor;
    mouseMoveBorderSize = parseInt(response.mouseMoveBorderSize, 10);

    mouseDownColor = response.mouseDownColor;
    mouseDownSize = parseInt(response.mouseDownSize, 10);
    mouseDownBorderColor = response.mouseDownBorderColor;
    mouseDownBorderSize = parseInt(response.mouseDownBorderSize, 10);


    mouseMoveHighlight.css({
         'position': 'fixed',
         'z-index': '99999999',
         "pointer-events": 'none',
         "position": "fixed",
        //  "opacity": mouseMoveAlpha,
        //  "transition": "opacity 0.2s",
         "border-radius": "50%",
         "width": mouseMoveSize+'px',
         "height": mouseMoveSize+'px',
         "border": mouseMoveBorderSize+"px solid #29aae1",
         "background-color": mouseMoveColor,
     });
  });

	mouseMoveHighlight.css({
			'top':y,
			'left':x,
		});
}


function mouseDown(e){
  var x = e.clientX-mouseDownHighlight.outerWidth()/2;
  var y = e.clientY-mouseDownHighlight.outerHeight()/2;

  chrome.storage.sync.get(null, function(response) {
    mouseMoveColor = response.mouseMoveColor;
    mouseMoveSize = parseInt(response.mouseMoveSize, 10);
    mouseMoveBorderColor = response.mouseMoveBorderColor;
    mouseMoveBorderSize = parseInt(response.mouseMoveBorderSize, 10);

    mouseDownColor = response.mouseDownColor;
    mouseDownSize = parseInt(response.mouseDownSize, 10);
    mouseDownBorderColor = response.mouseDownBorderColor;
    mouseDownBorderSize = parseInt(response.mouseDownBorderSize, 10);


    mouseDownHighlight.css({
         'position': 'fixed',
         'z-index': '99999999',
         "pointer-events": 'none',
         "position": "fixed",
        //  "opacity": "0.5",
        //  "transition": "opacity 0.2s",
         "border-radius": "50%",
         "width": mouseDownSize+'px',
         "height": mouseDownSize+'px',
         "border": mouseDownBorderSize+"px solid #29aae1",
         "background-color": mouseDownColor,
     });
  });

	mouseDownHighlight.css({
			'top':y,
			'left':x,
		});
}




















// function mouseDown(e){
//   var offset = mouseMoveHighlight.offset();mouseMoveHighlight
{'fraction_non_alphanumeric': 0.1419454984477406, 'fraction_numerical': 0.026560883063125217, 'mean_word_length': 3.548235294117647, 'pattern_counts': {'":': 36, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '1141366', 'n_tokens_mistral': 1898, 'n_tokens_neox': 1723, 'n_words': 310}