In case of non-bailable offence under section 437 CrPC the magistrate can release the person produced before him on bail
1
If the offence is punishable with imprisonment up to ten years
2
If the person does not appear to be guilty of offence punishable with death or imprisonment for life
3
If the person is not previously convicted of a cognizable offence punishable with death or imprisonment for life or imprisonment for seven years or more
4
All of the above