naturalness / sensibility

Fixes Java syntax errors with LSTM neural networks! [proof-of-concept]

Home Page:https://eddieantonio.keybase.pub/santos2018syntax.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Field 'license' doesn't exist on type 'Repository'

luizperes opened this issue · comments

GraphQL query is wrong according to https://developer.github.com/v4/object/repository/, because the field is licenseInfo rather than license.

(sensibility) Luizs-MacBook-Pro:sensibility luizperes$ sensibility mine download
INFO:ConcreteLanguageProxy:Language inferred from environment: javascript
INFO:download_worker:Downloader queue: q:work:010f6c39-7b0c-4616-b5ab-5c15bdee245c
INFO:download_worker:Fetching fbeline/Design-Patterns-JS
ERROR:download_worker:Error downloading "fbeline/Design-Patterns-JS
"
Traceback (most recent call last):
  File "/Users/luizperes/Projects/sensibility/sensibility/miner/downloader.py", line 79, in loop_forever
    self.do_job(job)
  File "/Users/luizperes/Projects/sensibility/sensibility/miner/downloader.py", line 105, in do_job
    repo = self.client.fetch_repository(repo_id)
  File "/Users/luizperes/Projects/sensibility/sensibility/miner/downloader.py", line 196, in fetch_repository
    """, owner=repo.owner, name=repo.name)
  File "/Users/luizperes/Projects/sensibility/sensibility/miner/downloader.py", line 230, in query
    raise ValueError(repr(response['errors']))
ValueError: [{'message': "Field 'license' doesn't exist on type 'Repository'", 'locations': [{'line': 15, 'column': 17}]}]
INFO:download_worker:Fetching fbrandel/ParisHilton.js
ERROR:download_worker:Error downloading "fbrandel/ParisHilton.js