Port from internal repository scanning and masking capabilities for freetext documents in CLI and Spark