Skip to content

Make MOSS run on all submissions #2442

@kiritofeng

Description

@kiritofeng

MOSS has a directory mode -d. Using this, we can make MOSS pretend all submissions by 1 user belong to 1 "program".
This will allow us to run MOSS on all submissions made in a contest, instead of just the highest scoring one, while also preventing false positives when a user changes a few lines and resubmits.

To use directory mode, we need to pass directory=True to the MOSS object constructor.
We then need to give all submissions by a user a virtual filepath {username}/{submission id}.

As a bonus, it would be nice if we could tune the sensitivity (-m) depending on the difficulty of the problem, but this is outside the scope of the current issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions