Detecting secrets in source code is challenging due to the imbalance between the vast majority of non-secrets and the few actual secrets, making traditional accuracy metrics inadequate. Instead, precision and recall are more relevant for evaluating secrets detection algorithms, as they focus on accurately identifying true positives and minimizing false negatives. An algorithm can achieve high precision by minimizing false alerts and high recall by detecting most secrets, but balancing both is complex. GitGuardian exemplifies effective secrets detection by leveraging extensive data and continuous algorithm retraining, achieving significant improvements in precision and recall over time. The company’s success is attributed to processing over a billion commits annually, which has enhanced their model's ability to detect secrets in both public and private repositories, demonstrating that rigorous data training and constant adaptation are crucial for the efficacy of probabilistic algorithms.