A real library file, read end to end: the licence, the version, the import, the documentation, and the forty lines of code wearing all of it. OpenZeppelin's Ownable, inherited by thousands of deployed contracts.
A different kind of file. This is OpenZeppelin's Ownable, inherited by thousands of deployed contracts, and it is the plumbing behind almost every admin function you have ever seen. One hundred lines.
Count the code and you get about forty. The rest is paperwork: a licence, a version, an import, and a great deal of documentation. Last lesson's contract hid its paperwork outside the file. This one wears it on the inside, which is what real modern code looks like.
Both lines are comments, so the compiler ignores both. Line 1 names the licence in SPDX form, a standard list of identifiers, which is why tooling can read it even though the machine cannot. Your previous contract had no such line, only a wall of licence prose.
Line 2 is a convention rather than a language feature. OpenZeppelin stamps every file with the release it belongs to. When you meet an unfamiliar library file, that stamp tells you which version's documentation to trust.
The version line again, and this time it reads `^0.8.20`. The caret means this version or any later one in the same series, stopping before the next breaking one. So 0.8.20 through 0.8.anything is accepted, and 0.9 is not.
Hold it against the contract you read last time, which said `>=0.4.22 <0.6`. Same line, two eras. The 0.8 series is where arithmetic began reverting on overflow instead of wrapping silently, so this one line tells you something real about how the maths below behaves.
Line 6 is new territory. Function first: a statement that pulls in another file so this one can use what it defines. The name: an import. The braces name exactly what is being taken, here a contract called Context.
This is the moment reading gets harder, and it is worth slowing down. Your last contract had everything inside it. This one does not. Before reading on, decide what that means for you as a reader.