Enhancing LLM Agents for Code Generation with Possibility and Pass-rate Prioritized Experience Replay