5f6b5d3851d0b719f401eafbfc569420405d1ef3,bokeh/models/formatters.py,FuncTickFormatter,from_py_func,#Any#Any#,215

Before Change



        all_args = argspec[0][:]
        func_arg = argspec[0].pop(0)
        func_kwargs = dict(zip(argspec[0], argspec[3] or []))

        // Set the transpiled functions as `formatter` so that we can call it
        code = pyscript.py2js(func, "formatter")

After Change


        if default_values and not any([isinstance(value, Model) for value in default_values]):
            raise ValueError("Default value must be a plot object.")

        func_kwargs = dict(zip(default_names, default_values))

        // Wrap the code attr in a function named `formatter` and call it
        // with arguments that match the `args` attr
        code = pyscript.py2js(func, "formatter") + "formatter(%s);\n" % ", ".join(default_names)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: bokeh/bokeh
Commit Name: 5f6b5d3851d0b719f401eafbfc569420405d1ef3
Time: 2016-08-16
Author: canavandl@gmail.com
File Name: bokeh/models/formatters.py
Class Name: FuncTickFormatter
Method Name: from_py_func


Project Name: philipperemy/keras-activations
Commit Name: fe5db3121c4313775181dea4935c764b84b8d357
Time: 2019-01-03
Author: premy@cogent.co.jp
File Name: keract/keract.py
Class Name:
Method Name: get_activations


Project Name: matplotlib/matplotlib
Commit Name: 5608ac37feb7fad002c0e030ba30f4924e8c1fc1
Time: 2018-09-24
Author: anntzer.lee@gmail.com
File Name: examples/statistics/barchart_demo.py
Class Name:
Method Name:


Project Name: metagenome-atlas/atlas
Commit Name: f7c6ffc65d04807ec4078bf6e491c488eb075b8b
Time: 2017-05-17
Author: joe.brown@pnnl.gov
File Name: atlas/blast.py
Class Name:
Method Name: parse_blast_results_with_tree


Project Name: chakki-works/doccano
Commit Name: 3492874d5e8b1922fa836e279ff10c6a6c732d5b
Time: 2020-01-13
Author: clewolff@microsoft.com
File Name: app/api/utils.py
Class Name: ExcelParser
Method Name: parse_excel_csv_reader


Project Name: khaotik/DaNet-Tensorflow
Commit Name: de00082780be884fc90e0113d323bfd63006ffba
Time: 2017-08-07
Author: junkkhaotik@gmail.com
File Name: main.py
Class Name: Model
Method Name: train