Comments (1)
At present it appears as though linguist on GitHub handles large files (> 1MB) by reporting their byte count (or something similar) en lieu of their actual line count.
Correct. This is documented:
The percentages are calculated based on the bytes of code for each language as reported by the List Languages API.
As for:
However, when linguist is run on the full repo it reports
6677629
lines of Jupyter code.
The output is showing bytes in the second column, not lines.
As for linguist not supporting larger Jupyter files, it certainly does. If it didn't, you wouldn't get a language here and the figure in the sidebar and analysis would be significantly lower:
.../src/examples/TokaMaker/fixed_boundary/fixed_boundary_ex2.ipynb: 0 lines (0 sloc)
type: Text
mime type: text/plain
language: Jupyter Notebook <=== ‼️ HERE
blob is too large to be shown
The line you see below it isn't an indication of a lack of support and also doesn't apply for things like Jupyter notebooks which are rendered by a completely independent service. This information only applies to files rendered directly in GitHub's UI without any processing, like plain text python or Fortran files.
So what you are seeing is expected and correct behaviour. If you want to change this to better suit your desires, you can implement an override.
from linguist.
Related Issues (20)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linguist.