New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zlib license #438
zlib license #438
Conversation
This looks good to me, thanks @pchaigno! I'll merge tomorrow if nobody else points out any problems in the meantime. CI is failing due to an actual issue with an external site. I informed them about it at creativecommons/creativecommons.org#323 |
@pchaigno I noticed one thing -- the
The eponymous example for zlib isn't one that new projects should follow nor one that could be automatically detected. Are there other zlib-licensed projects that would serve as more straightforward examples? See similar discussion re ISC in #377. |
Unfortunately it's mostly Zlib + small projects. I went through Zlib-licensed projects on GitHub but couldn't find any well known (at least to me :/). Should I remove the |
Yes, just remove |
@pchaigno but don't give up just yet :) I'm working on a way to query the recently released Github data on Google's BigQuery, to find the most popular ISC-licensed repos, and once I get reliable results I'll share the process, as it will probably be useful to others like you. |
Done.
@waldyrious Nice! I have to get into that myself. Could be useful for quantitative searches at Linguist as well. |
Now last row in http://choosealicense.com/appendix/ and at http://choosealicense.com/licenses/zlib/ |
@pchaigno I've managed to nail down the query as I needed: here's how to get all ISC-licensed repos on github, sorted by number of stars in a given period of time: SELECT gh_licenses.repo_name, gh_since2015.num_stars
FROM [bigquery-public-data:github_repos.licenses] AS gh_licenses
JOIN (
SELECT repo.name, COUNT(*) AS num_stars
FROM TABLE_DATE_RANGE([githubarchive:day.], TIMESTAMP('2015-01-01'), CURRENT_TIMESTAMP())
WHERE type = "WatchEvent"
GROUP BY repo.name
) AS gh_since2015
ON (gh_licenses.repo_name == gh_since2015.repo.name)
WHERE license="isc"
ORDER BY num_stars DESC Here's the result (repos with less than 10 stars in that period hidden) Searching using the year tables instead of the day tables (2011 to 2015, so this excludes 2016 activity) could capture additional repos that haven't had recent activity: SELECT gh_licenses.repo_name, gh_year_tables.num_stars
FROM [bigquery-public-data:github_repos.licenses] AS gh_licenses
JOIN (
SELECT repo_name, COUNT(*) AS num_stars
FROM TABLE_QUERY([githubarchive:year], 'REGEXP_MATCH(table_id, r"^201\d")')
WHERE type = "WatchEvent"
GROUP BY repo_name
) AS gh_year_tables
ON (gh_licenses.repo_name == gh_year_tables.repo_name)
WHERE license="isc"
ORDER BY num_stars DESC ...but neither query works for repos that haven't been starred by anyone. Ideally, there should be a SELECT gh_licenses.repo_name, gh_repos.watch_count
FROM [bigquery-public-data:github_repos.licenses] AS gh_licenses
JOIN (
SELECT repo_name, watch_count
FROM [bigquery-public-data:github_repos.sample_repos]
) AS gh_repos
ON (gh_licenses.repo_name == gh_repos.repo_name)
WHERE license="isc"
ORDER BY watch_count DESC ...which currently returns only 1516 rows (as opposed to the 5432 rows and 4126 rows from the above queries, respectively). @fhoffa any chance we could get such a dataset (a |
Linguist actually uses licensed, which in turn uses licensee Licensee recognizes the zlib license starting with v8.3.0 zlib license added to choosealicense.com: github/choosealicense.com#438
This pull request adds the Zlib license to choosealicense.com. It was first used by the zlib project (see the end of its README). It's now used by many other projects (e.g., certain syntax definitions for programming languages).
Requirements:
Zlib
is the SPDX identifier.