Skip to content

Instantly share code, notes, and snippets.

View djszemiako's full-sized avatar

Daniel Szemiako djszemiako

  • Basil Systems, Inc.
  • Brooklyn, NY
  • 20:48 (UTC -04:00)
View GitHub Profile
# Make sure the source index is actually open
POST /source_index/_open
# Put the source index in read-only mode
PUT /source_index/_settings
{
"settings": {
"index.blocks.write": "true"
}
}
import pandas as pd
from datetime import datetime
from rapidfuzz.process import extractOne
from string_grouper import match_strings, group_similar_strings
from sys import argv
from time import monotonic
from uuid import uuid4
class Constants:
import pandas as pd
from datetime import datetime
from itertools import combinations
from math import comb
from sys import argv
from time import monotonic
from typing import List
MAX_FAMILY_TOKENS = 6