A study of 14,485 Python functions and 11,913 classes shows that code detection accuracy depends more on granularity than the specific model used. Granularity effects impact detection by a factor of 8.6, as function-level and class-level signatures are fundamentally different.
HOW THIS AFFECTS YOU
●
builderThis means your code security tools might work well for functions but fail for entire classes.
●
researcherYou should account for structural signature shifts when building detectors for function-level versus class-level code.