Skip to content

Instantly share code, notes, and snippets.

View Errorcrafter's full-sized avatar
🅱️
eing retard

https://codeberg.org/G1galovaniac Errorcrafter

🅱️
eing retard
View GitHub Profile
import json
import re
from operator import itemgetter
import requests
# finds the most similar list
# master = [] with n items
# candidates = [[],[],[],...] each nested list with n items
# original_candidates = [{}, {}, {},...]
def best_similarity(master, candidates, originalcandidates):