Cal. Penal Code § 186.22
(b)
(1) Except as provided in paragraphs (4) and (5), a person who is convicted of a felony committed for the benefit of, at the direction of, or in association with a criminal street gang, with the specific intent to promote, further, or assist in criminal conduct by gang members, shall, upon conviction of that felony, in addition and consecutive to the punishment prescribed for the felony or attempted felony of which the person has been convicted, be punished as follows:
(4) A person who is convicted of a felony enumerated in this paragraph committed for the benefit of, at the direction of, or in association with a criminal street gang, with the specific intent to promote, further, or assist in criminal conduct by gang members, shall, upon conviction of that felony, be sentenced to an indeterminate term of life imprisonment with a minimum term of the indeterminate sentence calculated as the greater of:
(e)
(1) As used in this chapter, “pattern of criminal gang activity” means the commission of, attempted commission of, conspiracy to commit, or solicitation of, sustained juvenile petition for, or conviction of, two or more of the following offenses, provided at least one of these offenses occurred after the effective date of this chapter, and the last of those offenses occurred within three years of the prior offense and within three years of the date the current offense is alleged to have been committed, the offenses were committed on separate occasions or by two or more members, the offenses commonly benefited a criminal street gang, and the common benefit from the offenses is more than reputational: