Revert "deleted pattern script"

This reverts commit 056af217edf2cb4479ae003ebac3bb1d59f57711.