In-Context Learning with Long-Context Models: An In-Depth Exploration