code
stringlengths
3
6.57k
math.sqrt(sum(team_elos)
len(steam_ids)
cmd_teams(self, player, msg, channel)
player.tell("This game mode is not supported by the balance plugin.")
self.teams()
len(teams["red"])
len(teams["blue"])
player.tell("Both teams should have the same number of players.")
len(teams["red"] + teams["blue"])
channel.reply("No players active currently")
len(teams["red"] + teams["blue"])
random.randint(0, 99)
channel.reply("Teens look ^6good!")
channel.reply("Teams look good!")
self.collect_suggestions(teams, gametype, channel)
collect_suggestions(self, teams, gametype, channel)
self.filtered_suggestions(teams, gametype)
len(self.switched_players)
self.handle_suggestions_collected(possible_switches, channel)
filtered_suggestions(self, teams, gametype)
self.configured_rating_provider_name()
self.minimum_suggestion_parameters(gametype, player_steam_ids)
abs(avg_red - avg_blue)
self.possible_switches(teams, gametype)
abs(stddev_red - stddev_blue)
abs(suggestion.stddev_diff)
abs(suggestion.stddev_diff)
abs(suggestion.avg_diff)
abs(suggestion.avg_diff)
abs(suggestion.avg_diff)
minimum_suggestion_parameters(self, gametype, steam_ids)
possible_switches(self, teams, gametype)
self.configured_rating_provider_name()
self.minimum_suggestion_parameters(gametype, player_steam_ids)
self.team_average(r, gametype, rating_provider=configured_rating_provider)
self.team_average(b, gametype, rating_provider=configured_rating_provider)
self.team_stddev(r, gametype, mu=avg_red, rating_provider=configured_rating_provider)
self.team_stddev(b, gametype, mu=avg_blue, rating_provider=configured_rating_provider)
Suggestion(red_p, blue_p, diff, stddev_diff)
switches.append(suggestion)
handle_suggestions_collected(self, possible_switches, channel)
self.rating_strategy(self.get_cvar("qlx_balancetwo_ratingStrategy", str)
SuggestionQueue(possible_switches, rating_strategy)
len(switch_suggestion_queue)
switch_suggestion_queue.best_suggestion()
channel.reply(switch.announcement()
random.randint(0, 99)
channel.reply("Teens look ^6good!")
channel.reply("Teams look good!")
rating_strategy(self, strategy)
DiffSuggestionRatingStrategy()
cmd_do(self, player, msg, channel)
self.switch_suggestion.execute()
cmd_dont(self, player, msg, channel)
self.msg("An admin prevented the switch! The switch will be terminated.")
cmd_agree(self, player, msg, channel)
self.switch_suggestion.all_agreed()
self.switch_suggestion.agree(player)
self.switch_suggestion.all_agreed()
self.msg("The switch will be executed at the start of next round.")
self.execute_suggestion()
execute_suggestion(self)
self.switch_suggestion.execute()
self.switch_suggestion.affected_steam_ids()
cmd_veto(self, player, msg, channel)
self.switch_suggestion.agree(player)
self.switch_suggestion.all_agreed()
self.msg("Both players vetoed! The switch will be terminated.")
cmd_nokick(self, player, msg, channel)
dontkick(_steam_id)
self.player(_steam_id)
kickthread.stop()
_resolved_player.unmute()
channel.reply("^7An admin has prevented {}^7 from being kicked.".format(_resolved_player.name)
len(self.kickthreads.keys()
player.tell("^6Psst^7: There are no people being kicked right now.")
len(self.kickthreads.keys()
dontkick(list(self.kickthreads.keys()
self.kickthreads.keys()
is_alive()
self.player(steam_id)
_scheduled_players.append(_player)
len(msg)
player.tell("^6Psst^7: did you mean ^6{}^7?".format("^7 or ^6".join(_names)
len(matched_players)
player.tell("^6Psst^7: no players matched '^6{}^7'?".format(msg[1])
len(matched_players)
player.tell("^6Psst^7: did you mean ^6{}^7?".format("^7 or ^6".join(_matched_names)
dontkick(matched_players[0].steam_id)
handle_map_change(self, mapname, factory)
minqlx.delay(3)
fetch_ratings_from_newmap(_mapname)
self.players()
self.fetch_mapbased_ratings(steam_ids, mapname=_mapname)
self.fetch_and_diff_ratings()
fetch_ratings_from_newmap(mapname.lower()
self.clean_up_kickthreads()
clean_up_kickthreads(self)
self.kickthreads.keys()
thread.is_alive()