Skip to content

Commit 131abe4

Browse files
committed
Rename to PropR, bump version
1 parent 4a327d5 commit 131abe4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+362
-360
lines changed

.envrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export PATH="$(dirname -- $(cabal list-bin endemic)):$PATH"
1+
export PATH="$(dirname -- $(cabal list-bin propr)):$PATH"

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#Genetic Search Stuff
1111

12-
/src/Endemic/Search/Genetic/ @lappislazuli
12+
/src/PropR/Search/Genetic/ @lappislazuli
1313

1414
#Docker stuff
1515

.github/workflows/build-test-deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
with:
7474
# list of Docker images to use as base name for tags
7575
images: |
76-
ghcr.io/tritlo/endemic
76+
ghcr.io/tritlo/propr
7777
# generate Docker tags based on the following events/attributes
7878
tags: |
7979
type=schedule
@@ -104,7 +104,7 @@ jobs:
104104
context: .
105105
build-args: |
106106
"HASKELL_VERSION=8.10.4"
107-
"ENDEMIC_VERSION=0.7.0"
107+
"PROPR_VERSION=1.0.0"
108108
push: ${{ github.event_name != 'pull_request' }}
109109
tags: ${{ steps.meta.outputs.tags }}
110110
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG HASKELL_VERSION=8.10.4
2-
ARG ENDEMIC_VERSION=0.7.0
2+
ARG PROPR_VERSION=1.0.0
33
ARG RUN_TESTS
44
# ==========================================
55
# = Stage 1: Build & Test =
@@ -10,9 +10,9 @@ LABEL builder=true
1010
LABEL maintainer="L.H.Applis@tu-delft.nl"
1111

1212
WORKDIR /builder
13-
COPY ./Endemic.cabal /builder/
13+
COPY ./PropR.cabal /builder/
1414
RUN cabal update
15-
RUN cabal build --dependencies-only Endemic
15+
RUN cabal build --dependencies-only PropR
1616

1717
COPY ./src /builder/src
1818
COPY ./tests /builder/tests
@@ -31,17 +31,17 @@ FROM haskell:${HASKELL_VERSION} as runnable
3131

3232
# Args need to be re-passed in a new Stage (See https://stackoverflow.com/questions/53681522/share-variable-in-multi-stage-dockerfile-arg-before-from-not-substituted)
3333
ARG HASKELL_VERSION
34-
ARG ENDEMIC_VERSION
34+
ARG PROPR_VERSION
3535

3636
LABEL builder=false
3737
LABEL maintainer="L.H.Applis@tu-delft.nl"
38-
LABEL name="tritlo/endemic"
39-
LABEL url="https://github.com/Tritlo/Endemic"
40-
LABEL vcs="https://github.com/Tritlo/Endemic"
38+
LABEL name="tritlo/propr"
39+
LABEL url="https://github.com/Tritlo/PropR"
40+
LABEL vcs="https://github.com/Tritlo/PropR"
4141

4242
# Copy the Executable from Builder-Container
43-
COPY --from=builder /builder/dist-newstyle/build/x86_64-linux/ghc-${HASKELL_VERSION}/Endemic-${ENDEMIC_VERSION}/x/endemic/build/endemic /app/
44-
RUN chmod +x /app/endemic
43+
COPY --from=builder /builder/dist-newstyle/build/x86_64-linux/ghc-${HASKELL_VERSION}/PropR-${PROPR_VERSION}/x/propr/build/propr /app/
44+
RUN chmod +x /app/propr
4545

4646
# Install the Helpers
4747
RUN cabal update
@@ -53,7 +53,7 @@ RUN cabal install --lib random QuickCheck
5353
ENV LOG_LEVEL=INFO
5454
ENV REPAIR_TARGET=/input
5555
ENV CONFIG_FILE="/config/config.json"
56-
ENV LOG_FILE="/output/docker-endemic.log"
56+
ENV LOG_FILE="/output/docker-propr.log"
5757

5858
# We create the default here, but if you mount it with docker compose
5959
# It will be created if not existing.

Endemic.cabal PropR.cabal

