<commit_before>package server

import (
	"strings"
	"fmt"
)

// given an email address get the i2p destination name for it
func parseFromI2PAddr(email string) (name string) {
  idx_at := strings.Index(email, "@")
  if strings.HasSuffix(email, ".b32.i2p") {
    name = email[idx_at+1:]
  } else if strings.HasSuffix(email, ".i2p")
    idx_i2p := strings.LastIndex(email, ".i2p")    
    name = fmt.Sprintf("smtp.%s.i2p", email[idx_at+1:idx_i2p])
  }
  name = strings.Trim(name, ",= \t\r\n\f\b")
  return
}

<commit_msg>syntax error<commit_after>package server

import (
	"strings"
	"fmt"
)

// given an email address get the i2p destination name for it
func parseFromI2PAddr(email string) (name string) {
  idx_at := strings.Index(email, "@")
  if strings.HasSuffix(email, ".b32.i2p") {
    name = email[idx_at+1:]
  } else if strings.HasSuffix(email, ".i2p") {
    idx_i2p := strings.LastIndex(email, ".i2p")    
    name = fmt.Sprintf("smtp.%s.i2p", email[idx_at+1:idx_i2p])
  }
  name = strings.Trim(name, ",= \t\r\n\f\b")
  return
}


{'fraction_non_alphanumeric': 0.16682738669238187, 'fraction_numerical': 0.023143683702989394, 'mean_word_length': 3.6968325791855206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1432146', 'n_tokens_mistral': 430, 'n_tokens_neox': 417, 'n_words': 85}