“Cracking the code” IMO is truly being content with being alone. Give your heartbreak a “break” if that’s how you’re truly feeling. There shouldn’t be any rush to force things or find someone - especially at your young age(I’m old). If you need companionship, try just doing fun things with fun people you enjoy being around, with no other strings attached.