+39-39
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Endemic
1+
name: PropR
22
cabal-version: 1.24
33
build-type: Simple
4-
version: 0.7.0
4+
version: 1.0.0
55
author: Matthías Páll Gissurarson
66
maintainer: mpg@mpg.is
77
synopsis: synthtest
@@ -16,37 +16,37 @@ library
1616
default-language: Haskell2010
1717
ghc-options: -O2
1818
hs-source-dirs: src/
19-
exposed-modules: Endemic
20-
Endemic.Configuration,
21-
Endemic.Eval,
22-
Endemic.Plugin,
23-
Endemic.Repair,
24-
Endemic.Check,
25-
Endemic.Traversals,
26-
Endemic.Types,
27-
Endemic.Diff,
28-
Endemic.Util,
29-
Endemic.Search,
30-
Endemic.Search.PseudoGenetic,
31-
Endemic.Search.Genetic,
32-
Endemic.Search.Random,
33-
Endemic.Search.Exhaustive,
34-
Endemic.Packages
35-
other-modules: Endemic.Configuration.Configure,
36-
Endemic.Configuration.Types,
37-
Endemic.Configuration.Materializeable,
38-
Endemic.Search.Class,
39-
Endemic.Search.Genetic.Configuration,
40-
Endemic.Search.Genetic.GenMonad,
41-
Endemic.Search.Genetic.Search,
42-
Endemic.Search.Genetic.Types,
43-
Endemic.Search.Genetic.Utils
44-
Endemic.Search.PseudoGenetic.Configuration,
45-
Endemic.Search.PseudoGenetic.Search,
46-
Endemic.Search.Random.Configuration,
47-
Endemic.Search.Random.Search,
48-
Endemic.Search.Exhaustive.Configuration,
49-
Endemic.Search.Exhaustive.Search
19+
exposed-modules: PropR
20+
PropR.Configuration,
21+
PropR.Eval,
22+
PropR.Plugin,
23+
PropR.Repair,
24+
PropR.Check,
25+
PropR.Traversals,
26+
PropR.Types,
27+
PropR.Diff,
28+
PropR.Util,
29+
PropR.Search,
30+
PropR.Search.PseudoGenetic,
31+
PropR.Search.Genetic,
32+
PropR.Search.Random,
33+
PropR.Search.Exhaustive,
34+
PropR.Packages
35+
other-modules: PropR.Configuration.Configure,
36+
PropR.Configuration.Types,
37+
PropR.Configuration.Materializeable,
38+
PropR.Search.Class,
39+
PropR.Search.Genetic.Configuration,
40+
PropR.Search.Genetic.GenMonad,
41+
PropR.Search.Genetic.Search,
42+
PropR.Search.Genetic.Types,
43+
PropR.Search.Genetic.Utils
44+
PropR.Search.PseudoGenetic.Configuration,
45+
PropR.Search.PseudoGenetic.Search,
46+
PropR.Search.Random.Configuration,
47+
PropR.Search.Random.Search,
48+
PropR.Search.Exhaustive.Configuration,
49+
PropR.Search.Exhaustive.Search
5050
build-depends: base >= 4 && < 5,
5151
ghc >= 8 && < 9,
5252
ghc-boot >= 8 && < 9,
@@ -77,11 +77,11 @@ library
7777
Cabal >= 3.4 && < 3.5,
7878
aeson >= 1.5 && < 1.6
7979

80-
executable endemic
80+
executable propr
8181
default-language: Haskell2010
8282
main-is: src/Main.hs
8383
ghc-options: -threaded -O2
84-
other-modules: Paths_Endemic
84+
other-modules: Paths_PropR
8585
build-depends: base >= 4 && < 5,
8686
containers >= 0.6 && < 0.7,
8787
directory >= 1.3 && < 1.4,
@@ -92,7 +92,7 @@ executable endemic
9292
bytestring >= 0.10 && < 0.11,
9393
aeson >= 1.5 && < 1.6,
9494
random >= 1.2 && < 1.3,
95-
Endemic
95+
PropR
9696

9797

9898
test-suite test
@@ -112,7 +112,7 @@ test-suite test
112112
hpc >= 0.6 && < 0.7,
113113
data-default >= 0.7 && < 0.8,
114114
directory >= 1.3 && < 1.4,
115-
Endemic,
115+
PropR,
116116
-- packages used in repair:
117117
QuickCheck
118118

@@ -133,7 +133,7 @@ test-suite slow-test
133133
hpc >= 0.6 && < 0.7,
134134
data-default >= 0.7 && < 0.8,
135135
directory >= 1.3 && < 1.4,
136-
Endemic,
136+
PropR,
137137
-- packages used in repair:
138138
QuickCheck
139139

