dansbecker
commited on
Commit
•
4cbbb88
1
Parent(s):
b879b12
Add README
Browse filesAdd README
Regular update
update gitignore
- .gitignore +2 -0
- .ipynb_checkpoints/hn_hiring_posts-checkpoint.ipynb +11 -3
- hn_hiring_posts.ipynb +104 -3
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
raw/*
|
2 |
+
.ipynb_checkpoints
|
.ipynb_checkpoints/hn_hiring_posts-checkpoint.ipynb
CHANGED
@@ -45,10 +45,18 @@
|
|
45 |
},
|
46 |
{
|
47 |
"cell_type": "code",
|
48 |
-
"execution_count":
|
49 |
"id": "57ca7c96-d94c-4e65-8113-da7729558247",
|
50 |
"metadata": {},
|
51 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
"source": [
|
53 |
"import datasets\n",
|
54 |
"from huggingface_hub import create_repo\n",
|
@@ -65,7 +73,7 @@
|
|
65 |
"repo.git_add(data_path)\n",
|
66 |
"repo.git_add('*.ipynb')\n",
|
67 |
"repo.git_add('README.md')\n",
|
68 |
-
"repo.git_commit(\"
|
69 |
]
|
70 |
}
|
71 |
],
|
|
|
45 |
},
|
46 |
{
|
47 |
"cell_type": "code",
|
48 |
+
"execution_count": 2,
|
49 |
"id": "57ca7c96-d94c-4e65-8113-da7729558247",
|
50 |
"metadata": {},
|
51 |
+
"outputs": [
|
52 |
+
{
|
53 |
+
"name": "stderr",
|
54 |
+
"output_type": "stream",
|
55 |
+
"text": [
|
56 |
+
"/Users/dan.becker/Desktop/hackernews_hiring_dataset/. is already a clone of https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts. Make sure you pull the latest changes with `repo.git_pull()`.\n"
|
57 |
+
]
|
58 |
+
}
|
59 |
+
],
|
60 |
"source": [
|
61 |
"import datasets\n",
|
62 |
"from huggingface_hub import create_repo\n",
|
|
|
73 |
"repo.git_add(data_path)\n",
|
74 |
"repo.git_add('*.ipynb')\n",
|
75 |
"repo.git_add('README.md')\n",
|
76 |
+
"repo.git_commit(\"Add README\")"
|
77 |
]
|
78 |
}
|
79 |
],
|
hn_hiring_posts.ipynb
CHANGED
@@ -45,10 +45,103 @@
|
|
45 |
},
|
46 |
{
|
47 |
"cell_type": "code",
|
48 |
-
"execution_count":
|
49 |
"id": "57ca7c96-d94c-4e65-8113-da7729558247",
|
50 |
"metadata": {},
|
51 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
"source": [
|
53 |
"import datasets\n",
|
54 |
"from huggingface_hub import create_repo\n",
|
@@ -65,8 +158,16 @@
|
|
65 |
"repo.git_add(data_path)\n",
|
66 |
"repo.git_add('*.ipynb')\n",
|
67 |
"repo.git_add('README.md')\n",
|
68 |
-
"repo.
|
69 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
],
|
72 |
"metadata": {
|
|
|
45 |
},
|
46 |
{
|
47 |
"cell_type": "code",
|
48 |
+
"execution_count": 2,
|
49 |
"id": "57ca7c96-d94c-4e65-8113-da7729558247",
|
50 |
"metadata": {},
|
51 |
+
"outputs": [
|
52 |
+
{
|
53 |
+
"name": "stderr",
|
54 |
+
"output_type": "stream",
|
55 |
+
"text": [
|
56 |
+
"/Users/dan.becker/Desktop/hackernews_hiring_dataset/. is already a clone of https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts. Make sure you pull the latest changes with `repo.git_pull()`.\n",
|
57 |
+
"Several commits (5) will be pushed upstream.\n",
|
58 |
+
"The progress bars may be unreliable.\n"
|
59 |
+
]
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"data": {
|
63 |
+
"application/vnd.jupyter.widget-view+json": {
|
64 |
+
"model_id": "63ddc30f9ba5420faf6e34f6fa7144fc",
|
65 |
+
"version_major": 2,
|
66 |
+
"version_minor": 0
|
67 |
+
},
|
68 |
+
"text/plain": [
|
69 |
+
"Upload file data/hiring/dataset.arrow: 0%| | 32.0k/78.2M [00:00<?, ?B/s]"
|
70 |
+
]
|
71 |
+
},
|
72 |
+
"metadata": {},
|
73 |
+
"output_type": "display_data"
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"data": {
|
77 |
+
"application/vnd.jupyter.widget-view+json": {
|
78 |
+
"model_id": "be96819a155b4f17933d3ff82a2fb70d",
|
79 |
+
"version_major": 2,
|
80 |
+
"version_minor": 0
|
81 |
+
},
|
82 |
+
"text/plain": [
|
83 |
+
"Upload file data/wants_to_be_hired/dataset.arrow: 0%| | 32.0k/10.8M [00:00<?, ?B/s]"
|
84 |
+
]
|
85 |
+
},
|
86 |
+
"metadata": {},
|
87 |
+
"output_type": "display_data"
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"data": {
|
91 |
+
"application/vnd.jupyter.widget-view+json": {
|
92 |
+
"model_id": "3ef183014a04462e97153ca6673c5f11",
|
93 |
+
"version_major": 2,
|
94 |
+
"version_minor": 0
|
95 |
+
},
|
96 |
+
"text/plain": [
|
97 |
+
"Upload file data/freelancer/dataset.arrow: 0%| | 32.0k/10.6M [00:00<?, ?B/s]"
|
98 |
+
]
|
99 |
+
},
|
100 |
+
"metadata": {},
|
101 |
+
"output_type": "display_data"
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"name": "stderr",
|
105 |
+
"output_type": "stream",
|
106 |
+
"text": [
|
107 |
+
"remote: ----------------------------------------------------------\u001b[33m \n",
|
108 |
+
"remote: Your push was accepted, but with warnings: \n",
|
109 |
+
"remote: - warning : empty or missing yaml metadata in card (dansbecker/hackernews_hiring_posts) \n",
|
110 |
+
"remote: help: please find help at https://huggingface.co/docs/hub/model-repos\u001b[32m \n",
|
111 |
+
"remote: ---------------------------------------------------------- \n",
|
112 |
+
"remote: Please find the documentation at: \n",
|
113 |
+
"remote: https://huggingface.co/docs/hub/model-repos\u001b(B\u001b[m \n",
|
114 |
+
"remote: ---------------------------------------------------------- \n",
|
115 |
+
"remote: -------------------------------------------------------------------------\u001b[31m \n",
|
116 |
+
"remote: Your push was rejected because it contains files larger than 10M. \n",
|
117 |
+
"remote: Please use https://git-lfs.github.com/ to store larger files.\u001b(B\u001b[m \n",
|
118 |
+
"remote: ------------------------------------------------------------------------- \n",
|
119 |
+
"remote: Offending files: \n",
|
120 |
+
"remote: - raw/bq-results-20211206-133858-irtkgx60el7i.csv (ref: refs/heads/main) \n",
|
121 |
+
"To https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts\n",
|
122 |
+
" ! [remote rejected] main -> main (pre-receive hook declined)\n",
|
123 |
+
"error: failed to push some refs to 'https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts'\n",
|
124 |
+
"\n"
|
125 |
+
]
|
126 |
+
},
|
127 |
+
{
|
128 |
+
"ename": "OSError",
|
129 |
+
"evalue": "remote: ----------------------------------------------------------\u001b[33m \nremote: Your push was accepted, but with warnings: \nremote: - warning : empty or missing yaml metadata in card (dansbecker/hackernews_hiring_posts) \nremote: help: please find help at https://huggingface.co/docs/hub/model-repos\u001b[32m \nremote: ---------------------------------------------------------- \nremote: Please find the documentation at: \nremote: https://huggingface.co/docs/hub/model-repos\u001b(B\u001b[m \nremote: ---------------------------------------------------------- \nremote: -------------------------------------------------------------------------\u001b[31m \nremote: Your push was rejected because it contains files larger than 10M. \nremote: Please use https://git-lfs.github.com/ to store larger files.\u001b(B\u001b[m \nremote: ------------------------------------------------------------------------- \nremote: Offending files: \nremote: - raw/bq-results-20211206-133858-irtkgx60el7i.csv (ref: refs/heads/main) \nTo https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts\n ! [remote rejected] main -> main (pre-receive hook declined)\nerror: failed to push some refs to 'https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts'\n",
|
130 |
+
"output_type": "error",
|
131 |
+
"traceback": [
|
132 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
133 |
+
"\u001b[0;31mCalledProcessError\u001b[0m Traceback (most recent call last)",
|
134 |
+
"\u001b[0;32m/usr/local/anaconda3/lib/python3.8/site-packages/huggingface_hub/repository.py\u001b[0m in \u001b[0;36mgit_push\u001b[0;34m(self, upstream, blocking, auto_lfs_prune)\u001b[0m\n\u001b[1;32m 998\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mreturn_code\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 999\u001b[0;31m raise subprocess.CalledProcessError(\n\u001b[0m\u001b[1;32m 1000\u001b[0m \u001b[0mreturn_code\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mprocess\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mstdout\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstderr\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mstderr\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
135 |
+
"\u001b[0;31mCalledProcessError\u001b[0m: Command '['git', 'push', '--set-upstream', 'origin', 'main']' returned non-zero exit status 1.",
|
136 |
+
"\nDuring handling of the above exception, another exception occurred:\n",
|
137 |
+
"\u001b[0;31mOSError\u001b[0m Traceback (most recent call last)",
|
138 |
+
"\u001b[0;32m<ipython-input-2-38e9608c0524>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0mrepo\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mgit_add\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'*.ipynb'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 15\u001b[0m \u001b[0mrepo\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mgit_add\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'README.md'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 16\u001b[0;31m \u001b[0mrepo\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpush_to_hub\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcommit_message\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'Regular update'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mblocking\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mclean_ok\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
|
139 |
+
"\u001b[0;32m/usr/local/anaconda3/lib/python3.8/site-packages/huggingface_hub/repository.py\u001b[0m in \u001b[0;36mpush_to_hub\u001b[0;34m(self, commit_message, blocking, clean_ok, auto_lfs_prune)\u001b[0m\n\u001b[1;32m 1230\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mgit_add\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mauto_lfs_track\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1231\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mgit_commit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcommit_message\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1232\u001b[0;31m return self.git_push(\n\u001b[0m\u001b[1;32m 1233\u001b[0m \u001b[0mupstream\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34mf\"origin {self.current_branch}\"\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1234\u001b[0m \u001b[0mblocking\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mblocking\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
140 |
+
"\u001b[0;32m/usr/local/anaconda3/lib/python3.8/site-packages/huggingface_hub/repository.py\u001b[0m in \u001b[0;36mgit_push\u001b[0;34m(self, upstream, blocking, auto_lfs_prune)\u001b[0m\n\u001b[1;32m 1002\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1003\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0msubprocess\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mCalledProcessError\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mexc\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1004\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mEnvironmentError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mexc\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstderr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1005\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1006\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mblocking\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
|
141 |
+
"\u001b[0;31mOSError\u001b[0m: remote: ----------------------------------------------------------\u001b[33m \nremote: Your push was accepted, but with warnings: \nremote: - warning : empty or missing yaml metadata in card (dansbecker/hackernews_hiring_posts) \nremote: help: please find help at https://huggingface.co/docs/hub/model-repos\u001b[32m \nremote: ---------------------------------------------------------- \nremote: Please find the documentation at: \nremote: https://huggingface.co/docs/hub/model-repos\u001b(B\u001b[m \nremote: ---------------------------------------------------------- \nremote: -------------------------------------------------------------------------\u001b[31m \nremote: Your push was rejected because it contains files larger than 10M. \nremote: Please use https://git-lfs.github.com/ to store larger files.\u001b(B\u001b[m \nremote: ------------------------------------------------------------------------- \nremote: Offending files: \nremote: - raw/bq-results-20211206-133858-irtkgx60el7i.csv (ref: refs/heads/main) \nTo https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts\n ! [remote rejected] main -> main (pre-receive hook declined)\nerror: failed to push some refs to 'https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts'\n"
|
142 |
+
]
|
143 |
+
}
|
144 |
+
],
|
145 |
"source": [
|
146 |
"import datasets\n",
|
147 |
"from huggingface_hub import create_repo\n",
|
|
|
158 |
"repo.git_add(data_path)\n",
|
159 |
"repo.git_add('*.ipynb')\n",
|
160 |
"repo.git_add('README.md')\n",
|
161 |
+
"repo.push_to_hub(commit_message='Regular update', blocking=True, clean_ok=False)"
|
162 |
]
|
163 |
+
},
|
164 |
+
{
|
165 |
+
"cell_type": "code",
|
166 |
+
"execution_count": null,
|
167 |
+
"id": "960641f2-7844-44d7-a8bd-acc3c12ced07",
|
168 |
+
"metadata": {},
|
169 |
+
"outputs": [],
|
170 |
+
"source": []
|
171 |
}
|
172 |
],
|
173 |
"metadata": {
|