<commit_before><?php // $Id$

/// Shows current group, and allows editing of the group 
/// icon and other settings related to that group

	require_once('../config.php');
	require_once('lib.php');

    require_variable($id);        // Course id
    optional_variable($group);    // Optionally look at other groups
    optional_variable($edit);     // Turn editing on and off

    if (! $course = get_record('course', 'id', $id) ) {
        error("That's an invalid course id");
    }

    require_login($course->id);

    if ($group) {
        if (isteacheredit($course->id) or $course->groupmode == VISIBLEGROUPS) {
            if (! $group = get_record("groups", "id", $group)) {
                error('Specified group could not be found!', "groups.php?id=$course->id");
            }
        } else {<commit_msg>And make sure the group is from this course!<commit_after><?php // $Id$

/// Shows current group, and allows editing of the group 
/// icon and other settings related to that group

	require_once('../config.php');
	require_once('lib.php');

    require_variable($id);        // Course id
    optional_variable($group);    // Optionally look at other groups
    optional_variable($edit);     // Turn editing on and off

    if (! $course = get_record('course', 'id', $id) ) {
        error("That's an invalid course id");
    }

    require_login($course->id);

    if ($group) {
        if (isteacheredit($course->id) or $course->groupmode == VISIBLEGROUPS) {
            if (! $group = get_record("groups", "id", $group, "course", $course->id)) {
                error('Specified group could not be found!', "groups.php?id=$course->id");
            }
        } else {
{'fraction_non_alphanumeric': 0.15558194774346792, 'fraction_numerical': 0.0, 'mean_word_length': 2.6471861471861473, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 0, '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': '2527223', 'n_tokens_mistral': 500, 'n_tokens_neox': 485, 'n_words': 144}