<commit_before>var imagetoShow;
var testtoShare;
var canvas;
canvas = document.getElementById("myCanvas")

var data = canvas.toDataURL("image/png");
console.log(data);


function getResult(pos, testId){
  imagetoShow = pos;
  testtoShare = testId;
}



function ShareTest() {
  FB.ui(
   {
     method: 'share_open_graph',
	   action_type: 'og.likes',
	   action_properties: JSON.stringify({
     object:{
       'og:url': 'https://eziofilho.github.io/new_layout/'+testtoShare+'.html',
       'og:title': 'Here my custom title',
       'og:description': 'here custom description',
       'og:image': 'image/png'
	}

	})
   }, function(response){

    console.log(response);

   });
  }

  window.fbAsyncInit = function() {
    FB.init({
      appId      : '334298370360424',
      xfbml      : true,
      version    : 'v2.10'
    });
    FB.AppEvents.logPageView();<commit_msg>share21<commit_after>var imagetoShow;
var testtoShare;
var canvas;
canvas = document.getElementById("myCanvas")

var data = canvas.toDataURL();
console.log(data);


function getResult(pos, testId){
  imagetoShow = pos;
  testtoShare = testId;
}



function ShareTest() {
  FB.ui(
   {
     method: 'share_open_graph',
	   action_type: 'og.likes',
	   action_properties: JSON.stringify({
     object:{
       'og:url': 'https://eziofilho.github.io/new_layout/'+testtoShare+'.html',
       'og:title': 'Here my custom title',
       'og:description': 'here custom description',
       'og:image': data.image
	}

	})
   }, function(response){

    console.log(response);

   });
  }

  window.fbAsyncInit = function() {
    FB.init({
      appId      : '334298370360424',
      xfbml      : true,
      version    : 'v2.10'
    });
    FB.AppEvents.logPageView();
{'fraction_non_alphanumeric': 0.15362485615650173, 'fraction_numerical': 0.02186421173762946, 'mean_word_length': 3.025462962962963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1849198', 'n_tokens_mistral': 637, 'n_tokens_neox': 591, 'n_words': 107}