(256, {0.0});
211 | }
212 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | # vibra
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | ### Overview
20 |
21 | * **vibra** is a library and CLI tool for music recognition using the **unofficial** Shazam API.
22 | * It analyzes audio files, generates fingerprints, and queries Shazam's database for song identification.
23 | * **Key features**:
24 | * Fast and lightweight, optimized for various platforms, including embedded devices.
25 | * Cross-platform support: Linux, Windows, macOS, **WebAssembly**, and **FFI bindings** for other languages.
26 | * Flexible input processing: native support for WAV files, optional FFmpeg for other formats.
27 | * **Based on Shazam's algorithm**:
28 | * [An Industrial-Strength Audio Search Algorithm](https://www.ee.columbia.edu/~dpwe/papers/Wang03-shazam.pdf)
29 | * [How does Shazam work](https://www.cameronmacleod.com/blog/how-does-shazam-work)
30 | * **Inspired by** [SongRec](https://github.com/marin-m/SongRec/tree/master), adapted to C++ 11.
31 | * **Target platforms**:
32 | * Embedded devices (e.g., Raspberry Pi, Jetson Nano)
33 | * Desktop and server environments for high-performance recognition
34 | * WebAssembly for web-based use
35 | * Additional support for iOS, Android, and other languages via FFI bindings
36 |
37 | ### Live Demo
38 | * You can try the music recognition with the **[WebAssembly version of vibra here](https://bayernmuller.github.io/vibra-live-demo/)**
39 | * The source code for the demo is available at [vibra-live-demo](https://github.com/bayernmuller/vibra-live-demo)
40 |
41 | ### Platform Compatibility and Build Status
42 |
43 | | Platform | Status | Workflows |
44 | |--------|--------|--------|
45 | | **Linux AMD64** | [![linux-amd64-main]][linux-amd64-main] | [build-linux-amd64] |
46 | | **Linux ARM64** | [![linux-arm64-main]][linux-arm64-main] | [build-linux-arm64] |
47 | | **MacOS AMD64** | [![macos-amd64-main]][macos-amd64-main] | [build-macos-amd64] |
48 | | **MacOS ARM64** | [![macos-arm64-main]][macos-arm64-main] | [build-macos-arm64] |
49 | | **Windows AMD64** | [![windows-amd64-main]][windows-amd64-main] | [build-windows-amd64] |
50 | | **WebAssembly** | [![webassembly-main]][webassembly-main] | [build-webassembly] |
51 | | ***Python*** | *Coming soon...* | - |
52 |
53 | ### Building the WebAssembly Version
54 | * Please refer to **[bindings/wasm/README.md](bindings/wasm/README.md)** for instructions on building and running the WebAssembly version of vibra.
55 |
56 | ### Building the Native Version
57 |
58 | #### Prerequisites
59 | * vibra requires CMake for its build process. Please install [CMake](https://cmake.org/) before proceeding.
60 | * The project is developed using the **C++11** standard.
61 | * vibra has the following dependencies:
62 | * [CMake](https://cmake.org/): A cross-platform build system generator.
63 | * [libfftw3](http://www.fftw.org/): A library for computing Fast Fourier Transforms.
64 | * [libcurl](https://curl.se/libcurl/) (CLI tool only): A library for transferring data with URLs.
65 | * If you don't need CLI tool, libcurl is not required.
66 | * You can disable it by setting the `-DLIBRARY_ONLY=ON` option in the CMake command.
67 | * [FFmpeg](https://ffmpeg.org/) (Optional): Provides support for audio formats other than WAV (e.g., MP3, FLAC).
68 | * Install FFmpeg if you need to process audio files in formats other than WAV.
69 |
70 | #### Install dependencies
71 | * **Ubuntu**
72 | * `sudo apt-get update`
73 | * `sudo apt-get install cmake libcurl4-openssl-dev libfftw3-dev`
74 | * `sudo apt-get install ffmpeg` (Optional)
75 | * **Windows**
76 | * Install [CMake](https://cmake.org/download/)
77 | * Install [vcpkg](https://github.com/Microsoft/vcpkg)
78 | * Install dependencies using vcpkg:
79 | * `vcpkg install curl:x64-windows fftw3:x64-windows`
80 | * Add the vcpkg toolchain file to your CMake command (see Build section)
81 | * Install [FFmpeg](https://ffmpeg.org/download.html#build-windows) (Optional)
82 | * **macOS**
83 | * Install [Homebrew](https://brew.sh/)
84 | * `brew install cmake curl fftw`
85 | * `brew install ffmpeg` (Optional)
86 |
87 |
88 | #### Build
89 | * Clone vibra repository
90 | * `git clone https://github.com/bayernmuller/vibra.git`
91 |
92 | * Run the following commands to build vibra:
93 | * `cd vibra`
94 | * `mkdir build && cd build`
95 | * `cmake ..`
96 | * `make`
97 | * `sudo make install` (Optional)
98 | * Installs the libvibra static, shared libraries and the vibra command-line tool.
99 |
100 | #### Usage
101 |
102 | Use --help option to see the help message.
103 |
104 | ```
105 | vibra {COMMAND} [OPTIONS]
106 |
107 | Options:
108 |
109 | Commands:
110 | -F, --fingerprint Generate a fingerprint
111 | -R, --recognize Recognize a song
112 | -h, --help Display this help menu
113 | Sources:
114 | File sources:
115 | -f, --file File path
116 | Raw PCM sources:
117 | -s, --seconds Chunk seconds
118 | -r, --rate Sample rate
119 | -c, --channels Channels
120 | -b, --bits Bits per sample
121 | ```
122 |
123 |
124 |
125 | ##### Recognizing a song from a WAV file
126 | ```bash
127 | vibra --recognize --file sample.wav > result.json
128 |
129 | jq .track.title result.json
130 | "Stairway To Heaven"
131 | jq .track.subtitle result.json
132 | "Led Zeppelin"
133 | jq .track.share.href result.json
134 | "https://www.shazam.com/track/5933917/stairway-to-heaven"
135 | ```
136 |
137 | ##### Recognizing a song from a microphone
138 | * You can use [sox](http://sox.sourceforge.net/) or [FFmpeg](https://ffmpeg.org/) to capture raw PCM data from the **microphone**.
139 | * **sox**
140 | ```bash
141 | sox -d -t raw -b 24 -e signed-integer -r 44100 -c 1 - 2>/dev/null
142 | | vibra --recognize --seconds 5 --rate 44100 --channels 1 --bits 24 > result.json
143 | ```
144 |
145 | * **FFmpeg**
146 | ```bash
147 | ffmpeg -f avfoundation -i ":2" -f s32le -ar 44100 -ac 1 - 2>/dev/null
148 | | vibra --recognize --seconds 5 --rate 44100 --channels 1 --bits 32 > result.json
149 | # - "avfoundation" can be replaced depending on your system.
150 | # - Make sure to use the correct device index for your system.
151 | ```
152 | * **output**
153 | ```bash
154 | jq .track.title result.json
155 | "Bound 2"
156 | jq .track.subtitle result.json
157 | "Kanye West"
158 | jq .track.sections[1].text result.json
159 | [
160 | "B-B-B-Bound to fall in love",
161 | "Bound to fall in love",
162 | "(Uh-huh, honey)",
163 | ...
164 | ]
165 | ```
166 |
167 | ##### Recognizing non-WAV files
168 | * To decode non-WAV media files, FFmpeg must be installed on your system.
169 | * Vibra will attempt to locate FFmpeg in your system's PATH environment variable. If you prefer, you can explicitly specify the FFmpeg path by setting the `FFMPEG_PATH` environment variable.
170 | ```bash
171 | # Automatically find FFmpeg in PATH
172 | vibra --recognize --file sample.mp3
173 |
174 | # Specify the FFmpeg path
175 | export FFMPEG_PATH=/opt/homebrew/bin/ffmpeg
176 | vibra --recognize --file sample.mp3
177 | # You can use your own FFmpeg which is optimized for your system.
178 | ```
179 | * You can see the sample shazam result json file in [here](https://gist.github.com/BayernMuller/b92fd43eef4471b7016009196e62e4d2)
180 |
181 | ### FFI Bindings
182 | * vibra provides FFI bindings, allowing other languages to leverage its music recognition functionality.
183 | * After building vibra, the shared library `libvibra.so` will be located in the `build` directory.
184 | * This shared library can be integrated into languages such as Python or Swift using FFI mechanisms.
185 | * For detailed function signatures, please refer to the vibra header file [vibra.h](include/vibra.h).
186 |
187 |
188 | ### Performance comparison
189 |
190 | 
191 | lower is better
192 |
193 |
194 | * I compared the performance of vibra with the [SongRec](https://github.com/marin-m/SongRec/tree/master) rust and python version on the Raspberry Pi 4.
195 | * vibra is about 2 times faster than the SongRec!
196 |
197 | ### License
198 | * vibra is licensed under the GPLv3 license. See [LICENSE](LICENSE) for more details.
199 |
200 |
201 |
202 | [linux-amd64-main]: https://github.com/bayernmuller/vibra/actions/workflows/build-linux-amd64.yaml/badge.svg
203 | [build-linux-amd64]: https://github.com/bayernmuller/vibra/tree/main/.github/workflows/build-linux-amd64.yaml
204 |
205 | [linux-arm64-main]: https://github.com/bayernmuller/vibra/actions/workflows/build-linux-arm64.yaml/badge.svg
206 | [build-linux-arm64]: https://github.com/bayernmuller/vibra/tree/main/.github/workflows/build-linux-arm64.yaml
207 |
208 | [macos-amd64-main]: https://github.com/bayernmuller/vibra/actions/workflows/build-macos-amd64.yaml/badge.svg
209 | [build-macos-amd64]: https://github.com/bayernmuller/vibra/tree/main/.github/workflows/build-macos-amd64.yaml
210 |
211 | [macos-arm64-main]: https://github.com/bayernmuller/vibra/actions/workflows/build-macos-arm64.yaml/badge.svg
212 | [build-macos-arm64]: https://github.com/bayernmuller/vibra/tree/main/.github/workflows/build-macos-arm64.yaml
213 |
214 | [windows-amd64-main]: https://github.com/bayernmuller/vibra/actions/workflows/build-windows-amd64.yaml/badge.svg
215 | [build-windows-amd64]: https://github.com/bayernmuller/vibra/tree/main/.github/workflows/build-windows-amd64.yaml
216 |
217 | [webassembly-main]: https://github.com/bayernmuller/vibra/actions/workflows/build-webassembly.yaml/badge.svg
218 | [build-webassembly]: https://github.com/bayernmuller/vibra/tree/main/.github/workflows/build-webassembly.yaml
219 |
--------------------------------------------------------------------------------
/bindings/wasm/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vibra",
3 | "version": "1.0.0",
4 | "lockfileVersion": 2,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "vibra",
9 | "version": "1.0.0",
10 | "license": "ISC",
11 | "bin": {
12 | "vibrajs": "dist/cli.js"
13 | },
14 | "devDependencies": {
15 | "@types/axios": "^0.14.0",
16 | "@types/node": "^20.11.19",
17 | "@types/uuid": "^9.0.8",
18 | "axios": "^1.6.7",
19 | "typescript": "^5.3.3",
20 | "uuid": "^9.0.1"
21 | }
22 | },
23 | "node_modules/@types/axios": {
24 | "version": "0.14.0",
25 | "resolved": "https://registry.npmjs.org/@types/axios/-/axios-0.14.0.tgz",
26 | "integrity": "sha512-KqQnQbdYE54D7oa/UmYVMZKq7CO4l8DEENzOKc4aBRwxCXSlJXGz83flFx5L7AWrOQnmuN3kVsRdt+GZPPjiVQ==",
27 | "deprecated": "This is a stub types definition for axios (https://github.com/mzabriskie/axios). axios provides its own type definitions, so you don't need @types/axios installed!",
28 | "dev": true,
29 | "dependencies": {
30 | "axios": "*"
31 | }
32 | },
33 | "node_modules/@types/node": {
34 | "version": "20.11.19",
35 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz",
36 | "integrity": "sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==",
37 | "dev": true,
38 | "dependencies": {
39 | "undici-types": "~5.26.4"
40 | }
41 | },
42 | "node_modules/@types/uuid": {
43 | "version": "9.0.8",
44 | "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",
45 | "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==",
46 | "dev": true
47 | },
48 | "node_modules/asynckit": {
49 | "version": "0.4.0",
50 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
51 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
52 | "dev": true
53 | },
54 | "node_modules/axios": {
55 | "version": "1.7.7",
56 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
57 | "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
58 | "dev": true,
59 | "dependencies": {
60 | "follow-redirects": "^1.15.6",
61 | "form-data": "^4.0.0",
62 | "proxy-from-env": "^1.1.0"
63 | }
64 | },
65 | "node_modules/combined-stream": {
66 | "version": "1.0.8",
67 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
68 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
69 | "dev": true,
70 | "dependencies": {
71 | "delayed-stream": "~1.0.0"
72 | },
73 | "engines": {
74 | "node": ">= 0.8"
75 | }
76 | },
77 | "node_modules/delayed-stream": {
78 | "version": "1.0.0",
79 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
80 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
81 | "dev": true,
82 | "engines": {
83 | "node": ">=0.4.0"
84 | }
85 | },
86 | "node_modules/follow-redirects": {
87 | "version": "1.15.9",
88 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
89 | "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
90 | "dev": true,
91 | "funding": [
92 | {
93 | "type": "individual",
94 | "url": "https://github.com/sponsors/RubenVerborgh"
95 | }
96 | ],
97 | "engines": {
98 | "node": ">=4.0"
99 | },
100 | "peerDependenciesMeta": {
101 | "debug": {
102 | "optional": true
103 | }
104 | }
105 | },
106 | "node_modules/form-data": {
107 | "version": "4.0.0",
108 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
109 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
110 | "dev": true,
111 | "dependencies": {
112 | "asynckit": "^0.4.0",
113 | "combined-stream": "^1.0.8",
114 | "mime-types": "^2.1.12"
115 | },
116 | "engines": {
117 | "node": ">= 6"
118 | }
119 | },
120 | "node_modules/mime-db": {
121 | "version": "1.52.0",
122 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
123 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
124 | "dev": true,
125 | "engines": {
126 | "node": ">= 0.6"
127 | }
128 | },
129 | "node_modules/mime-types": {
130 | "version": "2.1.35",
131 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
132 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
133 | "dev": true,
134 | "dependencies": {
135 | "mime-db": "1.52.0"
136 | },
137 | "engines": {
138 | "node": ">= 0.6"
139 | }
140 | },
141 | "node_modules/proxy-from-env": {
142 | "version": "1.1.0",
143 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
144 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
145 | "dev": true
146 | },
147 | "node_modules/typescript": {
148 | "version": "5.3.3",
149 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
150 | "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
151 | "dev": true,
152 | "bin": {
153 | "tsc": "bin/tsc",
154 | "tsserver": "bin/tsserver"
155 | },
156 | "engines": {
157 | "node": ">=14.17"
158 | }
159 | },
160 | "node_modules/undici-types": {
161 | "version": "5.26.5",
162 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
163 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
164 | "dev": true
165 | },
166 | "node_modules/uuid": {
167 | "version": "9.0.1",
168 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
169 | "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
170 | "dev": true,
171 | "funding": [
172 | "https://github.com/sponsors/broofa",
173 | "https://github.com/sponsors/ctavan"
174 | ],
175 | "bin": {
176 | "uuid": "dist/bin/uuid"
177 | }
178 | }
179 | },
180 | "dependencies": {
181 | "@types/axios": {
182 | "version": "0.14.0",
183 | "resolved": "https://registry.npmjs.org/@types/axios/-/axios-0.14.0.tgz",
184 | "integrity": "sha512-KqQnQbdYE54D7oa/UmYVMZKq7CO4l8DEENzOKc4aBRwxCXSlJXGz83flFx5L7AWrOQnmuN3kVsRdt+GZPPjiVQ==",
185 | "dev": true,
186 | "requires": {
187 | "axios": "*"
188 | }
189 | },
190 | "@types/node": {
191 | "version": "20.11.19",
192 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz",
193 | "integrity": "sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==",
194 | "dev": true,
195 | "requires": {
196 | "undici-types": "~5.26.4"
197 | }
198 | },
199 | "@types/uuid": {
200 | "version": "9.0.8",
201 | "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",
202 | "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==",
203 | "dev": true
204 | },
205 | "asynckit": {
206 | "version": "0.4.0",
207 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
208 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
209 | "dev": true
210 | },
211 | "axios": {
212 | "version": "1.7.7",
213 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
214 | "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
215 | "dev": true,
216 | "requires": {
217 | "follow-redirects": "^1.15.6",
218 | "form-data": "^4.0.0",
219 | "proxy-from-env": "^1.1.0"
220 | }
221 | },
222 | "combined-stream": {
223 | "version": "1.0.8",
224 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
225 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
226 | "dev": true,
227 | "requires": {
228 | "delayed-stream": "~1.0.0"
229 | }
230 | },
231 | "delayed-stream": {
232 | "version": "1.0.0",
233 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
234 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
235 | "dev": true
236 | },
237 | "follow-redirects": {
238 | "version": "1.15.9",
239 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
240 | "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
241 | "dev": true
242 | },
243 | "form-data": {
244 | "version": "4.0.0",
245 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
246 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
247 | "dev": true,
248 | "requires": {
249 | "asynckit": "^0.4.0",
250 | "combined-stream": "^1.0.8",
251 | "mime-types": "^2.1.12"
252 | }
253 | },
254 | "mime-db": {
255 | "version": "1.52.0",
256 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
257 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
258 | "dev": true
259 | },
260 | "mime-types": {
261 | "version": "2.1.35",
262 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
263 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
264 | "dev": true,
265 | "requires": {
266 | "mime-db": "1.52.0"
267 | }
268 | },
269 | "proxy-from-env": {
270 | "version": "1.1.0",
271 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
272 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
273 | "dev": true
274 | },
275 | "typescript": {
276 | "version": "5.3.3",
277 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
278 | "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
279 | "dev": true
280 | },
281 | "undici-types": {
282 | "version": "5.26.5",
283 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
284 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
285 | "dev": true
286 | },
287 | "uuid": {
288 | "version": "9.0.1",
289 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
290 | "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
291 | "dev": true
292 | }
293 | }
294 | }
295 |
--------------------------------------------------------------------------------
/lib/utils/hanning.h:
--------------------------------------------------------------------------------
1 | #ifndef LIB_UTILS_HANNING_H_
2 | #define LIB_UTILS_HANNING_H_
3 |
4 | constexpr double HANNIG_MATRIX[] = {
5 | 0.0000023508, 0.0000094032, 0.0000211571, 0.0000376123, 0.0000587689, 0.0000846264,
6 | 0.0001151848, 0.0001504437, 0.0001904028, 0.0002350617, 0.0002844199, 0.0003384771,
7 | 0.0003972327, 0.0004606862, 0.0005288369, 0.0006016843, 0.0006792276, 0.0007614661,
8 | 0.0008483991, 0.0009400256, 0.0010363449, 0.0011373561, 0.0012430582, 0.0013534502,
9 | 0.0014685311, 0.0015882997, 0.0017127550, 0.0018418958, 0.0019757209, 0.0021142290,
10 | 0.0022574189, 0.0024052891, 0.0025578382, 0.0027150650, 0.0028769677, 0.0030435451,
11 | 0.0032147954, 0.0033907171, 0.0035713085, 0.0037565679, 0.0039464936, 0.0041410837,
12 | 0.0043403366, 0.0045442502, 0.0047528227, 0.0049660521, 0.0051839364, 0.0054064735,
13 | 0.0056336614, 0.0058654980, 0.0061019809, 0.0063431081, 0.0065888773, 0.0068392860,
14 | 0.0070943321, 0.0073540131, 0.0076183265, 0.0078872699, 0.0081608407, 0.0084390363,
15 | 0.0087218542, 0.0090092917, 0.0093013461, 0.0095980146, 0.0098992944, 0.0102051828,
16 | 0.0105156768, 0.0108307735, 0.0111504700, 0.0114747632, 0.0118036501, 0.0121371277,
17 | 0.0124751927, 0.0128178420, 0.0131650723, 0.0135168805, 0.0138732631, 0.0142342169,
18 | 0.0145997385, 0.0149698243, 0.0153444710, 0.0157236751, 0.0161074328, 0.0164957407,
19 | 0.0168885951, 0.0172859922, 0.0176879285, 0.0180944000, 0.0185054029, 0.0189209335,
20 | 0.0193409877, 0.0197655616, 0.0201946513, 0.0206282527, 0.0210663617, 0.0215089742,
21 | 0.0219560861, 0.0224076931, 0.0228637910, 0.0233243755, 0.0237894423, 0.0242589870,
22 | 0.0247330052, 0.0252114924, 0.0256944441, 0.0261818558, 0.0266737229, 0.0271700408,
23 | 0.0276708049, 0.0281760103, 0.0286856523, 0.0291997263, 0.0297182272, 0.0302411503,
24 | 0.0307684907, 0.0313002433, 0.0318364032, 0.0323769653, 0.0329219246, 0.0334712759,
25 | 0.0340250141, 0.0345831339, 0.0351456301, 0.0357124975, 0.0362837306, 0.0368593242,
26 | 0.0374392727, 0.0380235708, 0.0386122130, 0.0392051936, 0.0398025073, 0.0404041482,
27 | 0.0410101108, 0.0416203894, 0.0422349782, 0.0428538715, 0.0434770634, 0.0441045481,
28 | 0.0447363196, 0.0453723721, 0.0460126996, 0.0466572959, 0.0473061552, 0.0479592712,
29 | 0.0486166378, 0.0492782489, 0.0499440982, 0.0506141795, 0.0512884865, 0.0519670127,
30 | 0.0526497519, 0.0533366976, 0.0540278434, 0.0547231828, 0.0554227092, 0.0561264160,
31 | 0.0568342966, 0.0575463445, 0.0582625528, 0.0589829148, 0.0597074238, 0.0604360730,
32 | 0.0611688555, 0.0619057644, 0.0626467928, 0.0633919337, 0.0641411801, 0.0648945250,
33 | 0.0656519612, 0.0664134817, 0.0671790793, 0.0679487469, 0.0687224770, 0.0695002626,
34 | 0.0702820963, 0.0710679706, 0.0718578783, 0.0726518119, 0.0734497639, 0.0742517269,
35 | 0.0750576933, 0.0758676555, 0.0766816058, 0.0774995368, 0.0783214406, 0.0791473095,
36 | 0.0799771357, 0.0808109116, 0.0816486291, 0.0824902805, 0.0833358578, 0.0841853531,
37 | 0.0850387583, 0.0858960656, 0.0867572667, 0.0876223536, 0.0884913182, 0.0893641523,
38 | 0.0902408477, 0.0911213962, 0.0920057894, 0.0928940190, 0.0937860768, 0.0946819542,
39 | 0.0955816430, 0.0964851345, 0.0973924204, 0.0983034921, 0.0992183410, 0.1001369586,
40 | 0.1010593361, 0.1019854650, 0.1029153364, 0.1038489418, 0.1047862722, 0.1057273189,
41 | 0.1066720730, 0.1076205257, 0.1085726679, 0.1095284909, 0.1104879855, 0.1114511428,
42 | 0.1124179537, 0.1133884090, 0.1143624998, 0.1153402168, 0.1163215508, 0.1173064927,
43 | 0.1182950331, 0.1192871627, 0.1202828722, 0.1212821523, 0.1222849936, 0.1232913866,
44 | 0.1243013218, 0.1253147898, 0.1263317811, 0.1273522860, 0.1283762950, 0.1294037985,
45 | 0.1304347867, 0.1314692500, 0.1325071788, 0.1335485631, 0.1345933932, 0.1356416593,
46 | 0.1366933516, 0.1377484601, 0.1388069749, 0.1398688861, 0.1409341836, 0.1420028576,
47 | 0.1430748978, 0.1441502943, 0.1452290369, 0.1463111155, 0.1473965199, 0.1484852399,
48 | 0.1495772653, 0.1506725857, 0.1517711910, 0.1528730707, 0.1539782145, 0.1550866121,
49 | 0.1561982529, 0.1573131265, 0.1584312225, 0.1595525304, 0.1606770395, 0.1618047394,
50 | 0.1629356193, 0.1640696688, 0.1652068770, 0.1663472334, 0.1674907272, 0.1686373477,
51 | 0.1697870840, 0.1709399254, 0.1720958610, 0.1732548799, 0.1744169713, 0.1755821242,
52 | 0.1767503277, 0.1779215707, 0.1790958423, 0.1802731315, 0.1814534271, 0.1826367180,
53 | 0.1838229932, 0.1850122415, 0.1862044516, 0.1873996124, 0.1885977127, 0.1897987412,
54 | 0.1910026865, 0.1922095374, 0.1934192825, 0.1946319104, 0.1958474098, 0.1970657692,
55 | 0.1982869772, 0.1995110222, 0.2007378927, 0.2019675773, 0.2032000643, 0.2044353422,
56 | 0.2056733994, 0.2069142242, 0.2081578049, 0.2094041298, 0.2106531873, 0.2119049656,
57 | 0.2131594529, 0.2144166374, 0.2156765073, 0.2169390508, 0.2182042559, 0.2194721108,
58 | 0.2207426036, 0.2220157223, 0.2232914549, 0.2245697895, 0.2258507140, 0.2271342163,
59 | 0.2284202845, 0.2297089064, 0.2310000699, 0.2322937629, 0.2335899731, 0.2348886885,
60 | 0.2361898967, 0.2374935856, 0.2387997429, 0.2401083564, 0.2414194136, 0.2427329023,
61 | 0.2440488102, 0.2453671248, 0.2466878338, 0.2480109247, 0.2493363851, 0.2506642026,
62 | 0.2519943646, 0.2533268587, 0.2546616722, 0.2559987928, 0.2573382077, 0.2586799044,
63 | 0.2600238703, 0.2613700928, 0.2627185591, 0.2640692567, 0.2654221727, 0.2667772945,
64 | 0.2681346094, 0.2694941045, 0.2708557672, 0.2722195845, 0.2735855437, 0.2749536319,
65 | 0.2763238362, 0.2776961439, 0.2790705418, 0.2804470173, 0.2818255572, 0.2832061487,
66 | 0.2845887787, 0.2859734343, 0.2873601024, 0.2887487700, 0.2901394241, 0.2915320515,
67 | 0.2929266392, 0.2943231740, 0.2957216428, 0.2971220325, 0.2985243300, 0.2999285219,
68 | 0.3013345951, 0.3027425364, 0.3041523326, 0.3055639704, 0.3069774365, 0.3083927176,
69 | 0.3098098005, 0.3112286717, 0.3126493180, 0.3140717260, 0.3154958823, 0.3169217735,
70 | 0.3183493863, 0.3197787071, 0.3212097227, 0.3226424194, 0.3240767838, 0.3255128025,
71 | 0.3269504619, 0.3283897485, 0.3298306489, 0.3312731493, 0.3327172363, 0.3341628964,
72 | 0.3356101158, 0.3370588810, 0.3385091784, 0.3399609943, 0.3414143150, 0.3428691270,
73 | 0.3443254166, 0.3457831699, 0.3472423734, 0.3487030133, 0.3501650759, 0.3516285474,
74 | 0.3530934141, 0.3545596622, 0.3560272778, 0.3574962473, 0.3589665568, 0.3604381924,
75 | 0.3619111404, 0.3633853868, 0.3648609179, 0.3663377196, 0.3678157783, 0.3692950799,
76 | 0.3707756105, 0.3722573563, 0.3737403032, 0.3752244374, 0.3767097449, 0.3781962117,
77 | 0.3796838239, 0.3811725674, 0.3826624282, 0.3841533924, 0.3856454460, 0.3871385748,
78 | 0.3886327649, 0.3901280022, 0.3916242727, 0.3931215622, 0.3946198567, 0.3961191422,
79 | 0.3976194044, 0.3991206294, 0.4006228029, 0.4021259109, 0.4036299393, 0.4051348738,
80 | 0.4066407004, 0.4081474048, 0.4096549729, 0.4111633906, 0.4126726436, 0.4141827178,
81 | 0.4156935990, 0.4172052728, 0.4187177253, 0.4202309420, 0.4217449088, 0.4232596115,
82 | 0.4247750358, 0.4262911674, 0.4278079921, 0.4293254957, 0.4308436638, 0.4323624822,
83 | 0.4338819366, 0.4354020128, 0.4369226964, 0.4384439731, 0.4399658286, 0.4414882486,
84 | 0.4430112189, 0.4445347250, 0.4460587526, 0.4475832875, 0.4491083153, 0.4506338216,
85 | 0.4521597921, 0.4536862125, 0.4552130684, 0.4567403454, 0.4582680291, 0.4597961053,
86 | 0.4613245596, 0.4628533775, 0.4643825447, 0.4659120468, 0.4674418695, 0.4689719983,
87 | 0.4705024189, 0.4720331168, 0.4735640778, 0.4750952873, 0.4766267310, 0.4781583944,
88 | 0.4796902633, 0.4812223231, 0.4827545595, 0.4842869581, 0.4858195044, 0.4873521841,
89 | 0.4888849827, 0.4904178858, 0.4919508790, 0.4934839479, 0.4950170780, 0.4965502551,
90 | 0.4980834645, 0.4996166920, 0.5011499231, 0.5026831434, 0.5042163384, 0.5057494938,
91 | 0.5072825951, 0.5088156280, 0.5103485780, 0.5118814306, 0.5134141715, 0.5149467863,
92 | 0.5164792606, 0.5180115799, 0.5195437298, 0.5210756959, 0.5226074639, 0.5241390193,
93 | 0.5256703477, 0.5272014347, 0.5287322659, 0.5302628270, 0.5317931035, 0.5333230810,
94 | 0.5348527452, 0.5363820817, 0.5379110760, 0.5394397139, 0.5409679809, 0.5424958627,
95 | 0.5440233449, 0.5455504131, 0.5470770530, 0.5486032503, 0.5501289905, 0.5516542593,
96 | 0.5531790424, 0.5547033255, 0.5562270942, 0.5577503341, 0.5592730311, 0.5607951706,
97 | 0.5623167385, 0.5638377205, 0.5653581021, 0.5668778692, 0.5683970074, 0.5699155024,
98 | 0.5714333401, 0.5729505060, 0.5744669860, 0.5759827657, 0.5774978309, 0.5790121675,
99 | 0.5805257610, 0.5820385974, 0.5835506623, 0.5850619416, 0.5865724210, 0.5880820864,
100 | 0.5895909235, 0.5910989182, 0.5926060563, 0.5941123235, 0.5956177058, 0.5971221890,
101 | 0.5986257590, 0.6001284015, 0.6016301025, 0.6031308479, 0.6046306235, 0.6061294153,
102 | 0.6076272091, 0.6091239908, 0.6106197465, 0.6121144619, 0.6136081231, 0.6151007161,
103 | 0.6165922267, 0.6180826410, 0.6195719449, 0.6210601245, 0.6225471657, 0.6240330546,
104 | 0.6255177772, 0.6270013195, 0.6284836676, 0.6299648076, 0.6314447254, 0.6329234073,
105 | 0.6344008392, 0.6358770074, 0.6373518979, 0.6388254968, 0.6402977903, 0.6417687646,
106 | 0.6432384058, 0.6447067001, 0.6461736337, 0.6476391928, 0.6491033636, 0.6505661323,
107 | 0.6520274853, 0.6534874087, 0.6549458889, 0.6564029120, 0.6578584645, 0.6593125326,
108 | 0.6607651027, 0.6622161610, 0.6636656940, 0.6651136880, 0.6665601294, 0.6680050047,
109 | 0.6694483001, 0.6708900022, 0.6723300973, 0.6737685721, 0.6752054128, 0.6766406060,
110 | 0.6780741383, 0.6795059961, 0.6809361660, 0.6823646344, 0.6837913881, 0.6852164136,
111 | 0.6866396974, 0.6880612262, 0.6894809866, 0.6908989653, 0.6923151490, 0.6937295243,
112 | 0.6951420779, 0.6965527965, 0.6979616669, 0.6993686758, 0.7007738101, 0.7021770564,
113 | 0.7035784016, 0.7049778325, 0.7063753360, 0.7077708989, 0.7091645081, 0.7105561504,
114 | 0.7119458129, 0.7133334824, 0.7147191459, 0.7161027903, 0.7174844027, 0.7188639700,
115 | 0.7202414793, 0.7216169176, 0.7229902721, 0.7243615297, 0.7257306776, 0.7270977029,
116 | 0.7284625927, 0.7298253343, 0.7311859148, 0.7325443214, 0.7339005413, 0.7352545618,
117 | 0.7366063702, 0.7379559537, 0.7393032997, 0.7406483955, 0.7419912284, 0.7433317858,
118 | 0.7446700551, 0.7460060237, 0.7473396791, 0.7486710087, 0.7500000000, 0.7513266405,
119 | 0.7526509177, 0.7539728192, 0.7552923326, 0.7566094454, 0.7579241452, 0.7592364197,
120 | 0.7605462566, 0.7618536435, 0.7631585681, 0.7644610182, 0.7657609816, 0.7670584459,
121 | 0.7683533990, 0.7696458288, 0.7709357230, 0.7722230696, 0.7735078563, 0.7747900713,
122 | 0.7760697023, 0.7773467374, 0.7786211646, 0.7798929718, 0.7811621471, 0.7824286786,
123 | 0.7836925544, 0.7849537626, 0.7862122913, 0.7874681286, 0.7887212629, 0.7899716822,
124 | 0.7912193749, 0.7924643292, 0.7937065334, 0.7949459759, 0.7961826448, 0.7974165288,
125 | 0.7986476160, 0.7998758950, 0.8011013543, 0.8023239822, 0.8035437673, 0.8047606981,
126 | 0.8059747632, 0.8071859511, 0.8083942505, 0.8095996501, 0.8108021384, 0.8120017041,
127 | 0.8131983361, 0.8143920230, 0.8155827536, 0.8167705167, 0.8179553012, 0.8191370958,
128 | 0.8203158896, 0.8214916713, 0.8226644301, 0.8238341547, 0.8250008343, 0.8261644578,
129 | 0.8273250143, 0.8284824929, 0.8296368828, 0.8307881730, 0.8319363527, 0.8330814112,
130 | 0.8342233376, 0.8353621213, 0.8364977515, 0.8376302175, 0.8387595088, 0.8398856146,
131 | 0.8410085244, 0.8421282276, 0.8432447138, 0.8443579723, 0.8454679928, 0.8465747647,
132 | 0.8476782778, 0.8487785216, 0.8498754857, 0.8509691599, 0.8520595339, 0.8531465974,
133 | 0.8542303401, 0.8553107520, 0.8563878228, 0.8574615425, 0.8585319008, 0.8595988878,
134 | 0.8606624934, 0.8617227077, 0.8627795206, 0.8638329222, 0.8648829026, 0.8659294520,
135 | 0.8669725604, 0.8680122182, 0.8690484154, 0.8700811424, 0.8711103895, 0.8721361469,
136 | 0.8731584051, 0.8741771544, 0.8751923852, 0.8762040880, 0.8772122533, 0.8782168716,
137 | 0.8792179335, 0.8802154295, 0.8812093502, 0.8821996864, 0.8831864286, 0.8841695677,
138 | 0.8851490944, 0.8861249994, 0.8870972736, 0.8880659079, 0.8890308931, 0.8899922202,
139 | 0.8909498801, 0.8919038639, 0.8928541624, 0.8938007669, 0.8947436684, 0.8956828581,
140 | 0.8966183271, 0.8975500666, 0.8984780678, 0.8994023221, 0.9003228207, 0.9012395551,
141 | 0.9021525164, 0.9030616963, 0.9039670861, 0.9048686773, 0.9057664615, 0.9066604301,
142 | 0.9075505748, 0.9084368873, 0.9093193592, 0.9101979821, 0.9110727479, 0.9119436483,
143 | 0.9128106750, 0.9136738201, 0.9145330753, 0.9153884325, 0.9162398838, 0.9170874211,
144 | 0.9179310364, 0.9187707219, 0.9196064696, 0.9204382716, 0.9212661201, 0.9220900075,
145 | 0.9229099258, 0.9237258674, 0.9245378246, 0.9253457899, 0.9261497555, 0.9269497139,
146 | 0.9277456577, 0.9285375792, 0.9293254712, 0.9301093261, 0.9308891366, 0.9316648954,
147 | 0.9324365952, 0.9332042287, 0.9339677886, 0.9347272679, 0.9354826594, 0.9362339559,
148 | 0.9369811504, 0.9377242359, 0.9384632054, 0.9391980520, 0.9399287687, 0.9406553486,
149 | 0.9413777850, 0.9420960710, 0.9428101999, 0.9435201650, 0.9442259596, 0.9449275770,
150 | 0.9456250107, 0.9463182541, 0.9470073006, 0.9476921439, 0.9483727774, 0.9490491948,
151 | 0.9497213897, 0.9503893558, 0.9510530868, 0.9517125764, 0.9523678185, 0.9530188069,
152 | 0.9536655355, 0.9543079981, 0.9549461889, 0.9555801016, 0.9562097305, 0.9568350695,
153 | 0.9574561128, 0.9580728546, 0.9586852890, 0.9592934103, 0.9598972128, 0.9604966908,
154 | 0.9610918387, 0.9616826508, 0.9622691216, 0.9628512456, 0.9634290173, 0.9640024313,
155 | 0.9645714822, 0.9651361647, 0.9656964734, 0.9662524030, 0.9668039484, 0.9673511043,
156 | 0.9678938657, 0.9684322273, 0.9689661842, 0.9694957313, 0.9700208637, 0.9705415763,
157 | 0.9710578644, 0.9715697230, 0.9720771473, 0.9725801326, 0.9730786742, 0.9735727673,
158 | 0.9740624073, 0.9745475895, 0.9750283096, 0.9755045628, 0.9759763448, 0.9764436511,
159 | 0.9769064773, 0.9773648190, 0.9778186720, 0.9782680320, 0.9787128947, 0.9791532560,
160 | 0.9795891117, 0.9800204578, 0.9804472901, 0.9808696047, 0.9812873975, 0.9817006648,
161 | 0.9821094025, 0.9825136068, 0.9829132740, 0.9833084002, 0.9836989818, 0.9840850151,
162 | 0.9844664964, 0.9848434222, 0.9852157889, 0.9855835931, 0.9859468312, 0.9863054998,
163 | 0.9866595956, 0.9870091153, 0.9873540555, 0.9876944131, 0.9880301847, 0.9883613673,
164 | 0.9886879578, 0.9890099530, 0.9893273500, 0.9896401457, 0.9899483373, 0.9902519217,
165 | 0.9905508963, 0.9908452580, 0.9911350043, 0.9914201323, 0.9917006395, 0.9919765230,
166 | 0.9922477804, 0.9925144091, 0.9927764066, 0.9930337704, 0.9932864982, 0.9935345874,
167 | 0.9937780359, 0.9940168412, 0.9942510013, 0.9944805137, 0.9947053765, 0.9949255875,
168 | 0.9951411446, 0.9953520458, 0.9955582891, 0.9957598726, 0.9959567943, 0.9961490524,
169 | 0.9963366452, 0.9965195708, 0.9966978276, 0.9968714138, 0.9970403278, 0.9972045681,
170 | 0.9973641330, 0.9975190211, 0.9976692310, 0.9978147612, 0.9979556103, 0.9980917771,
171 | 0.9982232602, 0.9983500584, 0.9984721705, 0.9985895954, 0.9987023320, 0.9988103791,
172 | 0.9989137359, 0.9990124013, 0.9991063743, 0.9991956542, 0.9992802400, 0.9993601310,
173 | 0.9994353264, 0.9995058256, 0.9995716277, 0.9996327323, 0.9996891388, 0.9997408466,
174 | 0.9997878552, 0.9998301643, 0.9998677733, 0.9999006820, 0.9999288900, 0.9999523970,
175 | 0.9999712030, 0.9999853076, 0.9999947107, 0.9999994123, 0.9999994123, 0.9999947107,
176 | 0.9999853076, 0.9999712030, 0.9999523970, 0.9999288900, 0.9999006820, 0.9998677733,
177 | 0.9998301643, 0.9997878552, 0.9997408466, 0.9996891388, 0.9996327323, 0.9995716277,
178 | 0.9995058256, 0.9994353264, 0.9993601310, 0.9992802400, 0.9991956542, 0.9991063743,
179 | 0.9990124013, 0.9989137359, 0.9988103791, 0.9987023320, 0.9985895954, 0.9984721705,
180 | 0.9983500584, 0.9982232602, 0.9980917771, 0.9979556103, 0.9978147612, 0.9976692310,
181 | 0.9975190211, 0.9973641330, 0.9972045681, 0.9970403278, 0.9968714138, 0.9966978276,
182 | 0.9965195708, 0.9963366452, 0.9961490524, 0.9959567943, 0.9957598726, 0.9955582891,
183 | 0.9953520458, 0.9951411446, 0.9949255875, 0.9947053765, 0.9944805137, 0.9942510013,
184 | 0.9940168412, 0.9937780359, 0.9935345874, 0.9932864982, 0.9930337704, 0.9927764066,
185 | 0.9925144091, 0.9922477804, 0.9919765230, 0.9917006395, 0.9914201323, 0.9911350043,
186 | 0.9908452580, 0.9905508963, 0.9902519217, 0.9899483373, 0.9896401457, 0.9893273500,
187 | 0.9890099530, 0.9886879578, 0.9883613673, 0.9880301847, 0.9876944131, 0.9873540555,
188 | 0.9870091153, 0.9866595956, 0.9863054998, 0.9859468312, 0.9855835931, 0.9852157889,
189 | 0.9848434222, 0.9844664964, 0.9840850151, 0.9836989818, 0.9833084002, 0.9829132740,
190 | 0.9825136068, 0.9821094025, 0.9817006648, 0.9812873975, 0.9808696047, 0.9804472901,
191 | 0.9800204578, 0.9795891117, 0.9791532560, 0.9787128947, 0.9782680320, 0.9778186720,
192 | 0.9773648190, 0.9769064773, 0.9764436511, 0.9759763448, 0.9755045628, 0.9750283096,
193 | 0.9745475895, 0.9740624073, 0.9735727673, 0.9730786742, 0.9725801326, 0.9720771473,
194 | 0.9715697230, 0.9710578644, 0.9705415763, 0.9700208637, 0.9694957313, 0.9689661842,
195 | 0.9684322273, 0.9678938657, 0.9673511043, 0.9668039484, 0.9662524030, 0.9656964734,
196 | 0.9651361647, 0.9645714822, 0.9640024313, 0.9634290173, 0.9628512456, 0.9622691216,
197 | 0.9616826508, 0.9610918387, 0.9604966908, 0.9598972128, 0.9592934103, 0.9586852890,
198 | 0.9580728546, 0.9574561128, 0.9568350695, 0.9562097305, 0.9555801016, 0.9549461889,
199 | 0.9543079981, 0.9536655355, 0.9530188069, 0.9523678185, 0.9517125764, 0.9510530868,
200 | 0.9503893558, 0.9497213897, 0.9490491948, 0.9483727774, 0.9476921439, 0.9470073006,
201 | 0.9463182541, 0.9456250107, 0.9449275770, 0.9442259596, 0.9435201650, 0.9428101999,
202 | 0.9420960710, 0.9413777850, 0.9406553486, 0.9399287687, 0.9391980520, 0.9384632054,
203 | 0.9377242359, 0.9369811504, 0.9362339559, 0.9354826594, 0.9347272679, 0.9339677886,
204 | 0.9332042287, 0.9324365952, 0.9316648954, 0.9308891366, 0.9301093261, 0.9293254712,
205 | 0.9285375792, 0.9277456577, 0.9269497139, 0.9261497555, 0.9253457899, 0.9245378246,
206 | 0.9237258674, 0.9229099258, 0.9220900075, 0.9212661201, 0.9204382716, 0.9196064696,
207 | 0.9187707219, 0.9179310364, 0.9170874211, 0.9162398838, 0.9153884325, 0.9145330753,
208 | 0.9136738201, 0.9128106750, 0.9119436483, 0.9110727479, 0.9101979821, 0.9093193592,
209 | 0.9084368873, 0.9075505748, 0.9066604301, 0.9057664615, 0.9048686773, 0.9039670861,
210 | 0.9030616963, 0.9021525164, 0.9012395551, 0.9003228207, 0.8994023221, 0.8984780678,
211 | 0.8975500666, 0.8966183271, 0.8956828581, 0.8947436684, 0.8938007669, 0.8928541624,
212 | 0.8919038639, 0.8909498801, 0.8899922202, 0.8890308931, 0.8880659079, 0.8870972736,
213 | 0.8861249994, 0.8851490944, 0.8841695677, 0.8831864286, 0.8821996864, 0.8812093502,
214 | 0.8802154295, 0.8792179335, 0.8782168716, 0.8772122533, 0.8762040880, 0.8751923852,
215 | 0.8741771544, 0.8731584051, 0.8721361469, 0.8711103895, 0.8700811424, 0.8690484154,
216 | 0.8680122182, 0.8669725604, 0.8659294520, 0.8648829026, 0.8638329222, 0.8627795206,
217 | 0.8617227077, 0.8606624934, 0.8595988878, 0.8585319008, 0.8574615425, 0.8563878228,
218 | 0.8553107520, 0.8542303401, 0.8531465974, 0.8520595339, 0.8509691599, 0.8498754857,
219 | 0.8487785216, 0.8476782778, 0.8465747647, 0.8454679928, 0.8443579723, 0.8432447138,
220 | 0.8421282276, 0.8410085244, 0.8398856146, 0.8387595088, 0.8376302175, 0.8364977515,
221 | 0.8353621213, 0.8342233376, 0.8330814112, 0.8319363527, 0.8307881730, 0.8296368828,
222 | 0.8284824929, 0.8273250143, 0.8261644578, 0.8250008343, 0.8238341547, 0.8226644301,
223 | 0.8214916713, 0.8203158896, 0.8191370958, 0.8179553012, 0.8167705167, 0.8155827536,
224 | 0.8143920230, 0.8131983361, 0.8120017041, 0.8108021384, 0.8095996501, 0.8083942505,
225 | 0.8071859511, 0.8059747632, 0.8047606981, 0.8035437673, 0.8023239822, 0.8011013543,
226 | 0.7998758950, 0.7986476160, 0.7974165288, 0.7961826448, 0.7949459759, 0.7937065334,
227 | 0.7924643292, 0.7912193749, 0.7899716822, 0.7887212629, 0.7874681286, 0.7862122913,
228 | 0.7849537626, 0.7836925544, 0.7824286786, 0.7811621471, 0.7798929718, 0.7786211646,
229 | 0.7773467374, 0.7760697023, 0.7747900713, 0.7735078563, 0.7722230696, 0.7709357230,
230 | 0.7696458288, 0.7683533990, 0.7670584459, 0.7657609816, 0.7644610182, 0.7631585681,
231 | 0.7618536435, 0.7605462566, 0.7592364197, 0.7579241452, 0.7566094454, 0.7552923326,
232 | 0.7539728192, 0.7526509177, 0.7513266405, 0.7500000000, 0.7486710087, 0.7473396791,
233 | 0.7460060237, 0.7446700551, 0.7433317858, 0.7419912284, 0.7406483955, 0.7393032997,
234 | 0.7379559537, 0.7366063702, 0.7352545618, 0.7339005413, 0.7325443214, 0.7311859148,
235 | 0.7298253343, 0.7284625927, 0.7270977029, 0.7257306776, 0.7243615297, 0.7229902721,
236 | 0.7216169176, 0.7202414793, 0.7188639700, 0.7174844027, 0.7161027903, 0.7147191459,
237 | 0.7133334824, 0.7119458129, 0.7105561504, 0.7091645081, 0.7077708989, 0.7063753360,
238 | 0.7049778325, 0.7035784016, 0.7021770564, 0.7007738101, 0.6993686758, 0.6979616669,
239 | 0.6965527965, 0.6951420779, 0.6937295243, 0.6923151490, 0.6908989653, 0.6894809866,
240 | 0.6880612262, 0.6866396974, 0.6852164136, 0.6837913881, 0.6823646344, 0.6809361660,
241 | 0.6795059961, 0.6780741383, 0.6766406060, 0.6752054128, 0.6737685721, 0.6723300973,
242 | 0.6708900022, 0.6694483001, 0.6680050047, 0.6665601294, 0.6651136880, 0.6636656940,
243 | 0.6622161610, 0.6607651027, 0.6593125326, 0.6578584645, 0.6564029120, 0.6549458889,
244 | 0.6534874087, 0.6520274853, 0.6505661323, 0.6491033636, 0.6476391928, 0.6461736337,
245 | 0.6447067001, 0.6432384058, 0.6417687646, 0.6402977903, 0.6388254968, 0.6373518979,
246 | 0.6358770074, 0.6344008392, 0.6329234073, 0.6314447254, 0.6299648076, 0.6284836676,
247 | 0.6270013195, 0.6255177772, 0.6240330546, 0.6225471657, 0.6210601245, 0.6195719449,
248 | 0.6180826410, 0.6165922267, 0.6151007161, 0.6136081231, 0.6121144619, 0.6106197465,
249 | 0.6091239908, 0.6076272091, 0.6061294153, 0.6046306235, 0.6031308479, 0.6016301025,
250 | 0.6001284015, 0.5986257590, 0.5971221890, 0.5956177058, 0.5941123235, 0.5926060563,
251 | 0.5910989182, 0.5895909235, 0.5880820864, 0.5865724210, 0.5850619416, 0.5835506623,
252 | 0.5820385974, 0.5805257610, 0.5790121675, 0.5774978309, 0.5759827657, 0.5744669860,
253 | 0.5729505060, 0.5714333401, 0.5699155024, 0.5683970074, 0.5668778692, 0.5653581021,
254 | 0.5638377205, 0.5623167385, 0.5607951706, 0.5592730311, 0.5577503341, 0.5562270942,
255 | 0.5547033255, 0.5531790424, 0.5516542593, 0.5501289905, 0.5486032503, 0.5470770530,
256 | 0.5455504131, 0.5440233449, 0.5424958627, 0.5409679809, 0.5394397139, 0.5379110760,
257 | 0.5363820817, 0.5348527452, 0.5333230810, 0.5317931035, 0.5302628270, 0.5287322659,
258 | 0.5272014347, 0.5256703477, 0.5241390193, 0.5226074639, 0.5210756959, 0.5195437298,
259 | 0.5180115799, 0.5164792606, 0.5149467863, 0.5134141715, 0.5118814306, 0.5103485780,
260 | 0.5088156280, 0.5072825951, 0.5057494938, 0.5042163384, 0.5026831434, 0.5011499231,
261 | 0.4996166920, 0.4980834645, 0.4965502551, 0.4950170780, 0.4934839479, 0.4919508790,
262 | 0.4904178858, 0.4888849827, 0.4873521841, 0.4858195044, 0.4842869581, 0.4827545595,
263 | 0.4812223231, 0.4796902633, 0.4781583944, 0.4766267310, 0.4750952873, 0.4735640778,
264 | 0.4720331168, 0.4705024189, 0.4689719983, 0.4674418695, 0.4659120468, 0.4643825447,
265 | 0.4628533775, 0.4613245596, 0.4597961053, 0.4582680291, 0.4567403454, 0.4552130684,
266 | 0.4536862125, 0.4521597921, 0.4506338216, 0.4491083153, 0.4475832875, 0.4460587526,
267 | 0.4445347250, 0.4430112189, 0.4414882486, 0.4399658286, 0.4384439731, 0.4369226964,
268 | 0.4354020128, 0.4338819366, 0.4323624822, 0.4308436638, 0.4293254957, 0.4278079921,
269 | 0.4262911674, 0.4247750358, 0.4232596115, 0.4217449088, 0.4202309420, 0.4187177253,
270 | 0.4172052728, 0.4156935990, 0.4141827178, 0.4126726436, 0.4111633906, 0.4096549729,
271 | 0.4081474048, 0.4066407004, 0.4051348738, 0.4036299393, 0.4021259109, 0.4006228029,
272 | 0.3991206294, 0.3976194044, 0.3961191422, 0.3946198567, 0.3931215622, 0.3916242727,
273 | 0.3901280022, 0.3886327649, 0.3871385748, 0.3856454460, 0.3841533924, 0.3826624282,
274 | 0.3811725674, 0.3796838239, 0.3781962117, 0.3767097449, 0.3752244374, 0.3737403032,
275 | 0.3722573563, 0.3707756105, 0.3692950799, 0.3678157783, 0.3663377196, 0.3648609179,
276 | 0.3633853868, 0.3619111404, 0.3604381924, 0.3589665568, 0.3574962473, 0.3560272778,
277 | 0.3545596622, 0.3530934141, 0.3516285474, 0.3501650759, 0.3487030133, 0.3472423734,
278 | 0.3457831699, 0.3443254166, 0.3428691270, 0.3414143150, 0.3399609943, 0.3385091784,
279 | 0.3370588810, 0.3356101158, 0.3341628964, 0.3327172363, 0.3312731493, 0.3298306489,
280 | 0.3283897485, 0.3269504619, 0.3255128025, 0.3240767838, 0.3226424194, 0.3212097227,
281 | 0.3197787071, 0.3183493863, 0.3169217735, 0.3154958823, 0.3140717260, 0.3126493180,
282 | 0.3112286717, 0.3098098005, 0.3083927176, 0.3069774365, 0.3055639704, 0.3041523326,
283 | 0.3027425364, 0.3013345951, 0.2999285219, 0.2985243300, 0.2971220325, 0.2957216428,
284 | 0.2943231740, 0.2929266392, 0.2915320515, 0.2901394241, 0.2887487700, 0.2873601024,
285 | 0.2859734343, 0.2845887787, 0.2832061487, 0.2818255572, 0.2804470173, 0.2790705418,
286 | 0.2776961439, 0.2763238362, 0.2749536319, 0.2735855437, 0.2722195845, 0.2708557672,
287 | 0.2694941045, 0.2681346094, 0.2667772945, 0.2654221727, 0.2640692567, 0.2627185591,
288 | 0.2613700928, 0.2600238703, 0.2586799044, 0.2573382077, 0.2559987928, 0.2546616722,
289 | 0.2533268587, 0.2519943646, 0.2506642026, 0.2493363851, 0.2480109247, 0.2466878338,
290 | 0.2453671248, 0.2440488102, 0.2427329023, 0.2414194136, 0.2401083564, 0.2387997429,
291 | 0.2374935856, 0.2361898967, 0.2348886885, 0.2335899731, 0.2322937629, 0.2310000699,
292 | 0.2297089064, 0.2284202845, 0.2271342163, 0.2258507140, 0.2245697895, 0.2232914549,
293 | 0.2220157223, 0.2207426036, 0.2194721108, 0.2182042559, 0.2169390508, 0.2156765073,
294 | 0.2144166374, 0.2131594529, 0.2119049656, 0.2106531873, 0.2094041298, 0.2081578049,
295 | 0.2069142242, 0.2056733994, 0.2044353422, 0.2032000643, 0.2019675773, 0.2007378927,
296 | 0.1995110222, 0.1982869772, 0.1970657692, 0.1958474098, 0.1946319104, 0.1934192825,
297 | 0.1922095374, 0.1910026865, 0.1897987412, 0.1885977127, 0.1873996124, 0.1862044516,
298 | 0.1850122415, 0.1838229932, 0.1826367180, 0.1814534271, 0.1802731315, 0.1790958423,
299 | 0.1779215707, 0.1767503277, 0.1755821242, 0.1744169713, 0.1732548799, 0.1720958610,
300 | 0.1709399254, 0.1697870840, 0.1686373477, 0.1674907272, 0.1663472334, 0.1652068770,
301 | 0.1640696688, 0.1629356193, 0.1618047394, 0.1606770395, 0.1595525304, 0.1584312225,
302 | 0.1573131265, 0.1561982529, 0.1550866121, 0.1539782145, 0.1528730707, 0.1517711910,
303 | 0.1506725857, 0.1495772653, 0.1484852399, 0.1473965199, 0.1463111155, 0.1452290369,
304 | 0.1441502943, 0.1430748978, 0.1420028576, 0.1409341836, 0.1398688861, 0.1388069749,
305 | 0.1377484601, 0.1366933516, 0.1356416593, 0.1345933932, 0.1335485631, 0.1325071788,
306 | 0.1314692500, 0.1304347867, 0.1294037985, 0.1283762950, 0.1273522860, 0.1263317811,
307 | 0.1253147898, 0.1243013218, 0.1232913866, 0.1222849936, 0.1212821523, 0.1202828722,
308 | 0.1192871627, 0.1182950331, 0.1173064927, 0.1163215508, 0.1153402168, 0.1143624998,
309 | 0.1133884090, 0.1124179537, 0.1114511428, 0.1104879855, 0.1095284909, 0.1085726679,
310 | 0.1076205257, 0.1066720730, 0.1057273189, 0.1047862722, 0.1038489418, 0.1029153364,
311 | 0.1019854650, 0.1010593361, 0.1001369586, 0.0992183410, 0.0983034921, 0.0973924204,
312 | 0.0964851345, 0.0955816430, 0.0946819542, 0.0937860768, 0.0928940190, 0.0920057894,
313 | 0.0911213962, 0.0902408477, 0.0893641523, 0.0884913182, 0.0876223536, 0.0867572667,
314 | 0.0858960656, 0.0850387583, 0.0841853531, 0.0833358578, 0.0824902805, 0.0816486291,
315 | 0.0808109116, 0.0799771357, 0.0791473095, 0.0783214406, 0.0774995368, 0.0766816058,
316 | 0.0758676555, 0.0750576933, 0.0742517269, 0.0734497639, 0.0726518119, 0.0718578783,
317 | 0.0710679706, 0.0702820963, 0.0695002626, 0.0687224770, 0.0679487469, 0.0671790793,
318 | 0.0664134817, 0.0656519612, 0.0648945250, 0.0641411801, 0.0633919337, 0.0626467928,
319 | 0.0619057644, 0.0611688555, 0.0604360730, 0.0597074238, 0.0589829148, 0.0582625528,
320 | 0.0575463445, 0.0568342966, 0.0561264160, 0.0554227092, 0.0547231828, 0.0540278434,
321 | 0.0533366976, 0.0526497519, 0.0519670127, 0.0512884865, 0.0506141795, 0.0499440982,
322 | 0.0492782489, 0.0486166378, 0.0479592712, 0.0473061552, 0.0466572959, 0.0460126996,
323 | 0.0453723721, 0.0447363196, 0.0441045481, 0.0434770634, 0.0428538715, 0.0422349782,
324 | 0.0416203894, 0.0410101108, 0.0404041482, 0.0398025073, 0.0392051936, 0.0386122130,
325 | 0.0380235708, 0.0374392727, 0.0368593242, 0.0362837306, 0.0357124975, 0.0351456301,
326 | 0.0345831339, 0.0340250141, 0.0334712759, 0.0329219246, 0.0323769653, 0.0318364032,
327 | 0.0313002433, 0.0307684907, 0.0302411503, 0.0297182272, 0.0291997263, 0.0286856523,
328 | 0.0281760103, 0.0276708049, 0.0271700408, 0.0266737229, 0.0261818558, 0.0256944441,
329 | 0.0252114924, 0.0247330052, 0.0242589870, 0.0237894423, 0.0233243755, 0.0228637910,
330 | 0.0224076931, 0.0219560861, 0.0215089742, 0.0210663617, 0.0206282527, 0.0201946513,
331 | 0.0197655616, 0.0193409877, 0.0189209335, 0.0185054029, 0.0180944000, 0.0176879285,
332 | 0.0172859922, 0.0168885951, 0.0164957407, 0.0161074328, 0.0157236751, 0.0153444710,
333 | 0.0149698243, 0.0145997385, 0.0142342169, 0.0138732631, 0.0135168805, 0.0131650723,
334 | 0.0128178420, 0.0124751927, 0.0121371277, 0.0118036501, 0.0114747632, 0.0111504700,
335 | 0.0108307735, 0.0105156768, 0.0102051828, 0.0098992944, 0.0095980146, 0.0093013461,
336 | 0.0090092917, 0.0087218542, 0.0084390363, 0.0081608407, 0.0078872699, 0.0076183265,
337 | 0.0073540131, 0.0070943321, 0.0068392860, 0.0065888773, 0.0063431081, 0.0061019809,
338 | 0.0058654980, 0.0056336614, 0.0054064735, 0.0051839364, 0.0049660521, 0.0047528227,
339 | 0.0045442502, 0.0043403366, 0.0041410837, 0.0039464936, 0.0037565679, 0.0035713085,
340 | 0.0033907171, 0.0032147954, 0.0030435451, 0.0028769677, 0.0027150650, 0.0025578382,
341 | 0.0024052891, 0.0022574189, 0.0021142290, 0.0019757209, 0.0018418958, 0.0017127550,
342 | 0.0015882997, 0.0014685311, 0.0013534502, 0.0012430582, 0.0011373561, 0.0010363449,
343 | 0.0009400256, 0.0008483991, 0.0007614661, 0.0006792276, 0.0006016843, 0.0005288369,
344 | 0.0004606862, 0.0003972327, 0.0003384771, 0.0002844199, 0.0002350617, 0.0001904028,
345 | 0.0001504437, 0.0001151848, 0.0000846264, 0.0000587689, 0.0000376123, 0.0000211571,
346 | 0.0000094032, 0.0000023508};
347 |
348 | #endif // LIB_UTILS_HANNING_H_
349 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
--------------------------------------------------------------------------------