{"action":"created","issue":{"url":"https://api.github.com/repos/github/linguist/issues/2332","labels_url":"https://api.github.com/repos/github/linguist/issues/2332/labels{/name}","comments_url":"https://api.github.com/repos/github/linguist/issues/2332/comments","events_url":"https://api.github.com/repos/github/linguist/issues/2332/events","html_url":"https://github.com/github/linguist/issues/2332","id":68166087,"number":2332,"title":"JavaScript files incorrectly reported as Java","user":{"login":"timvandermeij","id":1993262,"avatar_url":"https://avatars.githubusercontent.com/u/1993262?v=3","gravatar_id":"","url":"https://api.github.com/users/timvandermeij","html_url":"https://github.com/timvandermeij","followers_url":"https://api.github.com/users/timvandermeij/followers","following_url":"https://api.github.com/users/timvandermeij/following{/other_user}","gists_url":"https://api.github.com/users/timvandermeij/gists{/gist_id}","starred_url":"https://api.github.com/users/timvandermeij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvandermeij/subscriptions","organizations_url":"https://api.github.com/users/timvandermeij/orgs","repos_url":"https://api.github.com/users/timvandermeij/repos","events_url":"https://api.github.com/users/timvandermeij/events{/privacy}","received_events_url":"https://api.github.com/users/timvandermeij/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T18:47:19Z","updated_at":"2015-04-14T18:13:57Z","closed_at":"2015-04-14T16:23:42Z","body":"Take a look at the language statistics for https://github.com/mozilla/pdf.js. It says \"Java 85.9%\", but in fact there is not a single line of Java in the repository: it's all JavaScript. Interestingly, if you click that percentage, you end up at https://github.com/mozilla/pdf.js/search?l=java, which shows only six files: not by far 85.9%.\r\n\r\nThis bug is new and occurred approx. a few weeks ago. A friendly GitHub staff member asked me to create an issue for this here and pointed out that Linguist might be confused by Mozilla's way of tagging files for various editors. See https://github.com/mozilla/pdf.js/blob/ba8a4f2b3e2ac3f0eb9c4ab59eedb9e0072ad52b/test/driver.js#L1 for example: the first line of all our JavaScript files starts with 'Mode: Java'."},"comment":{"url":"https://api.github.com/repos/github/linguist/issues/comments/93005050","html_url":"https://github.com/github/linguist/issues/2332#issuecomment-93005050","issue_url":"https://api.github.com/repos/github/linguist/issues/2332","id":93005050,"user":{"login":"pchaigno","id":1764210,"avatar_url":"https://avatars.githubusercontent.com/u/1764210?v=3","gravatar_id":"","url":"https://api.github.com/users/pchaigno","html_url":"https://github.com/pchaigno","followers_url":"https://api.github.com/users/pchaigno/followers","following_url":"https://api.github.com/users/pchaigno/following{/other_user}","gists_url":"https://api.github.com/users/pchaigno/gists{/gist_id}","starred_url":"https://api.github.com/users/pchaigno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchaigno/subscriptions","organizations_url":"https://api.github.com/users/pchaigno/orgs","repos_url":"https://api.github.com/users/pchaigno/repos","events_url":"https://api.github.com/users/pchaigno/events{/privacy}","received_events_url":"https://api.github.com/users/pchaigno/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T18:13:57Z","updated_at":"2015-04-14T18:13:57Z","body":"@timvandermeij Just out of curiosity, why are you tagging JS files as Java in Emacs?"}}