# Licensing

This repository has more than one license. Each license covers a different type of file. The table shows which license applies to which files.

| What | Files | License |
| --- | --- | --- |
| Source code | `domesticated-animals-map/map.py`, `clustering-demo/clustering.py`, `style.css`, `script.js` | [MIT](LICENSE) |
| Written content and page design | `README.md`, `CREDITS.md`, `LICENSING.md`, `index.html` | [CC BY 4.0](LICENSES/CC-BY-4.0.txt) |
| Data and results made from the data | `data/*.csv`, `*/output/**`, `clustering-demo/published/**` | [CC BY-NC 4.0](LICENSES/CC-BY-NC-4.0.txt) |
| Animal icons | `assets/icons/*.png` | CC BY 3.0 US (the author of each icon holds the copyright) |
| Header images | `assets/images/*.jpg` | Pixabay License (the photographers hold the copyright) |

## Why the data has a non-commercial license

The data comes from D-PLACE. D-PLACE uses the Creative Commons Attribution-NonCommercial 4.0 license. The files in `data/` and the results that use them keep this license.

* You can share and adapt the data and the results for non-commercial purposes.
* You must give credit. See [CREDITS.md](CREDITS.md).
* You must not use the data or the results for commercial purposes.

The location data comes from Glottolog. Glottolog uses the Creative Commons Attribution 4.0 license.

> **Note:** The MIT license of the code does not remove the non-commercial limit on the data.

## How to give credit

* **For the code:** keep the copyright notice in [LICENSE](LICENSE).
* **For the text, the page design and the data:** write "Brianna R. Imm, ML Applications in Anthropology", add a link to the repository, and state your changes.
* **For the icons:** credit the icon authors in [CREDITS.md](CREDITS.md).
* **For the header images:** the Pixabay License does not require credit. Credit is good practice.

## Full license texts

* [MIT License](LICENSE)
* [Creative Commons Attribution 4.0 International](LICENSES/CC-BY-4.0.txt)
* [Creative Commons Attribution-NonCommercial 4.0 International](LICENSES/CC-BY-NC-4.0.txt)
* [Creative Commons Attribution 3.0 United States](https://creativecommons.org/licenses/by/3.0/us/legalcode)
* [Pixabay License](https://pixabay.com/service/license-summary/)

This document gives information. It is not legal advice.
