<commit_before>#! /bin/bash
gogan="goganesh -file $HOME/goganesh.list"
xwindows=$(dirname $0)/xwindows.sh
#! /bin/bash
goganesh=$($gogan)
wnames=$(exec "$xwindows")
bins=$(dmenu_path)

wname=$(printf "%s\n" "$goganesh" "$wnames" "$bins" | uniq | dmenu -nb '#151617' -nf '#d8d8d8' -sb '#d8d8d8' -sf '#151617') && \

{
  wid=$(exec "$xwindows" "$wname")
  $($gogan $wname)
  if [[ -n "$wid" ]]; then
    xdotool windowraise $wid; xdotool windowfocus $wid
  else
    $(exec $wname)
  fi
}
<commit_msg>xgoganeshdmenu correctly filter out duplicates.<commit_after>#! /bin/bash
gogan="goganesh -file $HOME/goganesh.list"
xwindows=$(dirname $0)/xwindows.sh
#! /bin/bash
goganesh=$($gogan)
wnames=$(exec "$xwindows")
bins=$(dmenu_path)

wname=$(printf "%s\n" "$goganesh" "$wnames" "$bins" | perl -ne '$H{$_}++ or print' | dmenu -nb '#151617' -nf '#d8d8d8' -sb '#d8d8d8' -sf '#151617') && \

{
  wid=$(exec "$xwindows" "$wname")
  $($gogan $wname)
  if [[ -n "$wid" ]]; then
    xdotool windowraise $wid; xdotool windowfocus $wid
  else
    $(exec $wname)
  fi
}

{'fraction_non_alphanumeric': 0.222011385199241, 'fraction_numerical': 0.036053130929791274, 'mean_word_length': 4.466321243523316, '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': '5419673', 'n_tokens_mistral': 479, 'n_tokens_neox': 456, 'n_words': 100}