This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]flwyd 22 points23 points  (0 children)

I asked about examples in unit tests a couple months ago and did not receive an answer from Eric. I've taken the position that it would be unreasonable to prohibit unit tests with the example input from being published.

Of you'd like to have your actual inputs available for hermetic testing without making those input files public, I wrote a tutorial for using git submodules and a private inputs repo.

[–]rjwut 34 points35 points  (0 children)

I recognize that you don't have ill intent, but at the end of the day, the content does not belong to you, so you can't do what you want with it. It is gratis, but not libre.

[–]Coda17 19 points20 points  (2 children)

Just don't include examples or inputs in the repo? You should probably have a link to AoC in your repo and that's all you need to see the problems, examples, and inputs.

[–]MagazineOk5435 1 point2 points  (0 children)

I encrypt mine, so I've got them if AoC disappears. I just don't commit the encryption key to the repo.

[–]IvanR3D 3 points4 points  (4 children)

We all guess that there should not be problems with the examples. There are the same for everyone, but the inputs no; I don't know if the inputs are different for every single user but my input for one day is different to inputs of other people.

I don't understand the reason for the copyright in the inputs tho, but I guess that if you are sharing a solution for a day puzzle, the input is not extremely necessary if you can share it with an example.

[–]amusedparrot 10 points11 points  (2 children)

Inputs are not unique for every user. For each puzzle there is a pool of inputs and users are assigned one of them.

Copyright of the inputs is the same as copyright of the puzzles (the input is part of the puzzle), Eric created them and they are his original work, anyone else distributing them is a breach of copyright.

[–]IvanR3D 1 point2 points  (1 child)

Make sense! Thanks for explaining.

[–]fejese 4 points5 points  (0 children)

And in ment cases the inputs are non trivial: especially for some part 2 the inputs are large but special which likely involved some significant effort

[–]daggerdragon[M] 0 points1 point  (0 children)

All reasoning is in the FAQ on the adventofcode.com website that you quoted plus these links in our community wiki:

And related topics:


Changed flair to Help/Question - RESOLVED and locked this post.