@@ -154,6 +154,6 @@ benchmark benchmark
154154
hpc >= 0.6 && < 0.7,
155155
data-default >= 0.7 && < 0.8,
156156
directory >= 1.3 && < 1.4,
157-
Endemic,
157+
PropR,
158158
-- packages used in repair:
159159
QuickCheck

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
[![Build, test, and deploy](https://github.com/Tritlo/Endemic/actions/workflows/build-test-deploy.yml/badge.svg)](https://github.com/Tritlo/Endemic/actions/workflows/build-test-deploy.yml)
2-
[![License: MIT](https://img.shields.io/badge/License-MIT-hotpink.svg)](https://github.com/Tritlo/Endemic/blob/master/LICENSE)
1+
[![Build, test, and deploy](https://github.com/Tritlo/PropR/actions/workflows/build-test-deploy.yml/badge.svg)](https://github.com/Tritlo/PropR/actions/workflows/build-test-deploy.yml)
2+
[![License: MIT](https://img.shields.io/badge/License-MIT-hotpink.svg)](https://github.com/Tritlo/PropR/blob/master/LICENSE)
33

4-
# Endemic: Genetic Program repair using GHC 🐣
4+
# PropR: Property-based Program repair using GHC 🐣
55

66
> Inspired by GenProg.
77
88
Welcome!
99

10-
This repository holds *Endemic*, a program repair library in and for Haskell.
10+
This repository holds *PropR*, a program repair library in and for Haskell.
1111
With just a few dependencies, we can help you repair your program using GHC and genetic search!
1212

1313
Key aspects:
@@ -36,7 +36,7 @@ To run the program, ensure that the `check-helpers` library is installed by runn
3636
`$ cabal install --lib check-helpers`. You can then run
3737

3838
```
39-
$ cabal run endemic -- examples/BrokenModule.hs
39+
$ cabal run propr -- examples/BrokenModule.hs
4040
```
4141

4242
Optionally, you can use Docker:
@@ -126,7 +126,7 @@ Showing how it works.
126126
For the `BrokenGCD` module, we get an interesting result:
127127

128128
```
129-
$ cabal run endemic -- examples/BrokenGCD.hs
129+
$ cabal run propr -- examples/BrokenGCD.hs
130130
```
131131

132132
gives us:
@@ -156,12 +156,12 @@ in `examples/`, but note that AST coverage is pretty limited at the moment.
156156
---------
157157

158158
```
159-
endemic - Genetic program repair for Haskell
159+
PropR - Genetic program repair for Haskell
160160
161-
Usage: endemic [--log-loc] [--no-log-timestamp] [--log-level LOGLEVEL]
161+
Usage: propr [--log-loc] [--no-log-timestamp] [--log-level LOGLEVEL]
162162
[--log-file FILE] [--seed INT] [--config CONFIG]
163163
[--override CONFIG] TARGET
164-
Repair TARGET using the endemic genetic method
164+
Repair TARGET using the propr genetic method
165165
166166
Available options:
167167
--log-loc Add location to log messages

docker-compose.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: '3.8'
22

33
services:
4-
Endemic_Example:
5-
image: tritlo/endemic:unstable
4+
PropR_Example:
5+
image: tritlo/propr:unstable
66
build:
77
context: .
88
dockerfile: Dockerfile
@@ -14,4 +14,4 @@ services:
1414
REPAIR_TARGET: /input/BrokenModule.hs
1515
CONFIG_FILE: /config/docker_config.json
1616
LOG_LEVEL: INFO
17-
oom_kill_disable: true
17+
oom_kill_disable: true

entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ echo "Starting Repair-Docker - Building the command"
55
# it is stitched together with any flag set in docker.
66

77
# Repairtarget must be set, otherwise it makes little sense
8-
commandCollector="/app/endemic $REPAIR_TARGET"
8+
commandCollector="/app/propr $REPAIR_TARGET"
99

1010
if [ -z ${LOG_LEVEL+x} ];
1111
then echo "Log-Level is not set";
@@ -43,4 +43,4 @@ echo "final cmd is ${commandCollector}"
4343

4444
# To keep the container open for inspection
4545
# echo "Program finished - Keeping Container open for inspection"
46-
# tail -f /dev/null
46+
# tail -f /dev/null

hie.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
cradle:
22
cabal:
3-
- path: "./src/Endemic"
4-
component: "lib:endemic"
5-
- path: "./src/Endemic/Search"
6-
component: "lib:endemic"
3+
- path: "./src/PropR"
4+
component: "lib:propr"
5+
- path: "./src/PropR/Search"
6+
component: "lib:propr"
77
- path: "./tests/cases"
8-
component: "lib:endemic"
8+
component: "lib:propr"
99
- path: "./examples"
10-
component: "lib:endemic"
10+
component: "lib:propr"
1111
- path: "./src/Main.hs"
12-
component: "exe:endemic"
12+
component: "exe:propr"
1313
- path: "./tests/Tests.hs"
1414
component: "test:test"
1515
- path: "./tests/"

resources/random_search_config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
"log_file": null
4545
},
4646
"random_seed": -3573107736776896000
47-
}
47+
}

src/Endemic.hs

-14
This file was deleted.

src/Endemic/Search.hs

-20
This file was deleted.

src/Endemic/Search/Exhaustive.hs

-13
This file was deleted.

src/Endemic/Search/PseudoGenetic.hs

-13
This file was deleted.

0 commit comments

Comments
 (0)