fee64903688521ecfce67002e685af2b246bbf97,numerox/report.py,,earn,#Any#Any#,114

Before Change


    t2 = df["round"].max()
    fmt = "Top earners (R{} - R{}) at {:.2f} usd/nmr"
    print(fmt.format(t1, t2, price))
    df = df.drop("round", axis=1)
    df = df.groupby("user").sum()
    profit = df["usd_main"] + df["usd_stake"]
    nmr = df["nmr_main"] + df["nmr_stake"] - df["nmr_burn"]
    profit += price * nmr

After Change


    t2 = df["round"].max()
    fmt = "Top earners (R{} - R{}) at {:.2f} usd/nmr"
    print(fmt.format(t1, t2, price))
    df = df[["user", "usd_main", "usd_stake", "nmr_main", "nmr_stake",
            "nmr_burn"]]
    df = df.groupby("user").sum()
    profit = df["usd_main"] + df["usd_stake"]
    nmr = df["nmr_main"] + df["nmr_stake"] - df["nmr_burn"]
    profit += price * nmr
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kwgoodman/numerox
Commit Name: fee64903688521ecfce67002e685af2b246bbf97
Time: 2018-04-26
Author: kwgoodman@gmail.com
File Name: numerox/report.py
Class Name:
Method Name: earn


Project Name: catalyst-cooperative/pudl
Commit Name: 590028f40e74f82c3d00f0bc48b4cf415c97bfce
Time: 2019-06-13
Author: zane.selvans@catalyst.coop
File Name: pudl/transform/ferc1.py
Class Name:
Method Name: plants_hydro


Project Name: kwgoodman/numerox
Commit Name: 90e63dc840e9d31e80a570ca109c3fbe3012f789
Time: 2018-02-07
Author: kwgoodman@gmail.com
File Name: numerox/numerai.py
Class Name:
Method Name: ten99