def __get_usernames__(site, confirm_value): usernames_csv_path = __get_usernames_csv_path__(site) usernames = csv_util.query_csv_for_rows_with_value(usernames_csv_path, COLUMN_USERNAME, __COLUMN_SAME_INDIVIDUAL__, confirm_value) return [username for username in usernames if username not in __NON_ENGLISH__]
def get_usernames_to_evaluate_mturk(site): ''' Returns the usernames that humans need to manually confirm belong to the same individual user on Wikipedia and the given site. ''' usernames_csv_path = __get_usernames_csv_path__(site) need_to_be_evaluated = csv_util.query_csv_for_rows_with_value(usernames_csv_path, COLUMN_USERNAME, __COLUMN_SAME_INDIVIDUAL__, __VALUE_UNCONFIRMED__) return need_to_be_evaluated