<commit_before>package main

import "strings"

const textEmailTemplate = `%s

Cheers!
https://www.onecontact.link/

Click on the following link to unsubscribe from any future messages:
%%unsubscribe_url%%
`

var htmlEmailTemplate = strings.Replace(strings.Replace(`
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
  background-color: #eee;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 1em;
}

a {
  color: #1C90F3;
}

table, tr, td {
  border-spacing: 0;
  padding: 0;
  margin: 0;
}

.container {
  background-color: #fff;
  margin: 0 auto;
  max-width: 95%;
  /*width: 30em;*/
}

.header td {
  text-align: center;
  margin: 0;
  background-color: #1C90F3;
  width: 100%;
  color: white;
  font-size: 20px;
}

.header td a {
  color: white;
  text-decoration: none;
}

td {
  padding: 20px;
}

.footer td {
  text-align: center;
  margin: 0;
  background-color: #666;
  width: 100%;
  color: #ddd;
  font-size: 12px;
  padding: 0px 20px;
}

.footer a {
  color: #ddd;
}

.unsubscribe {
  line-height: 3;
  font-size: 12px;
  text-align: center;
  color: #888;
}

.unsubscribe a {
  color: #888;
}
</style>
</head>

<body style="background-color: #eee;font-family: sans-serif;font-size: 14px;line-height: 1.5;padding: 1em;">
<table class="container" style="border-spacing: 0;padding: 0;margin: 0 auto;background-color: #fff;max-width: 95%;">
  <tr class="header" style="border-spacing: 0;padding: 0;margin: 0;"><td style="border-spacing: 0;padding: 20px;margin: 0;text-align: center;background-color: #1C90F3;width: 100%;color: white;font-size: 20px;"><a href="#" style="color: white;text-decoration: none;">OneContact.Link</a></td></tr>
  <tr style="border-spacing: 0;padding: 0;margin: 0;"><td style="border-spacing: 0;padding: 20px;margin: 0;">__s__
  <p>Cheers,<br>OneContactLink</p>
  </td></tr>
  <tr class="footer" style="border-spacing: 0;padding: 0;margin: 0;"><td style="border-spacing: 0;padding: 0px 20px;margin: 0;text-align: center;background-color: #666;width: 100%;color: #ddd;font-size: 12px;">
    <p>
      <a href="https://www.onecontact.link" style="color: #ddd;">Home</a>&nbsp;&middot;&nbsp;
      <a href="https://www.onecontact.link/app" style="color: #ddd;">Manage</a>
    </p>
  </td></tr>
</table>

<div class="unsubscribe" style="line-height: 3;font-size: 12px;text-align: center;color: #888;"><a href="%unsubscribe_url%" style="color: #888;">Unsubscribe</a> from these emails.</div>
</body>
</html>
`, "%", "%%", -1), "__s__", "%s", -1)<commit_msg>fix email header link<commit_after>package main

import "strings"

const textEmailTemplate = `%s

Cheers!
https://www.onecontact.link/

Click on the following link to unsubscribe from any future messages:
%%unsubscribe_url%%
`

var htmlEmailTemplate = strings.Replace(strings.Replace(`
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
  background-color: #eee;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 1em;
}

a {
  color: #1C90F3;
}

table, tr, td {
  border-spacing: 0;
  padding: 0;
  margin: 0;
}

.container {
  background-color: #fff;
  margin: 0 auto;
  max-width: 95%;
  /*width: 30em;*/
}

.header td {
  text-align: center;
  margin: 0;
  background-color: #1C90F3;
  width: 100%;
  color: white;
  font-size: 20px;
}

.header td a {
  color: white;
  text-decoration: none;
}

td {
  padding: 20px;
}

.footer td {
  text-align: center;
  margin: 0;
  background-color: #666;
  width: 100%;
  color: #ddd;
  font-size: 12px;
  padding: 0px 20px;
}

.footer a {
  color: #ddd;
}

.unsubscribe {
  line-height: 3;
  font-size: 12px;
  text-align: center;
  color: #888;
}

.unsubscribe a {
  color: #888;
}
</style>
</head>

<body style="background-color: #eee;font-family: sans-serif;font-size: 14px;line-height: 1.5;padding: 1em;">
<table class="container" style="border-spacing: 0;padding: 0;margin: 0 auto;background-color: #fff;max-width: 95%;">
  <tr class="header" style="border-spacing: 0;padding: 0;margin: 0;"><td style="border-spacing: 0;padding: 20px;margin: 0;text-align: center;background-color: #1C90F3;width: 100%;color: white;font-size: 20px;"><a href="https://www.onecontact.link/" style="color: white;text-decoration: none;">OneContact.Link</a></td></tr>
  <tr style="border-spacing: 0;padding: 0;margin: 0;"><td style="border-spacing: 0;padding: 20px;margin: 0;">__s__
  <p>Cheers,<br>OneContactLink</p>
  </td></tr>
  <tr class="footer" style="border-spacing: 0;padding: 0;margin: 0;"><td style="border-spacing: 0;padding: 0px 20px;margin: 0;text-align: center;background-color: #666;width: 100%;color: #ddd;font-size: 12px;">
    <p>
      <a href="https://www.onecontact.link" style="color: #ddd;">Home</a>&nbsp;&middot;&nbsp;
      <a href="https://www.onecontact.link/app" style="color: #ddd;">Manage</a>
    </p>
  </td></tr>
</table>

<div class="unsubscribe" style="line-height: 3;font-size: 12px;text-align: center;color: #888;"><a href="%unsubscribe_url%" style="color: #888;">Unsubscribe</a> from these emails.</div>
</body>
</html>
`, "%", "%%", -1), "__s__", "%s", -1)
{'fraction_non_alphanumeric': 0.19799498746867167, 'fraction_numerical': 0.042799305957200696, 'mean_word_length': 4.608648648648648, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, 'https://': 7, 'lorem ipsum': 0, 'www.': 7, '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': '6694275', 'n_tokens_mistral': 2226, 'n_tokens_neox': 1990, 'n_words': 440}