afd13e1234a1286ff4cddbbb2e210594de7a3ca8,brian2/codegen/generators/cpp_generator.py,,,#,312

Before Change


	        return (double)rand()/RAND_MAX;
        }
        """}
DEFAULT_FUNCTIONS["rand"].implementations[CPPCodeGenerator] = FunctionImplementation("_rand",
                                                                                code=rand_code)

clip_code = {"support_code": """
        double _clip(const float value, const float a_min, const float a_max)
        {

After Change


	        return (double)rand()/RAND_MAX;
        }
        """}
DEFAULT_FUNCTIONS["rand"].implementations.add_implementation(CPPCodeGenerator,
                                                             code=rand_code,
                                                             name="_rand")

clip_code = {"support_code": """
        double _clip(const float value, const float a_min, const float a_max)
        {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: brian-team/brian2
Commit Name: afd13e1234a1286ff4cddbbb2e210594de7a3ca8
Time: 2014-02-28
Author: marcel.stimberg@ens.fr
File Name: brian2/codegen/generators/cpp_generator.py
Class Name:
Method Name:


Project Name: brian-team/brian2
Commit Name: afd13e1234a1286ff4cddbbb2e210594de7a3ca8
Time: 2014-02-28
Author: marcel.stimberg@ens.fr
File Name: brian2/codegen/generators/numpy_generator.py
Class Name:
Method Name:


Project Name: brian-team/brian2
Commit Name: afd13e1234a1286ff4cddbbb2e210594de7a3ca8
Time: 2014-02-28
Author: marcel.stimberg@ens.fr
File Name: brian2/codegen/generators/numpy_generator.py
Class Name:
Method Name: