6cb62da4205e52f91c9c8fd94dbcdfaca717eb36,benchmarking/frameworks/caffe2/caffe2.py,Caffe2Framework,_collectDelayData,#Caffe2Framework#Any#Any#Any#,303

Before Change


                i = self._parseDelayData(useful_rows, result, i)
                if (len(result) > 1) and (self.NET_DELAY in result):
                    // operator delay. Need to strip the net delay from it
                    del result[self.NET_DELAY]
                results.append(result)
            i += 1

        if len(results) > total_num:

After Change


        while (i < len(useful_rows)):
            row = useful_rows[i]
            valid_row = row[(row.find(self.IDENTIFIER) + len(self.IDENTIFIER)):]
            try:
                result = json.loads(valid_row)
                results.append(result)
            except Exception as e:
                // bypass one line
                getLogger().info(
                        "Skip one row %s \n Exception: %s" %
                        (valid_row, str(e))
                        )
                pass
            i += 1

        if len(results) > total_num:
            // Android 5 has an issue that logcat -c does not clear the entry
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: facebook/FAI-PEP
Commit Name: 6cb62da4205e52f91c9c8fd94dbcdfaca717eb36
Time: 2018-06-04
Author: 34827865+llyfacebook@users.noreply.github.com
File Name: benchmarking/frameworks/caffe2/caffe2.py
Class Name: Caffe2Framework
Method Name: _collectDelayData


Project Name: cornellius-gp/gpytorch
Commit Name: d71bc3c8b533c319e49cf6b347d13c48c925ea93
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: gpytorch/utils/getitem.py
Class Name:
Method Name: _compute_getitem_size


Project Name: matplotlib/matplotlib
Commit Name: c93596500e912d00cf8db547c1d48df8875a8c6f
Time: 2018-01-24
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: reset_ticks