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: 3
Non-data size: 4
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: dickreuter/Poker
Commit Name: ccd5394d688a3eadfcae0ce9e59a395537d6317e
Time: 2016-09-04
Author: dickreuter@yahoo.com
File Name: log_manager.py
Class Name: Logging
Method Name: get_strategy_total_funds_change
Project Name: deepfakes/faceswap
Commit Name: acc6553f80d17469bedfdcdab2ea676478a49d9d
Time: 2019-07-04
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/effmpeg.py
Class Name: Effmpeg
Method Name: get_fps