Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
apachedex
Commits
368092f6
Commit
368092f6
authored
Apr 05, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include python implementation, version and build in parsing stats.
parent
f66076b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
apachedex/__init__.py
apachedex/__init__.py
+8
-0
No files found.
apachedex/__init__.py
View file @
368092f6
...
@@ -37,6 +37,7 @@ import gzip
...
@@ -37,6 +37,7 @@ import gzip
import
json
import
json
import
math
import
math
import
os
import
os
import
platform
import
re
import
re
import
sys
import
sys
import
time
import
time
...
@@ -632,8 +633,15 @@ def main():
...
@@ -632,8 +633,15 @@ def main():
end_stat_time
=
time
.
time
()
end_stat_time
=
time
.
time
()
if
args
.
stats
:
if
args
.
stats
:
out
.
write
(
'<h1>Parsing stats</h1><table class="stats">'
)
out
.
write
(
'<h1>Parsing stats</h1><table class="stats">'
)
buildno
,
builddate
=
platform
.
python_build
()
for
caption
,
value
in
(
for
caption
,
value
in
(
(
'Execution date'
,
datetime
.
now
().
isoformat
()),
(
'Execution date'
,
datetime
.
now
().
isoformat
()),
(
'Interpreter'
,
'%s %s build %s (%s)'
%
(
platform
.
python_implementation
(),
platform
.
python_version
(),
buildno
,
builddate
,
)),
(
'File count'
,
file_count
),
(
'File count'
,
file_count
),
(
'Lines'
,
all_lines
),
(
'Lines'
,
all_lines
),
(
'... malformed'
,
malformed_lines
),
(
'... malformed'
,
malformed_lines
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment