ed40bb91d35448ad265d1763f58e479739b881e3,NDVI.py,NDVI,getConfiguration,#NDVI#,65

Before Change



    def getConfiguration(self, **scalars):
        red, ir = 1, 2
        if scalars.has_key("red"): red = int(scalars["red"])
        if scalars.has_key("ir"): ir = int(scalars["ir"])

        return {
          "extractBands": (red - 1, ir - 1),    // extract only the two bands corresponding to user-specified red and infrared band indexes.

After Change



    def getConfiguration(self, **scalars):
        red = int(scalars.get("red", 1))
        ir = int(scalars.get("ir", 2))

        return {
          "extractBands": (red - 1, ir - 1),    // extract only the two bands corresponding to user-specified red and infrared band indexes.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: Esri/raster-functions
Commit Name: ed40bb91d35448ad265d1763f58e479739b881e3
Time: 2014-09-07
Author: akferoz@esri.com
File Name: NDVI.py
Class Name: NDVI
Method Name: getConfiguration


Project Name: monkeylearn/monkeylearn-python
Commit Name: 55e908c3815180415b86f5f27c73856d613fb856
Time: 2018-07-13
Author: gonzalosaavedra@gmail.com
File Name: monkeylearn/base.py
Class Name: ModelEndpointSet
Method Name: make_request


Project Name: theislab/scanpy
Commit Name: ab9247bdf8b7a3decc34a15b26fec813ea8fba0d
Time: 2020-07-31
Author: ivirshup@gmail.com
File Name: scanpy/readwrite.py
Class Name:
Method Name: _download