High-Precision Spectroscopy with Diode Lasers. Deviation of Gas from Ideal Behavior