<commit_before>part of item;

abstract class FocusingOrb extends Object with MetabolicsChange {
	Future<bool> levitate({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		toast('Levitating is not implemented yet. Sorry!', userSocket);
		return false;
	}

	Future<bool> focusEnergy({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		toast("+10 energy focused", userSocket);
		return await trySetMetabolics(username, energy:10);
	}

	Future<bool> focusMood({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		toast("+10 mood focused", userSocket);
		return await trySetMetabolics(username, mood:10);
	}

	Future<bool> radiate({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		List<String> users = [];
		List<Identifier> ids = ChatHandler.users.values.where((Identifier id) => id.channelList.contains(streetName)).toList();
		ids.forEach((Identifier id) => users.add(id.username));
		int numUsersOnStreet = users.length;
		if (numUsersOnStreet == 1) {
			return false;
		} else {
			int amt;
			if (numUsersOnStreet < 10) {
				amt = 20;
			} else if (numUsersOnStreet > 10 && numUsersOnStreet < 20) {
				amt = 40;
			} else {
				amt = 60;
			}

			amt = (amt / numUsersOnStreet).ceil();
			users.forEach((String username) => trySetMetabolics(username, mood: amt, energy: amt, imgMin: amt));
			StreetUpdateHandler.streets[streetName].occupants.forEach((String username, WebSocket ws) => toast("$username is radiating. Everyone here got $amt energy, mood, and iMG", ws));
			return true;
		}
	}

	Future<bool> meditate({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		toast("+5 energy, mood, and iMG", userSocket);
		return await trySetMetabolics(username, energy:5, mood:5, imgMin: 5);
	}
}<commit_msg>fixes https://github.com/ChildrenOfUr/cou-issues/issues/1119 (focusing orbs work again)<commit_after>part of item;

abstract class FocusingOrb extends Object with MetabolicsChange {
	Future<bool> levitate({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		toast('Levitating is not implemented yet. Sorry!', userSocket);
		return false;
	}

	Future<bool> focusEnergy({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		toast("+10 energy focused", userSocket);
		return await trySetMetabolics(email, energy:10);
	}

	Future<bool> focusMood({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		toast("+10 mood focused", userSocket);
		return await trySetMetabolics(email, mood:10);
	}

	Future<bool> radiate({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		List<String> users = [];
		List<Identifier> ids = ChatHandler.users.values.where((Identifier id) => id.channelList.contains(streetName)).toList();
		ids.forEach((Identifier id) => users.add(id.username));
		int numUsersOnStreet = users.length;
		if (numUsersOnStreet == 1) {
			return false;
		} else {
			int amt;
			if (numUsersOnStreet < 10) {
				amt = 20;
			} else if (numUsersOnStreet > 10 && numUsersOnStreet < 20) {
				amt = 40;
			} else {
				amt = 60;
			}

			amt = (amt / numUsersOnStreet).ceil();
			users.forEach((String username) => trySetMetabolics(email, mood: amt, energy: amt, imgMin: amt));
			StreetUpdateHandler.streets[streetName].occupants.forEach((String username, WebSocket ws) => toast("$username is radiating. Everyone here got $amt energy, mood, and iMG", ws));
			return true;
		}
	}

	Future<bool> meditate({WebSocket userSocket, String username, String email, Map map, String streetName}) async {
		toast("+5 energy, mood, and iMG", userSocket);
		return await trySetMetabolics(email, energy:5, mood:5, imgMin: 5);
	}
}
{'fraction_non_alphanumeric': 0.12474279835390946, 'fraction_numerical': 0.013888888888888888, 'mean_word_length': 4.946483180428134, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 27, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5442640', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1195, 'n_words': 355}