repeatcalc

package
v1.223.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: BSD-3-Clause Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package repeatcalc holds the pure study-group-semester repeat heuristic: reading the semester number out of a study-group code and deciding whether an exam is (likely) a repeat for a student. It drives the conflict auto-accept (a repeat conflict is only informational) and the plan-generation down-weighting. All functions are I/O-free; the heuristic is not fully reliable (study-group numbers are the only signal), so it only down-weights, never hard-excludes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinGroupSemester

func MinGroupSemester(groups []string) int

MinGroupSemester returns the smallest semester number found in the exam's groups (e.g. "IF2A" -> 2), or 0 if none.

func RepeatForStudent

func RepeatForStudent(studentSemester int, examRepeater bool, examSemester int) bool

RepeatForStudent reports whether an exam is (likely) a repeat for a student: the exam is flagged a repeater, or the student's semester is higher than the exam's (a heuristic via study-group numbers; not fully reliable).

func SemesterOf

func SemesterOf(group string) int

SemesterOf extracts the first run of digits from a study-group code (e.g. "IF4B" -> 4), or 0 if none.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL