ccd5394d688a3eadfcae0ce9e59a395537d6317e,log_manager.py,Logging,get_fundschange_chart,#Logging#Any#,298
Before Change
def get_fundschange_chart(self,strategy):
try:
y = round(self.log_data_file[self.log_data_file["Template"] == strategy][
["FinalFundsChange", "GameID"]].drop_duplicates(subset=["GameID"])["FinalFundsChange"], 2)
except:
y=[0]
return y
After Change
def get_fundschange_chart(self,strategy):
try:
cursor = self.mongodb.games.aggregate([
{"$match": {"Template": strategy}},
{"$group": {
"_id": None,
"FinalFundsChange": {"$push": "$FinalFundsChange"}
}}
])
y = list(cursor)[0]["FinalFundsChange"]
except:
y=[0]
return y
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: dickreuter/Poker
Commit Name: ccd5394d688a3eadfcae0ce9e59a395537d6317e
Time: 2016-09-04
Author: dickreuter@yahoo.com
File Name: log_manager.py
Class Name: Logging
Method Name: get_fundschange_chart
Project Name: interactiveaudiolab/nussl
Commit Name: b82419f321b3b52841065e00d1f50945d7e8a2ee
Time: 2020-03-16
Author: prem@u.northwestern.edu
File Name: nussl/separation/primitive/hpss.py
Class Name: HPSS
Method Name: run
Project Name: danforthcenter/plantcv
Commit Name: 3c8df2fc218bd42544ac0eebb8dbfc6724c27a14
Time: 2019-06-06
Author: noahfahlgren@gmail.com
File Name: plantcv/plantcv/analyze_nir_intensity.py
Class Name:
Method Name: analyze_nir_intensity
Project Name: etal/cnvkit
Commit Name: cead97ee9d4855dce7f39fe1e828ce6dee88992e
Time: 2015-08-27
Author: eric.talevich@gmail.com
File Name: cnvlib/export.py
Class Name:
Method Name: segments2bed