Community College classes and college GPA

Hello!

So I am an upcoming senior and I was interested in taking a few more community college courses (a US Gov dual-enrollment, a math, and possibly an art).
I was wondering if and how these courses would affect my college GPA. I know it varies from place to place, since I have read that UC Berkeley does not factor the courses into the gpa, but does anyone know about the following schools?

-Stanford
-Cal Poly San Luis Obispo
-Other UCs (I’m assuming it is the same, but I could not find it on the general UC site)
-MIT

Thank you all!