10c76237abf9913dfcba9a0ac73e8db50ea21a44,keras/layers/core.py,Lambda,from_config,#Any#Any#Any#,680
Before Change
def from_config(cls, config, custom_objects=None):
// Insert custom objects into globals.
if custom_objects:
globs = globals().copy()
globs.update(custom_objects)
else:
globs = globals()
function_type = config.pop("function_type")
After Change
def from_config(cls, config, custom_objects=None):
globs = globals()
if custom_objects:
globs = dict(globs.items() + custom_objects.items())
function_type = config.pop("function_type")
if function_type == "function":
// Simple lookup in custom objects
function = deserialize_keras_object(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: keras-team/keras
Commit Name: 10c76237abf9913dfcba9a0ac73e8db50ea21a44
Time: 2017-02-17
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: Lambda
Method Name: from_config
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 596116954853f7476017242af09580eb9b6dcea2
Time: 2015-03-26
Author: yuyantingzero@gmail.com
File Name: perfkitbenchmarker/packages/fio.py
Class Name:
Method Name: ParseJobFile
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 983aedb23057629605c8a7c8d9757945651d48f5
Time: 2015-03-27
Author: yuyantingzero@gmail.com
File Name: perfkitbenchmarker/packages/fio.py
Class Name:
Method Name: ParseJobFile