Threshold of originality
The minimum level of creativity a work has to reach before copyright protects it at all.
Below the line, something is free to copy no matter how much effort went into it. The US Supreme Court held in Feist v. Rural (1991) that an alphabetical phone directory falls short and that effort alone — "sweat of the brow" — is not enough. In the 2009 Infopaq case the EU Court of Justice framed the test as "the author's own intellectual creation", which in practice harmonised the bar and pulled it down in countries such as Germany, where it had been set high for some kinds of work.
For programs the matter is spelled out: the Software Directive forbids applying any criterion beyond the author's own intellectual creation. That means almost all non-trivial code is protected, while a one-line config, an error message or a bare list of API names may fall below the threshold — which is exactly the ground lawyers end up fighting over.