<commit_before>###*
 * JavaScript email encrypter
 *
 * @author             <NAME>
 * @version            $1.0$
 * @copyright          <NAME>, 31 December, 2011
 * @license            GNU General Public License, version 3 (GPL-3.0)
 * @package            coffeescript
 * @requirements       jquery-1.7.1.min.js
 *
 * @lastmodified       $Date: 2011-12-31 20:29:35  +0100 (Sat, 31 Dec 2011) $
 *
###

( (window) ->

  ###*
   * Crypt given mail
   *
   * @param string email address
   * @param boolean true
  ###
  window.CryptMailto = ->
    formname = 'cryptmail'
    cryptform = document.forms[formname]
    n = 0
    r = ""
    s = "mailto:" + cryptform.cryptmail_email.value
    e = cryptform.cryptmail_email.value
    
    if cryptform.cryptmail_email.value.length < 4
      return false
    
    radioObj = cryptform.cryptmail_radio
    if radioObj.length > 0
      i = 0
      while i < radioObj.length
        radioValue = parseInt(radioObj[i].value if radioObj[i].checked)
        i++
    else
      radioValue = 0
    
    if radioValue is 1
      e = e.replace(/@/, '<span class="crypt">.</span>@</span class="crypt">.</span>')
      e = e.replace(/\./g, '<span class="crypt">.</span>.</span class="crypt">.</span>')
    else
      e = e.replace(/@/, ' [at] ')
      e = e.replace(/\./g, ' [dot] ')
    
    i = 0
    while i < s.length
      n = s.charCodeAt(i)
      n = 128  if n >= 8364
      r += String.fromCharCode(n + 1)
      i++
    cryptform.cryptmail_cryptedmail.value = r
    cryptform.cryptmail_html.value = '<a href="javascript:linkTo_UnCryptMailto(\'' + r + '\');">' + "\n\t" + e + "\n" + '</a>'<commit_msg>bugfix: parseInt<commit_after>###*
 * JavaScript email encrypter
 *
 * @author             <NAME>
 * @version            $1.0$
 * @copyright          <NAME>, 31 December, 2011
 * @license            GNU General Public License, version 3 (GPL-3.0)
 * @package            coffeescript
 *
 * @lastmodified       $Date: 2011-12-31 20:29:35  +0100 (Sat, 31 Dec 2011) $
 *
###

( (window) ->

  ###*
   * Crypt given mail
   *
   * @param string email address
   * @param boolean true
  ###
  window.CryptMailto = ->
    formname = 'cryptmail'
    cryptform = document.forms[formname]
    n = 0
    r = ""
    s = "mailto:" + cryptform.cryptmail_email.value
    e = cryptform.cryptmail_email.value
    
    if cryptform.cryptmail_email.value.length < 4
      return false
    
    radioObj = cryptform.cryptmail_radio
    if radioObj.length > 0
      i = 0
      while i < radioObj.length
        radioValue = parseInt(radioObj[i].value if radioObj[i].checked, 0)
        i++
    else
      radioValue = 0
    
    if radioValue is 1
      e = e.replace(/@/, '<span class="crypt">.</span>@</span class="crypt">.</span>')
      e = e.replace(/\./g, '<span class="crypt">.</span>.</span class="crypt">.</span>')
    else
      e = e.replace(/@/, ' [at] ')
      e = e.replace(/\./g, ' [dot] ')
    
    i = 0
    while i < s.length
      n = s.charCodeAt(i)
      n = 128  if n >= 8364
      r += String.fromCharCode(n + 1)
      i++
    cryptform.cryptmail_cryptedmail.value = r
    cryptform.cryptmail_html.value = '<a href="javascript:linkTo_UnCryptMailto(\'' + r + '\');">' + "\n\t" + e + "\n" + '</a>'
{'fraction_non_alphanumeric': 0.16486235694401485, 'fraction_numerical': 0.03216826476956387, 'mean_word_length': 2.1096153846153847, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 35, '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': '3589578', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1111, 'n_words': 255}