atomvine 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. atomvine-0.1.0/.clang-format +6 -0
  2. atomvine-0.1.0/.editorconfig +19 -0
  3. atomvine-0.1.0/.gitattributes +4 -0
  4. atomvine-0.1.0/.gitignore +45 -0
  5. atomvine-0.1.0/.pre-commit-config.yaml +21 -0
  6. atomvine-0.1.0/CHANGELOG.md +42 -0
  7. atomvine-0.1.0/CITATION.cff +29 -0
  8. atomvine-0.1.0/CMakeLists.txt +63 -0
  9. atomvine-0.1.0/CODE_OF_CONDUCT.md +132 -0
  10. atomvine-0.1.0/CONTRIBUTING.md +105 -0
  11. atomvine-0.1.0/LICENSE +21 -0
  12. atomvine-0.1.0/PKG-INFO +201 -0
  13. atomvine-0.1.0/README.md +165 -0
  14. atomvine-0.1.0/SECURITY.md +41 -0
  15. atomvine-0.1.0/benchmarks/README.md +26 -0
  16. atomvine-0.1.0/benchmarks/dgp.py +148 -0
  17. atomvine-0.1.0/benchmarks/report.py +368 -0
  18. atomvine-0.1.0/benchmarks/results/README.md +28 -0
  19. atomvine-0.1.0/benchmarks/results/results.jsonl +1319 -0
  20. atomvine-0.1.0/benchmarks/results/results.machine.json +9 -0
  21. atomvine-0.1.0/benchmarks/run.py +325 -0
  22. atomvine-0.1.0/benchmarks/tune_penalty.py +73 -0
  23. atomvine-0.1.0/cpp/include/atomvine/kernels.hpp +36 -0
  24. atomvine-0.1.0/cpp/include/atomvine/pair.hpp +138 -0
  25. atomvine-0.1.0/cpp/include/atomvine/vine.hpp +69 -0
  26. atomvine-0.1.0/cpp/src/dispatch.cpp +68 -0
  27. atomvine-0.1.0/cpp/src/kernels_avx2.cpp +127 -0
  28. atomvine-0.1.0/cpp/src/kernels_generic.cpp +48 -0
  29. atomvine-0.1.0/cpp/src/pair.cpp +677 -0
  30. atomvine-0.1.0/cpp/src/vine.cpp +308 -0
  31. atomvine-0.1.0/cpp/tests/smoke.cpp +32 -0
  32. atomvine-0.1.0/examples/quickstart.py +44 -0
  33. atomvine-0.1.0/pyproject.toml +67 -0
  34. atomvine-0.1.0/src/atomvine/__init__.py +33 -0
  35. atomvine-0.1.0/src/atomvine/_bicop.py +165 -0
  36. atomvine-0.1.0/src/atomvine/_controls.py +86 -0
  37. atomvine-0.1.0/src/atomvine/_core.cpp +165 -0
  38. atomvine-0.1.0/src/atomvine/_util.py +29 -0
  39. atomvine-0.1.0/src/atomvine/_vinecop.py +356 -0
  40. atomvine-0.1.0/src/atomvine/compat.py +72 -0
  41. atomvine-0.1.0/src/atomvine/py.typed +0 -0
  42. atomvine-0.1.0/tests/test_bicop.py +136 -0
  43. atomvine-0.1.0/tests/test_compat.py +71 -0
  44. atomvine-0.1.0/tests/test_vinecop.py +139 -0
