lvwerra HF staff commited on
Commit
289cb3e
1 Parent(s): b9a85cf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -3
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
- iterable = iter(ds)
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