if write make dataset/repositories.csv with Total number of repositories to fetch from GitHub. > 30 and % 100 != 0 we get an exception:
cam/steps/discover-repos.rb:125:in `<main>': undefined method `values' for an instance of Array (NoMethodError)
lines = [found.first[1].keys.join(',')] + found.values.map { |m| m.values.join(',') }
Did you mean? values_at
This happens because if we exit the loop before we have collected enough repositories, the script tries to slice hash - line with bug
if write
make dataset/repositories.csv
withTotal number of repositories to fetch from GitHub.
> 30 and % 100 != 0 we get an exception:This happens because if we exit the loop before we have collected enough repositories, the script tries to slice hash - line with bug
i suppose we miss
to_h
cast