@@ -0,0 +1,6 @@
1
+ ---
2
+ Language: Cpp
3
+ BasedOnStyle: Google
4
+ ColumnLimit: 110
5
+ IndentWidth: 4
6
+ ...
@@ -0,0 +1,19 @@
1
+ # https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ end_of_line = lf
7
+ insert_final_newline = true
8
+ trim_trailing_whitespace = true
9
+
10
+ [*.{py,pyi,cpp,hpp,h,cc}]
11
+ indent_style = space
12
+ indent_size = 4
13
+
14
+ [*.{yml,yaml,json,toml,md}]
15
+ indent_style = space
16
+ indent_size = 2
17
+
18
+ [*.md]
19
+ trim_trailing_whitespace = false
@@ -0,0 +1,4 @@
1
+ * text=auto eol=lf
2
+ *.png binary
3
+ *.pdf binary
4
+ *.wasm binary
@@ -0,0 +1,45 @@
1
+ # Secrets
2
+ .env
3
+ .env.*
4
+
5
+ # Python
6
+ __pycache__/
7
+ *.py[cod]
8
+ *.egg-info/
9
+ .venv/
10
+ build/
11
+ dist/
12
+ wheelhouse/
13
+ .pytest_cache/
14
+ .ruff_cache/
15
+ .mypy_cache/
16
+ .coverage
17
+ htmlcov/
18
+
19
+ # C++ / CMake
20
+ _skbuild/
21
+ CMakeFiles/
22
+ CMakeCache.txt
23
+ *.o
24
+ *.obj
25
+ *.exe
26
+
27
+ # WebAssembly build output
28
+ wasm/dist/
29
+
30
+ # Benchmark scratch
31
+ benchmarks/out/
32
+ benchmarks/data/
33
+
34
+ # Paper build
35
+ paper/*.aux
36
+ paper/*.log
37
+ paper/*.out
38
+ paper/*.bbl
39
+ paper/*.blg
40
+ paper/*.fdb_latexmk
41
+ paper/*.fls
42
+ paper/*.synctex.gz
43
+
44
+ # Local working copies
45
+ _origin/
@@ -0,0 +1,21 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: check-yaml
6
+ - id: end-of-file-fixer
7
+ - id: trailing-whitespace
8
+
9
+ - repo: https://github.com/astral-sh/ruff-pre-commit
10
+ rev: v0.8.4
11
+ hooks:
12
+ - id: ruff
13
+ args: [--fix]
14
+ - id: ruff-format
15
+
16
+ - repo: https://github.com/pre-commit/mirrors-clang-format
17
+ rev: v18.1.8
18
+ hooks:
19
+ - id: clang-format
20
+ types_or: [c++]
21
+ files: ^(cpp/.*|src/.*\.cpp)$
@@ -0,0 +1,42 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.0] - 2026-12-05
11
+
12
+ First public release (alpha).
13
+
14
+ ### Added
15
+
16
+ - `Bicop`: ATOMS8 pair copula, an exponential family built from Hermite tensor terms in normal
17
+ scores up to total degree 8 plus 8 tail atoms (the log-densities of Clayton(2) and Gumbel(2)
18
+ copulas reflected into each corner).
19
+ - Fitting maximises a penalised likelihood: an n-scaled Gaussian prior, weighted by Hermite
20
+ degree, keeps small samples from overfitting (`FitControlsBicop.penalty`).
21
+ - `fit`, `pdf`, `cdf`, `hfunc1`, `hfunc2`, `hinv1`, `hinv2`.
22
+ - `simulate` and `sample`.
23
+ - `loglik`, `aic`, `bic`.
24
+ - `to_dict` and `from_dict` for serialization.
25
+ - `Vinecop`: vine copula built from ATOMS8 pair copulas.
26
+ - Structure selection with Dissmann's algorithm, with optional truncation.
27
+ - Per-edge choice of the independence copula by AIC or BIC on the penalised fit's effective
28
+ degrees of freedom (`FitControlsVinecop.selection_criterion`, `Bicop.edf`).
29
+ - `logpdf`, `pdf`, `loglik`.
30
+ - `rosenblatt` and `inverse_rosenblatt`.
31
+ - `simulate` and `sample`.
32
+ - R-vine matrix in the vinecopulib convention.
33
+ - `get_pair_copula`.
34
+ - `to_dict` and `from_dict` for serialization.
35
+ - `FitControlsBicop` and `FitControlsVinecop`, mirroring the pyvinecopulib API.
36
+ - Conversion to pyvinecopulib objects with `to_pyvinecopulib`.
37
+ - C++17 core with nanobind bindings, built with scikit-build-core.
38
+ - AVX2 kernels with runtime CPU dispatch and a portable fallback.
39
+ - Multithreaded vine structure selection.
40
+
41
+ [Unreleased]: https://github.com/PlayerPlanet/atomvine/compare/v0.1.0...HEAD
42
+ [0.1.0]: https://github.com/PlayerPlanet/atomvine/releases/tag/v0.1.0
@@ -0,0 +1,29 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use this software, please cite it using the metadata from this file."
3
+ type: software
4
+ title: "atomvine: fast vine copulas from exponential-family pair copulas with tail atoms"
5
+ abstract: >-
6
+ atomvine is a Python package with a C++17 core for fast vine copula modelling. Its pair
7
+ copulas form an exponential family (ATOMS8): Hermite tensor terms in normal scores up to
8
+ total degree 8, plus 8 tail atoms given by the log-densities of Clayton(2) and Gumbel(2)
9
+ copulas reflected into each corner. The Python API mirrors pyvinecopulib.
10
+ authors:
11
+ - family-names: Kiirikki
12
+ given-names: Konsta
13
+ affiliation: Aalto University
14
+ email: konsta.kiirikki@aalto.fi
15
+ version: 0.1.0
16
+ date-released: 2026-12-05
17
+ license: MIT
18
+ repository-code: "https://github.com/PlayerPlanet/atomvine"
19
+ url: "https://github.com/PlayerPlanet/atomvine"
20
+ keywords:
21
+ - copula
22
+ - vine copula
23
+ - pair copula construction
24
+ - dependence modelling
25
+ - exponential family
26
+ - tail dependence
27
+ - statistics
28
+ - Python
29
+ - C++
@@ -0,0 +1,63 @@
1
+ cmake_minimum_required(VERSION 3.20...3.31)
2
+ if(NOT SKBUILD_PROJECT_VERSION)
3
+ set(SKBUILD_PROJECT_VERSION 0.0.0) # plain CMake build of the C++ core
4
+ endif()
5
+ project(atomvine LANGUAGES CXX VERSION ${SKBUILD_PROJECT_VERSION})
6
+
7
+ set(CMAKE_CXX_STANDARD 17)
8
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
9
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
10
+ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
11
+ set(CMAKE_BUILD_TYPE Release)
12
+ endif()
13
+
14
+ # ---- core library ----------------------------------------------------------------------
15
+ add_library(atomvine_core STATIC
16
+ cpp/src/dispatch.cpp
17
+ cpp/src/kernels_generic.cpp
18
+ cpp/src/pair.cpp
19
+ cpp/src/vine.cpp)
20
+ target_include_directories(atomvine_core PUBLIC cpp/include)
21
+ if(MSVC)
22
+ target_compile_definitions(atomvine_core PUBLIC _USE_MATH_DEFINES)
23
+ target_compile_options(atomvine_core PRIVATE /O2 /fp:precise)
24
+ else()
25
+ target_compile_options(atomvine_core PRIVATE -O3)
26
+ endif()
27
+
28
+ # AVX2/FMA kernels are compiled separately and chosen at run time, so wheels still run
29
+ # on x86-64 CPUs without AVX2.
30
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64|amd64|x64)$" AND NOT EMSCRIPTEN)
31
+ target_sources(atomvine_core PRIVATE cpp/src/kernels_avx2.cpp)
32
+ target_compile_definitions(atomvine_core PRIVATE ATOMVINE_HAVE_AVX2)
33
+ if(MSVC)
34
+ set_source_files_properties(cpp/src/kernels_avx2.cpp PROPERTIES COMPILE_OPTIONS "/arch:AVX2")
35
+ else()
36
+ set_source_files_properties(cpp/src/kernels_avx2.cpp PROPERTIES COMPILE_OPTIONS "-mavx2;-mfma")
37
+ endif()
38
+ endif()
39
+
40
+ find_package(Threads)
41
+ if(Threads_FOUND)
42
+ target_link_libraries(atomvine_core PUBLIC Threads::Threads)
43
+ else()
44
+ target_compile_definitions(atomvine_core PUBLIC ATOMVINE_NO_THREADS)
45
+ endif()
46
+
47
+ # ---- Python extension (built by scikit-build-core) ----------------------------------------
48
+ if(SKBUILD)
49
+ find_package(Python 3.10 COMPONENTS Interpreter Development.Module REQUIRED)
50
+ find_package(nanobind CONFIG REQUIRED)
51
+ nanobind_add_module(_core NB_STATIC src/atomvine/_core.cpp)
52
+ target_link_libraries(_core PRIVATE atomvine_core)
53
+ install(TARGETS _core LIBRARY DESTINATION atomvine)
54
+ endif()
55
+
56
+ # ---- C++ tests (optional) ----------------------------------------------------------------
57
+ option(ATOMVINE_BUILD_TESTS "Build the C++ smoke test" OFF)
58
+ if(ATOMVINE_BUILD_TESTS)
59
+ add_executable(atomvine_smoke cpp/tests/smoke.cpp)
60
+ target_link_libraries(atomvine_smoke PRIVATE atomvine_core)
61
+ enable_testing()
62
+ add_test(NAME smoke COMMAND atomvine_smoke)
63
+ endif()
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ konsta.kiirikki@aalto.fi.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,105 @@
1
+ # Contributing to atomvine
2
+
3
+ Thanks for your interest in atomvine. Bug reports, fixes, tests, documentation and performance
4
+ work are all welcome. This guide covers the practical steps.
5
+
6
+ By taking part you agree to follow the [Code of Conduct](CODE_OF_CONDUCT.md).
7
+
8
+ ## Development setup
9
+
10
+ You need Python 3.10 or newer, a C++17 compiler (GCC, Clang or MSVC) and CMake. The build uses
11
+ [scikit-build-core](https://scikit-build-core.readthedocs.io/) and
12
+ [nanobind](https://nanobind.readthedocs.io/); both are installed automatically by the build.
13
+
14
+ ```bash
15
+ git clone https://github.com/PlayerPlanet/atomvine.git
16
+ cd atomvine
17
+ uv venv
18
+ uv pip install -e ".[test,pyvinecopulib]"
19
+ ```
20
+
21
+ This compiles the C++ core and installs the package in editable mode together with the test
22
+ dependencies (pytest and SciPy) and pyvinecopulib, which the compatibility tests compare against.
23
+
24
+ After changing C++ code in `cpp/` or the bindings in `src/atomvine/_core.cpp`, re-run
25
+ `uv pip install -e ".[test,pyvinecopulib]"` to rebuild the extension.
26
+
27
+ ## Running the tests
28
+
29
+ ```bash
30
+ pytest
31
+ ```
32
+
33
+ Tests live in `tests/`. Please add or update tests for every behaviour change or bug fix. A bug
34
+ fix should come with a test that fails without the fix.
35
+
36
+ The C++ core has runtime-dispatched AVX2 kernels and a portable fallback. If you touch the
37
+ kernels, make sure both code paths stay correct and give the same results within floating-point
38
+ tolerance.
39
+
40
+ ## Code style
41
+
42
+ - **Python:** formatted and linted with [ruff](https://docs.astral.sh/ruff/). The configuration
43
+ is in `pyproject.toml`.
44
+
45
+ ```bash
46
+ ruff check --fix .
47
+ ruff format .
48
+ ```
49
+
50
+ - **C++:** formatted with [clang-format](https://clang.llvm.org/docs/ClangFormat.html) using the
51
+ `.clang-format` file in the repository root.
52
+
53
+ ```bash
54
+ clang-format -i cpp/include/atomvine/*.hpp cpp/src/*.cpp src/atomvine/*.cpp
55
+ ```
56
+
57
+ The easiest way to run all checks is [pre-commit](https://pre-commit.com/):
58
+
59
+ ```bash
60
+ uv pip install pre-commit
61
+ pre-commit install # run the hooks on every commit
62
+ pre-commit run --all-files # run them once on the whole repository
63
+ ```
64
+
65
+ ## Proposing changes
66
+
67
+ 1. **Open an issue first for larger changes**, such as new features, API changes or new pair
68
+ copula families, so we can agree on the approach before you invest time. Small fixes and
69
+ documentation improvements can go straight to a pull request.
70
+ 2. Fork the repository and create a branch from `main`.
71
+ 3. Make your change, with tests. Keep pull requests focused on one topic.
72
+ 4. Add an entry under `[Unreleased]` in [CHANGELOG.md](CHANGELOG.md) for user-visible changes.
73
+ 5. Make sure `pytest` passes and the code is formatted.
74
+ 6. Open a pull request against `main` and fill in the template.
75
+
76
+ The public Python API mirrors [pyvinecopulib](https://github.com/vinecopulib/pyvinecopulib)
77
+ (`Bicop`, `Vinecop`, `FitControlsBicop`, `FitControlsVinecop`). Changes that make atomvine
78
+ diverge from that API should be discussed in an issue first.
79
+
80
+ ### Performance changes
81
+
82
+ Speed is a main goal of atomvine, so performance pull requests are very welcome. Please include
83
+ in the pull request description:
84
+
85
+ - what you measured (for example, `Vinecop` selection on n observations in d dimensions),
86
+ - numbers before and after the change, ideally from the scripts in `benchmarks/`,
87
+ - your CPU, operating system, compiler and whether AVX2 was used,
88
+ - confirmation that results (log-likelihoods, fitted parameters) are unchanged, or an
89
+ explanation of why they differ.
90
+
91
+ ## Reporting bugs
92
+
93
+ Open an issue using the bug report form at
94
+ <https://github.com/PlayerPlanet/atomvine/issues/new/choose>. A good report includes:
95
+
96
+ - the atomvine version (`python -c "import atomvine; print(atomvine.__version__)"`),
97
+ Python version and operating system,
98
+ - a minimal, self-contained code example that reproduces the problem (ideally with
99
+ simulated data or a fixed random seed),
100
+ - what you expected and what happened, including the full traceback.
101
+
102
+ For questions and usage help, please use
103
+ [Discussions](https://github.com/PlayerPlanet/atomvine/discussions) instead of issues.
104
+
105
+ Do not report security vulnerabilities in public issues; see [SECURITY.md](SECURITY.md).
atomvine-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Konsta Kiirikki
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.