Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating templates to ignore sections of code #1213

Closed
shreykshah opened this issue Sep 18, 2023 · 5 comments · Fixed by #1524
Closed

Creating templates to ignore sections of code #1213

shreykshah opened this issue Sep 18, 2023 · 5 comments · Fixed by #1524

Comments

@shreykshah
Copy link

Is it possible to mark certain lines as a template such that sections of code are ignored? For example, if I have handed students some starter code to work with and asked them to modify small sections, the software similarity will come back as extremely high. I am trying to ensure the starter code is ignored.

@rien
Copy link
Member

rien commented Sep 18, 2023

This is indeed something we want to support, this was working at one point but seems to be broken currently (#1163).

If you're using the CLI, you can experiment with using the -m or -M flags: this allows you to ignore the most common fingerprints in the dataset you're analyzing (see dolos --help for more info). But this does currently seem to have a bug.

We're planning on reworking this feature and integrating this in our front-end in the coming months however, so if you're using the web application, you will need to exercise some patience.

@shreykshah
Copy link
Author

The -m or -M flags are not necessarily robust, where we have to guess what the best values for these flags would be given our template. Are there any plans for explicit template support?

@rien
Copy link
Member

rien commented Sep 18, 2023

Yes, template support will be a port of this rework, as well as integrating this in the web application.

@shreykshah
Copy link
Author

I plan on using the CLI. Would there be any way to approximate this for a two student course in the meantime (perhaps submitting the template as a third student and setting -M 1)?

@rien
Copy link
Member

rien commented May 31, 2024

We have added experimental support for ignoring template code and frequent fingerprints in PR #1524

@rien rien closed this as completed May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants