I think as mentioned by Jayesh, you should take a look at open source projects. A number of firms actually open source stuff, like Goldman Sachs, Facebook and Netflix.
https://github.com/goldmansachs
https://github.com/Netflix
This is all real code they built for their own use and released, so it should be a good indicator of what real code look like. Even better would be for you to contribute to open source; then you can pick up real tasks and execute them, plus you can include your github profile on your CV. I saw a CV last week from someone who was a contributor to
Mockito which I found very impressive.
If you're just looking for more programming experience in general, check out
http://hackerrank.com and
https://codility.com/ as a really good way to get your programming skills up.