<commit_before><template>
  <div class="card">
    <div class="card-block">
      <h1 class="h3 card-title">Share a link on pnut.io</h1>
      <a :href="shareScript" class="btn btn-primary">Share on pnut.io</a>
    </div>
  </div>
</template>

<script>
const shareScript = `
javascript:(function(){var D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,W=window;if(C>A){G=Math.round((C/2)-(A/2))}W.open('/intent/post?text='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(W.location),'','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');}());
`

export default {
  data () {
    return {
      shareScript
    }
  },
  head: {
    title: 'Bookmarklet'
  }
}
</script><commit_msg>Fix bookmarklet<commit_after><template>
  <div class="card">
    <div class="card-block">
      <h1 class="h3 card-title">Share a link on pnut.io</h1>
      <a :href="shareScript" class="btn btn-primary">Share on pnut.io</a>
    </div>
  </div>
</template>

<script>
const shareScript = `
javascript:(function(){var D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,W=window;if(C>A){G=Math.round((C/2)-(A/2))}W.open('https://beta.unsweets.net/intent/post?text='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(W.location),'','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');}());
`

export default {
  data () {
    return {
      shareScript
    }
  },
  head: {
    title: 'Bookmarklet'
  }
}
</script>
{'fraction_non_alphanumeric': 0.24018029620090148, 'fraction_numerical': 0.0231809401159047, 'mean_word_length': 5.118110236220472, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, 'https://': 1, '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': '1851424', 'n_tokens_mistral': 629, 'n_tokens_neox': 622, 'n_words': 70}