Developers often spend significant time and effort on debugging and improving the quality of software systems. To improve developer productivity and quality, Intel Labs has OSS’ed Control Flag. ControlFlag uses self-supervised learning techniques to detect potential problems (e.g. typographical errors) in users’ code. The system includes a pattern mining phase wherein ControlFlag learns typical patterns in the specified GitHub repositories and defines a decision-tree based on the mined patterns; followed by a scanning phase that applies the mined patterns to detect anomalous expressions in target repositories.