Skip to content

Commit 5c315fb

Browse files
committed
Merge branch 'main' into license-classify-modeling
2 parents e72f9a6 + c66f6de commit 5c315fb

6 files changed

Lines changed: 127 additions & 60 deletions

File tree

.cc-metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ english_name: Quantifying the Commons
55
# All technologies used
66
technologies: Python
77
# Whether this repository should be featured on the CC Open Source site
8-
featured: false
8+
featured: true
99
# Slack channel name
1010
slack: "cc-dev-quantifying"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Python Static Analysis
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
workflow_dispatch:
8+
9+
jobs:
10+
job:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
15+
# https://github.com/actions/setup-python
16+
- name: Install Python 3.10
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install Python dependencies
22+
run: |
23+
pip install --upgrade pip
24+
pip install black 'black[jupyter]' flake8 isort
25+
26+
# https://github.com/actions/checkout
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
30+
- name: Run isort
31+
run: isort --check .
32+
33+
- name: Run black
34+
run: black --check .
35+
36+
- name: Run flake8
37+
run: flake8

Pipfile.lock

Lines changed: 67 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analyze/Geomap_and_Model_building.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8063,7 +8063,7 @@
80638063
"tag_map[\"J\"] = wn.ADJ\n",
80648064
"tag_map[\"V\"] = wn.VERB\n",
80658065
"tag_map[\"R\"] = wn.ADV\n",
8066-
"for (index, entry) in zip(merged1_2.index, list(merged1_2[\"description\"])):\n",
8066+
"for index, entry in zip(merged1_2.index, list(merged1_2[\"description\"])):\n",
80678067
" # Declaring Empty List to store the words that follow the rules for this step\n",
80688068
" Final_words = []\n",
80698069
" # Initializing WordNetLemmatizer()\n",
@@ -15570,7 +15570,7 @@
1557015570
"tag_map[\"J\"] = wn.ADJ\n",
1557115571
"tag_map[\"V\"] = wn.VERB\n",
1557215572
"tag_map[\"R\"] = wn.ADV\n",
15573-
"for (index, entry) in zip(otl.index, list(otl[\"Description\"])):\n",
15573+
"for index, entry in zip(otl.index, list(otl[\"Description\"])):\n",
1557415574
" # Declaring Empty List to store the words that follow the rules for this step\n",
1557515575
" Final_words = []\n",
1557615576
" # Initializing WordNetLemmatizer()\n",

history.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,27 @@
6767

6868
## 2012 and Earlier
6969

70+
- https://wiki.creativecommons.org/wiki/Metrics
71+
- https://wiki.creativecommons.org/wiki/Metrics/License_statistics
7072
- Repository:
7173
- [cc-archive/stats][repo-stats]: code for generating statistics on the usage
7274
of CC licenses
7375

7476
[repo-stats]: https://github.com/cc-archive/stats
77+
78+
79+
## 2008 Participatory Media Lab
80+
81+
- [Visualizations - Participatory Media Lab][pmlviz]
82+
83+
[pmlviz]: http://pml.wikidot.com/visualizations
84+
85+
86+
## 2007
87+
88+
- [Creative Commons metrics (PDF)][cc2007pdf]
89+
- [Creative Commons Statistics from the CC-Monitor Project
90+
(PDF)][ccmonitor2007pdf]
91+
92+
[cc2007pdf]: https://wiki.creativecommons.org/images/f/f0/Cc-stats-20070614.pdf
93+
[ccmonitor2007pdf]: https://wiki.creativecommons.org/images/7/71/Statistics-from-the-CC-Monitor-project_eng.pdf

visualization/visualization_engineering.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9638,9 +9638,7 @@
96389638
}
96399639
],
96409640
"source": [
9641-
"google_license_data.iloc[\n",
9642-
" 1:,\n",
9643-
"].head()"
9641+
"google_license_data.iloc[1:,].head()"
96449642
]
96459643
},
96469644
{

0 commit comments

Comments
 (0)