<s> import math <EOL> import numpy as np <EOL> from numba import jit <EOL> def sum1d ( s , e ) : <EOL> c = <NUM_LIT:0> <EOL> for i in range ( s , e ) : <EOL> c += i <EOL> return c <EOL> def sum2d ( s , e ) : <EOL> c = <NUM_LIT:0> <EOL> for i in range ( s , e ) : <EOL> for j in range ( s , e ) : <EOL> c += i * j <EOL> return c <EOL> def while_count ( s , e ) : <EOL> i = s <EOL> c = <NUM_LIT:0> <EOL> while i < e : <EOL> c += i <EOL> i += <NUM_LIT:1> <EOL> return c <EOL> def copy_arrays ( a , b ) : <EOL> for i in range ( a . shape [ <NUM_LIT:0> ] ) : <EOL> b [ i ] = a [ i ] <EOL> def copy_arrays2d ( a , b ) : <EOL> for i in range ( a . shape [ <NUM_LIT:0> ] ) : <EOL> for j in range ( a . shape [ <NUM_LIT:1> ] ) : <EOL> b [ i , j ] = a [ i , j ] <EOL> def redefine1 ( ) : <EOL> x = <NUM_LIT:0> <EOL> for i in range ( <NUM_LIT:5> ) : <EOL> x += <NUM_LIT:1> <EOL> x = <NUM_LIT:0.> + x <EOL> for i in range ( <NUM_LIT:5> ) : <EOL> x += <NUM_LIT:1> <EOL> return x <EOL> def andor ( x , y ) : <EOL> return ( x > <NUM_LIT:0> and x < <NUM_LIT:10> ) or ( y > <NUM_LIT:0> and y < <NUM_LIT:10> ) <EOL> andornopython = jit ( nopython = True ) ( andor ) <EOL> def string_concat ( x , y ) : <EOL> a = "<STR_LIT>" <EOL> return a + str ( x + y ) <EOL> def string_len ( s ) : <EOL> return len ( s ) <EOL> def string_slicing ( s , start , stop ) : <EOL> return s [ start : stop ] <EOL> def string_conversion ( x ) : <EOL> return str ( x ) <EOL> def string_comparison ( s1 , s2 , op ) : <EOL> return op ( s1 , s2 ) <EOL> def blackscholes_cnd ( d ) : <EOL> A1 = <NUM_LIT> <EOL> A2 = - <NUM_LIT> <EOL> A3 = <NUM_LIT> <EOL> A4 = - <NUM_LIT> <EOL> A5 = <NUM_LIT> <EOL> RSQRT2PI = <NUM_LIT> <EOL> K = <NUM_LIT:1.0> / ( <NUM_LIT:1.0> + <NUM_LIT> * math . fabs ( d ) ) <EOL> ret_val = ( RSQRT2PI * math . exp ( - <NUM_LIT:0.5> * d * d ) * <EOL> ( K * ( A1 + K * ( A2 + K * ( A3 + K * ( A4 + K * A5 ) ) ) ) ) ) <EOL> if d > <NUM_LIT:0> : <EOL> ret_val = <NUM_LIT:1.0> - ret_val <EOL> return ret_val </s>
