The next two are from a national chain store. The ceiling box is feeding a cable from an NM cable connector. notice the strain relief
, the second picture show the cable supplying a receptacle in a 1900 box. Neither picture complies with the NEC. This is a typical installation.