🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,3 @@ spell: venv
.PHONY: wrap
wrap: venv
$(VENV)/bin/powrap **/*.po

.PHONY: dict_dups
SHELL:=/bin/bash
.ONESHELL:
dict_dups:
if [[ $$(cat dict| sort | uniq -dc) ]]; then
echo -e "\n #######################\n"
echo "duplicated lines in the dict file"
sort dict | uniq -dc |sort -h
exit 1
else
echo "no duplicated lines"
exit 0
fi
File renamed without changes.
4 changes: 0 additions & 4 deletions scripts/create_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
# Remove empty string, from empty lines
entries.remove("")

# Read main 'dict'
with open("dict", "r") as f:
entries.update(set(i.rstrip() for i in f.readlines()))

# Write the 'dict.txt' file
with open("dict.txt", "w") as f:
for e in entries:
Expand Down