line-count Questions
17
Solved
How would I count the total number of lines present in all the files in a git repository?
git ls-files gives me a list of files tracked by git.
I'm looking for a command to cat all those files. S...
Phooey asked 27/1, 2011 at 22:7
23
Solved
In a GitHub repository you can see “language statistics”, which displays the percentage of the project that’s written in a language. It doesn’t, however, display how many lines of code the project ...
Honeywell asked 12/11, 2014 at 7:26
6
Solved
Obviously one could loop through a file using fgetl or similar function and increment a counter, but is there a way to determine the number of lines in a file without doing such a loop?
Gide asked 29/8, 2012 at 11:6
44
Solved
How do I get a line count of a large file in the most memory- and time-efficient manner?
def file_len(filename):
with open(filename) as f:
for i, _ in enumerate(f):
pass
return i + 1
Outset asked 10/5, 2009 at 10:22
3
Solved
I'm trying to print the per-line contribution of each author to a Git repository.
For that, I use the following command, adapted from How to count total lines changed by a specific author in a Git...
Lacto asked 22/8, 2014 at 14:14
7
Solved
How can I measure number of lines of code in my PHP web development projects?
Edit: I'm interested in windows tools only
Polarization asked 13/1, 2009 at 4:7
9
Solved
I need to read the number of lines in a file before doing some operations on that file. When I try to read the file and increment the line_count variable at each iteration until I reach EOF. It was...
Heroism asked 9/5, 2009 at 11:28
10
Solved
I've tried the Metrics plugin and although it's nice and all, it's not what my boss is looking for. It counts a line with just one } as a line and he doesn't want that to count as "its not a ...
Thai asked 3/8, 2011 at 9:16
6
Solved
I have a file that contains:
VoicemailButtonTest
VoicemailButtonTest
VoicemailButtonTest
VoicemailButtonTest
VoicemailButtonTest
VoiceMailConfig60CharsTest
VoicemailDefaultTypeTest
VoiceMailIconSe...
Lithometeor asked 31/10, 2017 at 18:33
5
Solved
I have a really simple script right now that counts lines in a text file using enumerate():
i = 0
f = open("C:/Users/guest/Desktop/file.log", "r")
for i, line in enumerate(f):
pass
print i ...
Forge asked 9/3, 2012 at 5:5
1
Solved
I have FixedDocument page and I want to place TextBlock on it, but it can be that Textblock doesn't fit on page by height.
So I want to take lines from generated TextBlock with TextWrapping, and t...
Kermanshah asked 16/1, 2013 at 10:19
1
Solved
Possible Duplicate:
How to get number of rows in <textarea >?
I have a textarea and I write 7 lines in it with only 2 new line character like below, just imagine the following c...
Dorey asked 22/11, 2012 at 20:11
3
How can I do getLineCount() of an Edittext in the onCreate() method of an activity, having changed the Edittext's text, like the following:
@override
public void onCreate(Bundle savedInstanceSta...
Confounded asked 10/11, 2011 at 21:9
4
Our app at work is a huge project with over 3000 units, weighing in about 3.5 million lines of code.
...or at least it was when we were compiling it under D2007. We recently updated to D2010, and ...
Tol asked 2/2, 2010 at 23:10
2
Solved
When building a project there are two places where source line count is reported:
On the compile progress dialog
Under Project | Information
In Delphi 2007 these two numbers were identical for th...
Whomever asked 3/2, 2010 at 17:48
2
Solved
Suppose you open a file, and do an seek() somewhere in the file, how do you know the current file line ?
(I personally solved with an ad-hoc file class that maps the seek position to the line afte...
Undersized asked 27/11, 2009 at 14:58
1
© 2022 - 2024 — McMap. All rights reserved.