'Some data'

def _get_stats(self, player_stats):

    metrics = self.bot.metrics
    metrics.capture_stats()
    runtime = metrics.runtime()
    login = self.bot.config.username
    player_data = self.bot.player_data
    username = player_data.get('username', '?')
    distance_travelled = metrics.distance_travelled()
    current_level = int(player_stats.get('level', 0))
    prev_level_xp = int(self.xp_per_level[(current_level - 1)][2])
    next_level_xp = int(player_stats.get('next_level_xp', 0))
    experience = int(player_stats.get('experience', 0))
    current_level_xp = (experience - prev_level_xp)
    whole_level_xp = (next_level_xp - prev_level_xp)
    level_completion_percentage = int(((current_level_xp * 100) / whole_level_xp))
    experience_per_hour = int(metrics.xp_per_hour())
    remaining_xp = (next_level_xp - current_level_xp)
    if (experience_per_hour > 0):
        ttl = (float(remaining_xp) / float(experience_per_hour))
        hours = int(ttl)
        minutes = int(((ttl - hours) * 60))
        if (hours > 24):
            days = (hours / 24)
            hours = (hours % 24)
            time_to_level = ('%s    days    %s    hours    %s    minutes' % (days, hours, minutes))
        else:
            time_to_level = ('%s    hours    %s    minutes' % (hours, minutes))
    else:
        time_to_level = 'Unknown'
    xp_earned = metrics.xp_earned()
    stops_visited = (metrics.visits['latest'] - metrics.visits['start'])
    pokemon_encountered = metrics.num_encounters()
    pokemon_caught = metrics.num_captures()
    captures_per_hour = int(metrics.captures_per_hour())
    pokemon_released = metrics.releases
    pokemon_evolved = metrics.num_evolutions()
    pokemon_unseen = metrics.num_new_mons()
    pokeballs_thrown = metrics.num_throws()
    dust_per_hour = int(metrics.stardust_per_hour())
    total_stardust = int(metrics.total_stardust())
    stardust_earned = metrics.earned_dust()
    highest_cp_pokemon = metrics.highest_cp['desc']
    if (not highest_cp_pokemon):
        highest_cp_pokemon = 'None'
    most_perfect_pokemon = metrics.most_perfect['desc']
    if (not most_perfect_pokemon):
        most_perfect_pokemon = 'None'
    next_egg_hatching = metrics.next_hatching_km(0)
    hatched_eggs = metrics.hatched_eggs(0)
    available_stats = {'login': login, 'username': username, 'uptime': '{}'.format(runtime), 'km_walked': distance_travelled, 'level': current_level, 'experience': experience, 'current_level_xp': current_level_xp, 'whole_level_xp': whole_level_xp, 'level_completion_percentage': level_completion_percentage, 'xp_per_hour': experience_per_hour, 'xp_earned': xp_earned, 'time_to_level': time_to_level, 'stops_visited': stops_visited, 'pokemon_encountered': pokemon_encountered, 'pokemon_caught': pokemon_caught, 'captures_per_hour': captures_per_hour, 'pokemon_released': pokemon_released, 'pokemon_evolved': pokemon_evolved, 'pokemon_unseen': pokemon_unseen, 'pokeballs_thrown': pokeballs_thrown, 'stardust_earned': stardust_earned, 'stardust_per_hour': dust_per_hour, 'total_stardust': total_stardust, 'highest_cp_pokemon': highest_cp_pokemon, 'most_perfect_pokemon': most_perfect_pokemon, 'location': [self.bot.position[0], self.bot.position[1]], 'next_egg_hatching': float(next_egg_hatching), 'hatched_eggs': hatched_eggs}
    return available_stats
