jpacker_generalize_scripts_and_add_patent_example