Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MP3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ajf5
MP3
Commits
19bf0174
Commit
19bf0174
authored
4 years ago
by
ajf5
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://gitlab.engr.illinois.edu/ajf5/MP3
into main
parents
4bd2bbe9
8cef6a54
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/Node.h
+1
-1
1 addition, 1 deletion
inc/Node.h
map1.py
+4
-3
4 additions, 3 deletions
map1.py
with
5 additions
and
4 deletions
inc/Node.h
+
1
−
1
View file @
19bf0174
...
@@ -37,7 +37,7 @@ using namespace std;
...
@@ -37,7 +37,7 @@ using namespace std;
#define PORT "2000"
#define PORT "2000"
#define LOGGING_FILE_NAME "logs.txt"
#define LOGGING_FILE_NAME "logs.txt"
#define EXEC_CMD "
./
" //python for python script, ./ for an executable
#define EXEC_CMD "
python
" //python for python script, ./ for an executable
// --- parameters (stay tuned) ---
// --- parameters (stay tuned) ---
#define T_period 150000 // in microseconds
#define T_period 150000 // in microseconds
...
...
This diff is collapsed.
Click to expand it.
map1.py
+
4
−
3
View file @
19bf0174
...
@@ -12,6 +12,7 @@ def map1(vote_str):
...
@@ -12,6 +12,7 @@ def map1(vote_str):
else
:
else
:
ret
=
vote
[
j
]
+
"
>
"
+
vote
[
i
]
+
"
,0
"
ret
=
vote
[
j
]
+
"
>
"
+
vote
[
i
]
+
"
,0
"
print
(
ret
)
print
(
ret
)
test_ret
+=
ret
with
open
(
sys
.
argv
[
1
])
as
f
:
test_ret
+=
'
\n
'
lines
=
f
.
readlines
()
return
test_ret
for
l
in
lines
:
map1
(
l
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment