{"action":"created","issue":{"url":"https://api.github.com/repos/github/linguist/issues/2931","repository_url":"https://api.github.com/repos/github/linguist","labels_url":"https://api.github.com/repos/github/linguist/issues/2931/labels{/name}","comments_url":"https://api.github.com/repos/github/linguist/issues/2931/comments","events_url":"https://api.github.com/repos/github/linguist/issues/2931/events","html_url":"https://github.com/github/linguist/issues/2931","id":145301577,"number":2931,"title":"C++ detected instead of Python in PyGeM repo","user":{"login":"mtezzele","id":8956946,"avatar_url":"https://avatars.githubusercontent.com/u/8956946?v=3","gravatar_id":"","url":"https://api.github.com/users/mtezzele","html_url":"https://github.com/mtezzele","followers_url":"https://api.github.com/users/mtezzele/followers","following_url":"https://api.github.com/users/mtezzele/following{/other_user}","gists_url":"https://api.github.com/users/mtezzele/gists{/gist_id}","starred_url":"https://api.github.com/users/mtezzele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtezzele/subscriptions","organizations_url":"https://api.github.com/users/mtezzele/orgs","repos_url":"https://api.github.com/users/mtezzele/repos","events_url":"https://api.github.com/users/mtezzele/events{/privacy}","received_events_url":"https://api.github.com/users/mtezzele/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-01T22:36:37Z","updated_at":"2016-04-01T23:52:01Z","closed_at":null,"body":"This repo:\r\n\r\nhttps://github.com/mathLab/PyGeM\r\n\r\nshows 92.9% of C++ code and when I click on that it does not find any C++ file (because there are only .py files). I do not know why it marks the repo as a C++ repo. I never pushed C++ files, only python ones."},"comment":{"url":"https://api.github.com/repos/github/linguist/issues/comments/204610907","html_url":"https://github.com/github/linguist/issues/2931#issuecomment-204610907","issue_url":"https://api.github.com/repos/github/linguist/issues/2931","id":204610907,"user":{"login":"arfon","id":4483,"avatar_url":"https://avatars.githubusercontent.com/u/4483?v=3","gravatar_id":"","url":"https://api.github.com/users/arfon","html_url":"https://github.com/arfon","followers_url":"https://api.github.com/users/arfon/followers","following_url":"https://api.github.com/users/arfon/following{/other_user}","gists_url":"https://api.github.com/users/arfon/gists{/gist_id}","starred_url":"https://api.github.com/users/arfon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arfon/subscriptions","organizations_url":"https://api.github.com/users/arfon/orgs","repos_url":"https://api.github.com/users/arfon/repos","events_url":"https://api.github.com/users/arfon/events{/privacy}","received_events_url":"https://api.github.com/users/arfon/received_events","type":"User","site_admin":true},"created_at":"2016-04-01T23:52:01Z","updated_at":"2016-04-01T23:52:01Z","body":"Files such as this one: https://github.com/mathLab/PyGeM/blob/master/tests/test_datasets/test_openFOAM are being detected as C++ and as they're so big they're dwarfing the language statistics for the repo.\r\n\r\nYou can fix this by creating a `.gitattributes` file and including the following:\r\n\r\ntests/test_datasets/* linguist-vendored=true\r\n"}}