18f30454593e206a538858287c45bd3ed6c1da37,featuretools/tests/entityset_tests/test_last_time_index.py,TestLastTimeIndex,test_grandparent,#TestLastTimeIndex#Any#,299

Before Change


        // last time index. This event should be from a different session than
        // the current last time index.
        log.df["datetime"][5] = pd.Timestamp("2011-4-09 10:40:01")
        log.df.sort_values(["datetime", "id"], inplace=True, kind="mergesort")
        log.update_data(log.df)
        entityset.add_last_time_indexes()

        true_customers_lti = pd.Series([datetime(2011, 4, 9, 10, 40, 1),

After Change


        // the current last time index.
        log.df["datetime"][5] = pd.Timestamp("2011-4-09 10:40:01")
        log.df = (log.df.set_index("datetime", append=True)
                     .sort_index(level=[1, 0], kind="mergesort")
                     .reset_index("datetime", drop=False))
        log.update_data(log.df)
        entityset.add_last_time_indexes()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: Featuretools/featuretools
Commit Name: 18f30454593e206a538858287c45bd3ed6c1da37
Time: 2018-05-22
Author: benjaminschreck93@gmail.com
File Name: featuretools/tests/entityset_tests/test_last_time_index.py
Class Name: TestLastTimeIndex
Method Name: test_grandparent


Project Name: dpressel/mead-baseline
Commit Name: 50144fec311ae3905f89831b7b0283964212593f
Time: 2018-08-08
Author: sagnik1987@gmail.com
File Name: python/xpctl/mongo/backend.py
Class Name: MongoRepo
Method Name: get_results


Project Name: J535D165/recordlinkage
Commit Name: 229bb52ad2111d0038a87dd65bf8fbf227a8f48b
Time: 2016-08-20
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name:
Method Name: _sortedneighbourhood


Project Name: commonsense/conceptnet5
Commit Name: 45c2d9c14ccaf85c5c350d7242ad4893539801eb
Time: 2016-06-16
Author: rob@luminoso.com
File Name: conceptnet5/vectors/__init__.py
Class Name:
Method Name: similar_to_vec