Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Binary paint shop problem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
Binary paint shop problem
Compare revisions
c92ea45d2c9a46696ab6d28491606d468b8ebeee to 600c11604be3aab733d1a0b29221ee9567d2b95f
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
jirikalvoda/binary-paint-shop-problem
Select target project
No results found
600c11604be3aab733d1a0b29221ee9567d2b95f
Select Git revision
Branches
master
1 result
Swap
Target
jirikalvoda/binary-paint-shop-problem
Select target project
jirikalvoda/binary-paint-shop-problem
1 result
c92ea45d2c9a46696ab6d28491606d468b8ebeee
Select Git revision
Branches
master
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (4)
data_lib: Remove duplicity
· 6ba130c1
Jiří Kalvoda
authored
1 year ago
6ba130c1
Korektury
· 1f3de0ce
Jiří Kalvoda
authored
1 year ago
1f3de0ce
prace: Přidání tabulek
· 472c5af5
Jiří Kalvoda
authored
1 year ago
472c5af5
prace: Korektury od vedoucího
· 600c1160
Jiří Kalvoda
authored
1 year ago
600c1160
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
data_lib.py
+8
-1
8 additions, 1 deletion
data_lib.py
prace/bakalarka/g.py
+1
-1
1 addition, 1 deletion
prace/bakalarka/g.py
prace/bakalarka/index.md
+118
-74
118 additions, 74 deletions
prace/bakalarka/index.md
with
127 additions
and
76 deletions
data_lib.py
View file @
600c1160
...
...
@@ -68,7 +68,7 @@ class Run:
return
self
.
algo_version
==
self
.
algo
.
current_version
class
Data
:
def
__init__
(
self
,
logfile
=
None
,
validate_versions
=
True
):
def
__init__
(
self
,
logfile
=
None
,
validate_versions
=
True
,
remove_duplications
=
False
):
self
.
validate_versions
=
validate_versions
logfile
=
logfile
or
os
.
environ
.
get
(
'
LOGFILE
'
,
'
log
'
)
raw_json
=
"
[
"
+
open
(
logfile
,
mode
=
'
r
'
).
read
()[
0
:
-
2
]
+
"
]
"
...
...
@@ -78,10 +78,17 @@ class Data:
self
.
pipelines
=
{}
self
.
runs
=
[]
duplication_checker
=
{}
for
it
in
raw_data
:
run
=
Run
(
self
,
it
)
self
.
runs
.
append
(
run
)
if
not
validate_versions
or
run
.
is_up_to_date
():
if
remove_duplications
:
key
=
(
run
.
n
,
run
.
seed
,
run
.
print_pipeline
())
if
key
in
duplication_checker
:
continue
duplication_checker
[
key
]
=
run
self
.
pipelines
.
setdefault
(
run
.
print_pipeline
(),
[])
self
.
pipelines
[
run
.
print_pipeline
()].
append
(
run
)
...
...
This diff is collapsed.
Click to expand it.
prace/bakalarka/g.py
View file @
600c1160
...
...
@@ -9,7 +9,7 @@ import sys, os
d
=
pathlib
.
Path
(
"
/
"
.
join
(
__file__
.
split
(
"
/
"
)[:
-
1
]))
def
load
(
name
):
return
data_lib
.
Data
(
d
/
name
,
validate_versions
=
False
)
return
data_lib
.
Data
(
d
/
name
,
validate_versions
=
False
,
remove_duplications
=
True
)
def
load_main_test
():
return
load
(
d
/
"
main_test/log
"
)
...
...
This diff is collapsed.
Click to expand it.
prace/bakalarka/index.md
View file @
600c1160
This diff is collapsed.
Click to expand it.