About the library effect, it was more a distraction-remover and motivational reminder than a desire to fit. Everyone is concentrated, I'm going back to concentration. If some were slacking off, I'd be tempted to relax. Also it favors everything that help your goal. Like the low noise for instance.
We want to fit in. In a library, that means heads down. In a fit city, that means being fit. In Texas (my home), that often means lots of beer drinking and dining out, which leads to not fit.
The power of positive people is the same. If you roll in a cynical circle, your cynicism will be applauded, and your optimism ridiculed, and you’ll find yourself altogether more cynical.
Around 22 years old, I realized that location / social circle are two of my greatest levers for influencing my behavior, and I’ve been extremely careful about where I’m willing to position myself ever since.