This thread contains two questions/topics to discuss.
>196. If a man put out the eye of another man, his eye shall be put out. [An eye for an eye.]
>200. If a man knock out the teeth of his equal, his teeth shall be knocked out. [A tooth for a tooth ]
http://avalon.law.yale.edu/ancient/hamframe.asp
Assuming the traditional authorship of the Pentateuch, the dates for when the Exodus would have occurred according to the available Biblical data suggests a time period from no more than 1550 B.C. and no less than 1150 B.C., with the mid 13th century B.C. (roughly 1250 B.C. give or take a decade) being the most likely time period as to when the Exodus occurred and the mid 15th century B.C. (1450 B.C. give or take a decade) being the second most likely. This means that the Pentateuch would've been written around this time period(s) spanning 40 years.
Hammurabi (1810 B.C. - 1750 B.C.; rule 1792 B.C. - 1750 B.C.) at the very least would've reigned around 200 years before the events of the Exodus and at the very most would've reigned around 600 years before the events of the Exodus with around 500 years before the events of the Exodus being most likely and 300 years before the event as being the second most likely.
This is all assuming the traditional authorship of the Pentateuch without taking into considering the so called Documentary hypothesis (JEPD) or it's various revised forms. The documentary hypothesis typically dates the composition of the Pentateuch in between 1000 B.C. and 350 B.C having been composed by two to four different sources.
Were the biblical texts inspired by the code of Hammurabi in some regards? The laws of the Pentateuch are actually pretty darn generous when compared to a lot of the things founds in Hammurabi, still in this regard it just looks like perhaps there might've been some influence, even the wording is similar.
Also, another add on question. Multiple times throughout the text it refers to "God", not "the gods" or "a god", but literally God. For example:
>then Anu and Bel called by name me, Hammurabi, the exalted prince, who feared God, to bring about the rule of righteousness in the land, to destroy the wicked and the evil-doers; so that the strong should not harm the weak; so that I should rule over the black-headed people like Shamash, and enlighten the land, to further the well-being of mankind.
>103. If, while on the journey, an enemy take away from him anything that he had, the broker shall swear by God and be free of obligation.
Now I don't know much about Babylonian mythology, and maybe there is something in the text that I missed or maybe it's a translation error (despite appearing numerous times throughout the text and in different translations as well) but, what do you think this could mean? Obviously they're polytheist idol worshipers yet even they seem to take note of "God". Seriously, what could this possibly mean?