The SN74LS107AN is a two independent Negative-Edge-Triggered Flip-flop with J and K inputs must be stable prior to the high-to-low clock transition for predictable operation. When the clear is low, it overrides the clock and data inputs forcing the Q output low and the Q\ output high.