<commit_before>var $anchors = document.getElementsByTagName("a");
var hashtags = [];

for (var i = 0; i < $anchors.length; i++) {
  if ($anchors[i].innerText.indexOf("#")==0) { // filter hashtags
    var duplicate = false;
    for (var j = 0; j < hashtags.length; j++) { // filter duplicates
      if ($anchors[i].innerText==hashtags[j])
        duplicate = true;
    }
    if (!duplicate)
      hashtags.push($anchors[i].innerText);
  }
}

var output = "";
var delimiter = "\n";
var groupname = "edelecode";
for (var i = 0; i < hashtags.length; i++) {
  output += hashtags[i] + "@" + groupname + delimiter;<commit_msg>exclude duplicates, support output settings<commit_after>// output settings
var delimiter = "\n";
var groupname = "";

var $anchors = document.getElementsByTagName("a");
var hashtags = [];
for (var i = 0; i < $anchors.length; i++) {
  var a = $anchors[i].innerText;
  if (a.indexOf("#")!=0) continue; // filter hashtags
  a = a.substr(0, a.indexOf("@")) // if already has a groupname

  var duplicate = false;
  for (var j = 0; j < hashtags.length; j++) { // filter duplicates
    if (a == hashtags[j])
      duplicate = true;
  }
  if (a.length < 1 || a == " " || duplicate) continue;
    hashtags.push(a);
}

var output = "";
for (var i = 0; i < hashtags.length; i++) {
  output += hashtags[i] + (groupname ? "@" + groupname : "") + delimiter;
{'fraction_non_alphanumeric': 0.18988269794721407, 'fraction_numerical': 0.007331378299120235, 'mean_word_length': 3.3890675241157555, 'pattern_counts': {'":': 0, '<': 10, '<?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': '5458699', 'n_tokens_mistral': 500, 'n_tokens_neox': 474, 'n_words': 131}