Complex sentence: During the peaceful Edo era, yari were still produced, sometimes even by good sword smiths, they existed as a ceremonial weapon and a samurai police weapon for most of this era.
Split into simpler sentences: During the peaceful Edo era, yari were still produced, sometimes even by good swordsmiths. They existed as a ceremonial weapon for most of this era.