Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Ethan Mertz
/
CS-123-Final
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
febc25e9
authored
May 31, 2018
by
Anselm Jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
5dfdece2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
3 deletions
C/split.py → C/C_split.py
Python/py_split.py
Python/topfunctions.py
C/split.py
→
C/
C_
split.py
View file @
febc25e9
File moved
Python/py_split.py
View file @
febc25e9
import
re
import
re
reg
=
"#include"
def
go
():
def
go
():
print
(
"going"
)
print
(
"going"
)
count
=
0
count
=
0
...
...
Python/topfunctions.py
View file @
febc25e9
...
@@ -37,7 +37,7 @@ class TopFunctions(MRJob):
...
@@ -37,7 +37,7 @@ class TopFunctions(MRJob):
count
+=
s
[
0
]
count
+=
s
[
0
]
score
+=
s
[
2
]
score
+=
s
[
2
]
total
=
int
(
l
[
0
][
1
])
total
=
int
(
l
[
0
][
1
])
yield
name
,
(
count
,
score
)
yield
name
,
(
count
,
total
,
score
)
def
reducer_init
(
self
):
def
reducer_init
(
self
):
self
.
h
=
[(
-
float
(
"inf"
),
""
)]
self
.
h
=
[(
-
float
(
"inf"
),
""
)]
...
...
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