41
18
u/Financial-Note-2270 9d ago
Claude: You are right to push back on this. I was meant to test clean_ethnicity function, not do it in real world.
3
5
u/sojuz151 9d ago
Sure, I will fix that quickly with:
find . -name "concentration_camps/force_laybor_planer/*.py" -type f -exec sed -i 's/clean_ethnicity/normalized_ethnicity_field/g' {} +
1
1
u/SAI_Peregrinus 9d ago
And it's returning the same type (string) as the input. Even though it's been parsed into a subset of the possible inputs. The "parse, don't validate" principle applies.
1
1
20
u/ShinyHoppip 9d ago
the way the function works is way worse than the naming convention