<jupyter_start><jupyter_text>Rides:<jupyter_code>rides_descs = read_bulletpoints("_rides.txt", False)
# "expensive" search, let's waste cpu cycles, yey!

rides = None
with open("_rides.json", "r") as r:
    rides = json.load(r)
    
for r in rides:
    id_ = slugify(rides[r]["name"], separator='_')
    if id_ in rides_descs:
        rides[id_]['description'] = rides_descs[id_]["description"]
        
with open("_rides.json", "w", encoding='utf8') as w:
    json.dump(rides, w)<jupyter_output><empty_output><jupyter_text>Interesting people<jupyter_code>interesting = read_bulletpoints("_interesting.txt")<jupyter_output><empty_output><jupyter_text>Food<jupyter_code>food = read_bulletpoints("_food.txt")<jupyter_output><empty_output><jupyter_text>Merge ifo<jupyter_code>debug = True

trips_json:dict = None
with open("../trip.json", "r") as r:
    trips_json = json.load(r)

trips_json["routes"] = {
    "type": "routes",
    "icon": "map",
    "name": "Moving around",
    "routes": rides
}

trips_json["people"] = {
    "type": "pins",
    "icon": "users",
    "name": "<NAME>",
    "pins": interesting
}

trips_json["food"] = {
    "type": "pins",
    "icon": "utensils",
    "name": "Food",
    "pins": food
}

            
with open("../trip.json", "w") as w:
    json.dump(trips_json, w, indent=None if not debug else 4)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17880794701986755, 'fraction_numerical': 0.0014716703458425313, 'mean_word_length': 4.551020408163265, 'pattern_counts': {'":': 12, '<': 18, '<?xml version=': 0, '>': 18, '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}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '574002', 'license': 'MIT', 'n_tokens_mistral': 540, 'n_tokens_neox': 526, 'n_words': 95, 'path': 'notebooks/_rides.ipynb', 'repo_name': 'fferegrino/skye', 'size': '1371'}