God grants the repentance that is deep enough and sincere enough for that person to turn to Him for forgiveness and strength in overcoming his sin. God will, in His sovereign power, provide a means for him to receive and believe the gospel of Jesus Christ and be baptized in His name and will also receive the gift of the Holy Spirit of God to strengthen and guide him in overcoming his sins.
Acts 11: 18 When they heard these things, they held their peace and glorified God, saying, Then hath God also to the Gentiles granted repentance unto life.
Acts 2: 38 Then Peter said unto them, Repent, and be baptized in the name of Jesus Christ for the remission of sins, and ye shall receive the gift of the Holy Spirit.
Repentance is a state of being. When God grants it, you have it. It is not something that you can accept or refuse because you already have it. A saved person can never boast that he got saved on his own merit or because he made a wise decision. Salvation is a gift from God. He does it all.
Ephesians 2: 8-9 For by grace are ye saved through faith; and that not of yourselves, it is the gift of God - Not of works, lest any man should boast.
1 Cor 1: 29-31 That no flesh should glory in His presence. But of (by) Him are ye in Christ Jesus, who of (by) God is made unto us wisdom, and righteousness, and sanctification, and redemption: That, according as it is written, He that glorieth , let him glory in the Lord.
Just as there are different degrees of love ( agape love being the highest), there are different degrees of repentance ( only the repentance granted by the Father is repentance unto salvation). Why would anyone want to take any credit for their salvation?
Romans 9: 15-16 For He saith to Moses, I will have mercy on whom I will have mercy, and I will have compassion on whom I will have compassion. So, then, it is not of (by) him that willeth, nor of him that runneth, but of (by) God that showeth mercy.