• Calculates user progress statistics based on log data.

    Analyzes how many suggestions the user accepted, how many of those had bugs, and computes the percentage of accepted suggestions that contained bugs.

    Parameters

    • logs: LogData[]

      An array of user interaction logs (LogData).

    Returns { percentageWithBugs: number; totalAccepted: number; totalWithBugs: number }

    An object containing:

    • totalAccepted: The number of suggestions accepted by the user.
    • totalWithBugs: The number of accepted suggestions that had bugs.
    • percentageWithBugs: The percentage of accepted suggestions that contained bugs.