Уже возможно «чтобы компьютер СЕГОДНЯ нашёл строки кода среди миллионов и миллиардов строк, по их смыслу, вырезал их и добавил в ту программу которая уже есть«:
Facebook AI Research has announced TransCoder, a system that uses unsupervised deep-learning to convert code from one programming language to another. TransCoder was trained on more than 2.8 million open source projects and outperforms existing code translation systems that use rule-based methods.
https://www.infoq.com/news/2020/06/facebook-ai-transpiler/Хотя это и делается посредством текстуального поиска! Вопрос: а зачем? Зачем нужен код? Почему не использовать тексты как код?