<s> import tempfile <EOL> import contextlib <EOL> import math <EOL> def float_range ( a , b , inc ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> x = [ float ( a ) ] <EOL> except : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> for i in range ( <NUM_LIT:1> , int ( math . ceil ( ( b - a ) / inc ) ) ) : <EOL> x . append ( a + i * inc ) <EOL> return x <EOL> @ contextlib . contextmanager <EOL> def temp_dir ( ** kwargs ) : <EOL> tempdir = tempfile . mkdtemp ( ** kwargs ) <EOL> yield tempdir <EOL> subprocess . check_call ( [ '<STR_LIT>' , '<STR_LIT>' , tempdir ] ) </s>
