Update README.md
Browse files
README.md
CHANGED
@@ -66,9 +66,7 @@ We also have access to the license of the origin repo of a file so we can filter
|
|
66 |
ds = load_dataset("lvwerra/github-code", streaming=True, split="train", licenses=["mit", "isc"])
|
67 |
|
68 |
licenses = []
|
69 |
-
|
70 |
-
for i in range(10_000):
|
71 |
-
element = next(iterable)
|
72 |
licenses.append(element["license"])
|
73 |
print(Counter(licenses))
|
74 |
|
|
|
66 |
ds = load_dataset("lvwerra/github-code", streaming=True, split="train", licenses=["mit", "isc"])
|
67 |
|
68 |
licenses = []
|
69 |
+
for element in iter(ds).take(10_000):
|
|
|
|
|
70 |
licenses.append(element["license"])
|
71 |
print(Counter(licenses))
|
72 |
|