Blog

  • MIT License (SPDX canonical text)

    Copyright (c) <year> <copyright holders>

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

  • The Gettysburg Address (Bliss copy)

    Four score and seven years ago our fathers brought forth, on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.

    Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.

    But, in a larger sense, we can not dedicate—we can not consecrate—we can not hallow—this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us—that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion—that we here highly resolve that these dead shall not have died in vain—that this nation, under God, shall have a new birth of freedom—and that government of the people, by the people, for the people, shall not perish from the earth.

    November 19, 1863.

    This work was published before January 1, 1931, and is in the public domain worldwide because the author died at least 100 years ago.

    Public domainPublic domainfalsefalse

  • The Raven

    Once upon a midnight dreary, while I pondered, weak and weary,
    Over many a quaint and curious volume of forgotten lore—
    While I nodded, nearly napping, suddenly there came a tapping,
    As of some one gently rapping, rapping at my chamber door.
    “’Tis some visiter,” I muttered, “tapping at my chamber door—
    Only this and nothing more.”

    Ah, distinctly I remember it was in the bleak December,
    And each separate dying ember wrought its ghost upon the floor.
    Eagerly I wished the morrow;—vainly I had sought to borrow
    From my books surcease of sorrow—sorrow for the lost Lenore—
    For the rare and radiant maiden whom the angels name Lenore—
    Nameless here for evermore.

    And the silken sad uncertain rustling of each purple curtain
    Thrilled me—filled me with fantastic terrors never felt before;
    So that now, to still the beating of my heart, I stood repeating
    “’Tis some visiter entreating entrance at my chamber door—
    Some late visiter entreating entrance at my chamber door;
    This it is and nothing more.”

    Presently my soul grew stronger; hesitating then no longer,
    “Sir,” said I, “or Madam, truly your forgiveness I implore;
    But the fact is I was napping, and so gently you came rapping,
    And so faintly you came tapping, tapping at my chamber door,
    That I scarce was sure I heard you”—here I opened wide the door—
    Darkness there and nothing more.

    Deep into that darkness peering, long I stood there wondering, fearing,
    Doubting, dreaming dreams no mortals ever dared to dream before;
    But the silence was unbroken, and the stillness gave no token,
    And the only word there spoken was the whispered word, “Lenore?”
    This I whispered, and an echo murmured back the word, “Lenore!”—
    Merely this and nothing more.

    Back into the chamber turning, all my soul within me burning,
    Soon again I heard a tapping something louder than before.
    “Surely,” said I, “surely that is something at my window lattice;
    Let me see, then, what thereat is and this mystery explore—
    Let my heart be still a moment and this mystery explore;—
    ’Tis the wind and nothing more.”

    Open here I flung the shutter, when, with many a flirt and flutter,
    In there stepped a stately Raven of the saintly days of yore.
    Not the least obeisance made he; not a minute stopped or stayed he,
    But, with mien of lord or lady, perched above my chamber door—
    Perched upon a bust of Pallas just above my chamber door—
    Perched, and sat, and nothing more.

    Then the ebony bird beguiling my sad fancy into smiling,
    By the grave and stern decorum of the countenance it wore,
    “Though thy crest be shorn and shaven, thou,” I said, “art sure no craven,
    Ghastly grim and ancient Raven wandering from the Nightly shore—
    Tell me what thy lordly name is on the Night’s Plutonian shore!”
    Quoth the Raven, “Nevermore.”

    Much I marvelled this ungainly fowl to hear discourse so plainly,
    Though its answer little meaning—little relevancy bore;
    For we cannot help agreeing that no living human being
    Ever yet was blessed with seeing bird above his chamber door—
    Bird or beast upon the sculptured bust above his chamber door,
    With such name as “Nevermore.”

    But the Raven, sitting lonely on that placid bust, spoke only
    That one word, as if its soul in that one word he did outpour
    Nothing farther then he uttered; not a feather then he fluttered—
    Till I scarcely more than muttered: “Other friends have flown before—
    On the morrow _he_ will leave me, as my Hopes have flown before.”
    Then the bird said “Nevermore.”

    Startled at the stillness broken by reply so aptly spoken,
    “Doubtless,” said I, “what it utters is its only stock and store,
    Caught from some unhappy master whom unmerciful Disaster
    Followed fast and followed faster till his songs one burden bore—
    Till the dirges of his Hope that melancholy burden bore
    Of ‘Never—nevermore.’”

    But the Raven still beguiling all my sad soul into smiling,
    Straight I wheeled a cushioned seat in front of bird and bust and door;
    Then, upon the velvet sinking, I betook myself to linking
    Fancy unto fancy, thinking what this ominous bird of yore—
    What this grim, ungainly, ghastly, gaunt, and ominous bird of yore
    Meant in croaking “Nevermore.”

    This I sat engaged in guessing, but no syllable expressing
    To the fowl whose fiery eyes now burned into my bosom’s core;
    This and more I sat divining, with my head at ease reclining
    On the cushion’s velvet lining that the lamp-light gloated o’er,
    But whose velvet violet lining with the lamp-light gloating o’er
    _She_ shall press, ah, nevermore!

    Then, methought, the air grew denser, perfumed from an unseen censer
    Swung by Seraphim whose foot-falls tinkled on the tufted floor.
    “Wretch,” I cried, “thy God hath lent thee—by these angels he hath sent thee
    Respite—respite and nepenthe from thy memories of Lenore!
    Quaff, oh quaff this kind nepenthe and forget this lost Lenore!”
    Quoth the Raven, “Nevermore.”

    “Prophet!” said I, “thing of evil!—prophet still, if bird or devil!—
    Whether Tempter sent, or whether tempest tossed thee here ashore,
    Desolate, yet all undaunted, on this desert land enchanted—
    On this home by Horror haunted—tell me truly, I implore—
    Is there—_is_ there balm in Gilead?—tell me—tell me, I implore!”
    Quoth the Raven, “Nevermore.”

    “Prophet!” said I, “thing of evil!—prophet still, if bird or devil!
    By that Heaven that bends above us—by that God we both adore—
    Tell this soul with sorrow laden if, within the distant Aidenn,
    It shall clasp a sainted maiden whom the angels name Lenore—
    Clasp a rare and radiant maiden whom the angels name Lenore.”
    Quoth the Raven, “Nevermore.”

    “Be that our sign of parting, bird or fiend!” I shrieked, upstarting—
    “Get thee back into the tempest and the Night’s Plutonian shore!
    Leave no black plume as a token of that lie thy soul has spoken!
    Leave my loneliness unbroken!—quit the bust above my door!
    Take thy beak from out my heart, and take thy form from off my door!”
    Quoth the Raven, “Nevermore.”

    And the Raven, never flitting, still is sitting, still is sitting
    On the pallid bust of Pallas just above my chamber door;
    And his eyes have all the seeming of a demon’s that is dreaming
    And the lamp-light o’er him streaming throws his shadows on the floor;
    And my soul from out that shadow that lies floating on the floor
    Shall be lifted—nevermore!

  • United States Declaration of Independence (1776)

    IN CONGRESS, July 4, 1776

    The unanimous Declaration of the thirteen united States of America

    When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume, among the Powers of the earth, the separate and equal station to which the Laws of Nature and of Nature’s God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation.

    We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty, and the pursuit of Happiness. That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness. Prudence, indeed, will dictate that Governments long established should not be changed for light and transient causes; and accordingly all experience hath shown, that mankind are more disposed to suffer, while evils are sufferable, than to right themselves by abolishing the forms to which they are accustomed. But when a long train of abuses and usurpations, pursuing invariably the same Object evinces a design to reduce them under absolute Despotism, it is their right, it is their duty, to throw off such Government, and to provide new Guards for their future security. –Such has been the patient sufferance of these Colonies; and such is now the necessity which constrains them to alter their former Systems of Government. The history of the present King of Great Britain is a history of repeated injuries and usurpations, all having in direct object the establishment of an absolute Tyranny over these States. To prove this, let Facts be submitted to a candid world.

    He has refused his Assent to Laws, the most wholesome and necessary for the public good.

    He has forbidden his Governors to pass Laws of immediate and pressing importance, unless suspended in their operation till his Assent should be obtained; and when so suspended, he has utterly neglected to attend to them.

    He has refused to pass other Laws for the accommodation of large districts of people, unless those people would relinquish the right of Representation in the Legislature, a right inestimable to them and formidable to tyrants only.

    He has called together legislative bodies at places unusual, uncomfortable, and distant from the depository of their Public Records, for the sole purpose of fatiguing them into compliance with his measures.

    He has dissolved Representative Houses repeatedly, for opposing with manly firmness his invasions on the rights of the people.

    He has refused for a long time, after such dissolutions, to cause others to be elected; whereby the Legislative Powers, incapable of Annihilation, have returned to the People at large for their exercise; the State remaining in the mean time exposed to all the dangers of invasion from without, and convulsions within.

    He has endeavoured to prevent the population of these States; for that purpose obstructing the Laws of Naturalization of Foreigners; refusing to pass others to encourage their migration hither, and raising the conditions of new Appropriations of Lands.

    He has obstructed the Administration of Justice, by refusing his Assent to Laws for establishing Judiciary Powers.

    He has made judges dependent on his Will alone, for the tenure of their offices, and the amount and payment of their salaries.

    He has erected a multitude of New Offices, and sent hither swarms of Officers to harass our People, and eat out their substance.

    He has kept among us, in times of peace, Standing Armies without the Consent of our legislatures.

    He has affected to render the Military independent of and superior to the Civil Power.

    He has combined with others to subject us to a jurisdiction foreign to our constitution, and unacknowledged by our laws; giving his Assent to their Acts of pretended legislation:

    For quartering large bodies of armed troops among us:

    For protecting them, by a mock Trial, from Punishment for any Murders which they should commit on the Inhabitants of these States:

    For cutting off our Trade with all parts of the world:

    For imposing taxes on us without our Consent:

    For depriving us, in many cases, of the benefits of Trial by Jury:

    For transporting us beyond Seas to be tried for pretended offences:

    For abolishing the free System of English Laws in a neighbouring Province, establishing therein an Arbitrary government, and enlarging its Boundaries so as to render it at once an example and fit instrument for introducing the same absolute rule into these Colonies:

    For taking away our Charters, abolishing our most valuable Laws, and altering fundamentally the Forms of our Governments:

    For suspending our own Legislatures, and declaring themselves invested with Power to legislate for us in all cases whatsoever.

    He has abdicated Government here, by declaring us out of his Protection and waging War against us.

    He has plundered our seas, ravaged our Coasts, burnt our towns, and destroyed the lives of our people.

    He is at this time transporting large armies of foreign mercenaries to compleat the works of death, desolation and tyranny, already begun with circumstances of Cruelty & perfidy scarcely paralleled in the most barbarous ages, and totally unworthy of the Head of a civilized nation.

    He has constrained our fellow Citizens taken Captive on the high Seas to bear Arms against their Country, to become the executioners of their friends and Brethren, or to fall themselves by their Hands.

    He has excited domestic insurrections amongst us, and has endeavoured to bring on the inhabitants of our frontiers, the merciless Indian Savages, whose known rule of warfare, is an undistinguished destruction of all ages, sexes and conditions.

    In every stage of these Oppressions We have Petitioned for Redress in the most humble terms: Our repeated Petitions have been answered only by repeated injury. A Prince, whose character is thus marked by every act which may define a Tyrant, is unfit to be the ruler of a free People.

    Nor have We been wanting in attention to our British brethren. We have warned them from time to time of attempts by their legislature to extend an unwarrantable jurisdiction over us. We have reminded them of the circumstances of our emigration and settlement here. We have appealed to their native justice and magnanimity, and we have conjured them by the ties of our common kindred to disavow these usurpations, which would inevitably interrupt our connections and correspondence. They too have been deaf to the voice of justice and of consanguinity. We must, therefore, acquiesce in the necessity, which denounces our Separation, and hold them, as we hold the rest of mankind, Enemies in War, in Peace Friends.

    We, therefore, the Representatives of the United States of America, in General Congress, Assembled, appealing to the Supreme Judge of the world for the rectitude of our intentions, do, in the Name, and by the Authority of the good People of these Colonies, solemnly publish and declare, That these United Colonies are, and of Right ought to be Free and Independent States; that they are Absolved from all Allegiance to the British Crown, and that all political connection between them and the State of Great Britain, is and ought to be totally dissolved; and that as Free and Independent States, they have full Power to levy War, conclude Peace, contract Alliances, establish Commerce, and to do all other Acts and Things which Independent States may of right do. And for the support of this Declaration, with a firm reliance on the Protection of Divine Providence, we mutually pledge to each other our Lives, our Fortunes and our sacred Honor.

  • The Zen of Python (PEP 20)

    Long time Pythoneer Tim Peters succinctly channels the BDFL’s guiding
    principles for Python’s design into 20 aphorisms, only 19 of which
    have been written down.

    Beautiful is better than ugly.
    Explicit is better than implicit.
    Simple is better than complex.
    Complex is better than complicated.
    Flat is better than nested.
    Sparse is better than dense.
    Readability counts.
    Special cases aren’t special enough to break the rules.
    Although practicality beats purity.
    Errors should never pass silently.
    Unless explicitly silenced.
    In the face of ambiguity, refuse the temptation to guess.
    There should be one– and preferably only one –obvious way to do it.
    Although that way may not be obvious at first unless you’re Dutch.
    Now is better than never.
    Although never is often better than *right* now.
    If the implementation is hard to explain, it’s a bad idea.
    If the implementation is easy to explain, it may be a good idea.
    Namespaces are one honking great idea — let’s do more of those!

    >>> import this

    Originally posted to comp.lang.python/python-list@python.org under a
    thread called `”The Way of Python”
    <https://groups.google.com/d/msg/comp.lang.python/B_VxeTBClM0/L8W9KlsiriUJ>`__

    This document has been placed in the public domain.

  • Genesis 1 (King James Version)

    1 In the beginning God created the heaven and the earth. 2 And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.

    3 And God said, Let there be light: and there was light.

    4 And God saw the light, that

    it was good: and God divided the light from the darkness.

    * 5 And God called the light Day, and the darkness he called Night. And the evening and the morning were the first day.

    â 6 ¶ And God said, Let there be a firmament in the midst of the waters, and let it divide the waters from the waters.

    â¡ 7 And God made the firmament, and divided the waters which

    were under the firmament from the waters which

    were above the firmament: and it was so.

    8 And God called the firmament Heaven. And the evening and the morning were the second day.

    § 9 ¶ And God said, Let the waters under the heaven be gathered together unto one place, and let the dry

    land appear: and it was so.

    10 And God called the dry

    land Earth; and the gathering together of the waters called he Seas: and God saw that

    it was good.

    11 And God said, Let the earth bring forth grass, the herb yielding seed,

    and the fruit tree yielding fruit after his kind, whose seed

    is in itself, upon the earth: and it was so.

    ** 12 And the earth brought forth grass,

    and herb yielding seed after his kind, and the tree yielding fruit, whose seed

    was in itself, after his kind: and God saw that

    it was good.

    13 And the evening and the morning were the third day.

    â â 14 ¶ And God said, Let there be lights in the firmament of the heaven to divide the day from the night; and let them be for signs, and for seasons, and for days, and years:

    â¡â¡ 15 And let them be for lights in the firmament of the heaven to give light upon the earth: and it was so.

    16 And God made two great lights; the greater light to rule the day, and the lesser light to rule the night:

    he made the stars also.

    §§ 17 And God set them in the firmament of the heaven to give light upon the earth,

    18 And to rule over the day and over the night, and to divide the light from the darkness: and God saw that

    it was good.

    19 And the evening and the morning were the fourth day.

    *** 20 And God said, Let the waters bring forth abundantly the moving creature that hath life, and fowl

    that may fly above the earth in the open firmament of heaven.

    â â â â¡â¡â¡Â§Â§Â§* 21 And God created great whales, and every living creature that moveth, which the waters brought forth abundantly, after their kind, and every winged fowl after his kind: and God saw that

    it was good.

    22 And God blessed them, saying, Be fruitful, and multiply, and fill the waters in the seas, and let fowl multiply in the earth.

    23 And the evening and the morning were the fifth day.

    â 24 ¶ And God said, Let the earth bring forth the living creature after his kind, cattle, and creeping thing, and beast of the earth after his kind: and it was so. 25 And God made the beast of the earth after his kind, and cattle after their kind, and every thing that creepeth upon the earth after his kind: and God saw that it was good.

    26 ¶ And God said, Let us make man in our image, after our likeness: and let them have dominion over the fish of the sea, and over the fowl of the air, and over the cattle, and over all the earth, and over every creeping thing that creepeth upon the earth.

    27 So God created man in his

    own image, in the image of God created he him; male and female created he them.

    28 And God blessed them, and God said unto them, Be fruitful, and multiply, and replenish the earth, and subdue it: and have dominion over the fish of the sea, and over the fowl of the air, and over every living thing that moveth upon the earth.

    ⡠29 ¶ And God said, Behold, I have given you every herb bearing seed, which

    is upon the face of all the earth, and every tree, in the which

    is the fruit of a tree yielding seed; to you it shall be for meat.

    §** 30 And to every beast of the earth, and to every fowl of the air, and to every thing that creepeth upon the earth, wherein

    there is life,

    I have given every green herb for meat: and it was so.

    â â 31 And God saw every thing that he had made, and, behold,

    it was very good. And the evening and the morning were the sixth day.

    â¡â¡

    You may copy the King James Version of the Holy Bible freely. If you find a typo that is not just an archaic spelling,

    please report it.

    Public Domain

  • If—

    If you can keep your head when all about you
    Are losing theirs and blaming it on you;
    If you can trust yourself when all men doubt you,
    But make allowance for their doubting too:
    If you can wait and not be tired by waiting,
    Or being lied about, don’t deal in lies,
    Or being hated don’t give way to hating,
    And yet don’t look too good, nor talk too wise;

    If you can dream—and not make dreams your master;
    If you can think—and not make thoughts your aim,
    If you can meet with Triumph and Disaster
    And treat those two impostors just the same:
    If you can bear to hear the truth you’ve spoken
    Twisted by knaves to make a trap for fools,
    Or watch the things you gave your life to, broken,
    And stoop and build ’em up with worn-out tools;

    If you can make one heap of all your winnings
    And risk it on one turn of pitch-and-toss,
    And lose, and start again at your beginnings
    ⁠And never breathe a word about your loss:
    If you can force your heart and nerve and sinew
    To serve your turn long after they are gone,
    And so hold on when there is nothing in you
    ⁠Except the Will which says to them: ‘Hold on!’

    If you can talk with crowds and keep your virtue,
    Or walk with Kings—nor lose the common touch,
    If neither foes nor loving friends can hurt you,
    If all men count with you, but none too much:
    If you can fill the unforgiving minute
    With sixty seconds’ worth of distance run,
    Yours is the Earth and everything that’s in it,
    ⁠And—which is more—you’ll be a Man, my son!

  • Apache License, Version 2.0

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    1. Definitions.

    “License” shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.

    “Licensor” shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.

    “Legal Entity” shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, “control” means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

    “You” (or “Your”) shall mean an individual or Legal Entity exercising permissions granted by this License.

    “Source” form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.

    “Object” form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.

    “Work” shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).

    “Derivative Works” shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.

    “Contribution” shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, “submitted” means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as “Not a Contribution.”

    “Contributor” shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.

    2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.

    3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.

    4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:

    (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and

    (b) You must cause any modified files to carry prominent notices stating that You changed the files; and

    (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and

    (d) If the Work includes a “NOTICE” text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.

    You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

    5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.

    6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.

    7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.

    8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.

    9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.

    END OF TERMS AND CONDITIONS

    APPENDIX: How to apply the Apache License to your work.

    To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets “[]” replaced with your own identifying information. (Don’t include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same “printed page” as the copyright notice for easier identification within third-party archives.

    Copyright [yyyy] [name of copyright owner]

    Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  • BSD 3-Clause “New” or “Revised” License (SPDX canonical text)

    Copyright (c) <year> <owner>.

    Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

    3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

  • United States Bill of Rights (Amendments I–X, 1791)

    Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press, or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.

    II

    A well-regulated militia, being necessary to the security of a free State, the right of the people to keep and bear arms, shall not be infringed.

    III No soldier shall, in time of peace be quartered in any house, without the consent of the owner, nor in time of war, but in a manner to be prescribed by law.

    IV

    The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized.

    V

    No person shall be held to answer for a capital, or otherwise infamous crime, unless on a presentment or indictment of a Grand Jury, except in cases arising in the land or naval forces, or in the Militia, when in actual service in time of War or public danger; nor shall any person be subject for the same offense to be twice put in jeopardy of life or limb; nor shall be compelled in any criminal case to be a witness against himself, nor be deprived of life, liberty, or property, without due process of law; nor shall private property be taken for public use without just compensation.

    VI

    In all criminal prosecutions, the accused shall enjoy the right to a speedy and public trial, by an impartial jury of the State and district wherein the crime shall have been committed, which district shall have been previously ascertained by law, and to be informed of the nature and cause of the accusation; to be confronted with the witnesses against him; to have compulsory process for obtaining witnesses in his favor, and to have the assistance of counsel for his defense.

    VII

    In suits at common law, where the value in controversy shall exceed twenty dollars, the right of trial by jury shall be preserved, and no fact tried by a jury shall be otherwise re-examined in any court of the United States, than according to the rules of the common law.

    VIII

    Excessive bail shall not be required nor excessive fines imposed, nor cruel and unusual punishments inflicted.

    IX

    The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.

    X

    The powers not delegated to the United States by the Constitution, nor prohibited by it to the States, are reserved to the States respectively, or to the people.