Its not
just her; its you as well.
You are probably very close to the line of victory, but somehow,
the line always shift whenever the critical peak of expressing and
everything else slips in. Let me tell you something about this
vicious cycle that you never knew consciously:
Your history repeats torturously because your way of handling this
issue never change since day one. You are a guy who knows how to
pave your route, but have no knowledge on how to build further than
what you had done.
Have anyone ever tell you that your psychological love behavior
always instigate you to run away whenever you failed in your
attempt to get her? You subconsciously CHOSE to leave whenever she
rejected you and ironically, being a very good friend of her,
avoiding shouldn't have take place at all because if you have
respected space and freedom, you both should have reached to a
stage where you are emotionally ease with yourself. Declaration of
love wouldn't have affected this friendship at all - its
you who decide to instill tension in the bonds.
In summary, you repeated your own cycle with your
own choice.
CloUdiSm remix III state: If you always love the way you always
do, you always get what you always get.
***
You have already chosen to leave - then leave without the intention
of coming back. You can't be hanging in the air and hope for a
miracle to happen - you will only hurt yourself. If she is not
interested, in BGR sense, why live within your own emotional
picture? Have you ever ask and know how she feel and her preception
with regards to you? I mean you are rejected twice - there has to
be better and more concrete reasons than studying. 
Her emotional structure hasn't been constructed yet - IMO, her
mindset on love may not be positively formed OR she is spolit for
choices. Since you have successfully avoided and reduce much
contacts, you should learn to walk your own path for now (away from
her shadows). Of course if you want to get her, you can employ art
of seduction to win the war for you. (IMO, you are on good grounds
- but don't ask me how to do it. I can't explain on words here and
even through explaination, it is highly unlikely you will do
exact)
How the future is like, with/without her, doesn't matter - at least
you had two good attempts. Many others didn't have such opportunity
at all. At least she came into your life and taught you something.

Cheers