Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hints #152

Open
wants to merge 52 commits into
base: hints
Choose a base branch
from
Open

Hints #152

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
2f6f143
Update README.md
nmacedo Feb 5, 2020
cfda1fb
Update README.md
nmacedo Feb 5, 2020
6006397
Merge pull request #114 from haslab/dev
nmacedo Aug 7, 2020
5fefab1
Update .travis.yml
nmacedo Nov 13, 2020
f630973
Update .travis.yml
nmacedo Nov 13, 2020
55bb7ec
Update .travis.yml
nmacedo Nov 13, 2020
258da57
meteor updated
nmacedo Jan 20, 2023
7123311
Update gitignore
h-neto May 4, 2023
4aeba79
Rewritten API in Quarkus
h-neto May 16, 2023
72d585b
Proguess Save In Hint Implementation
h-neto Jun 2, 2023
419a638
Implemented Difference Algorithm
h-neto Jun 3, 2023
e8526c6
Mutaters + Several BugFixes/Workarounds
h-neto Jun 13, 2023
0cf234b
Update
h-neto Jun 21, 2023
2f1d190
Renable Mutation Hints
h-neto Jun 21, 2023
e2305c0
Small fix
h-neto Jun 28, 2023
44757f1
Small Fix
h-neto Jul 3, 2023
eb35428
Prestatistics cleanup
h-neto Jul 4, 2023
83528d4
Fixes + Test Methods
h-neto Jul 12, 2023
3782351
Major Cleanup
h-neto Jul 17, 2023
c72f847
Refactors
h-neto Jul 18, 2023
d4291f4
Cleanup of Edit operations
h-neto Jul 18, 2023
5ea93d2
QoL change
h-neto Jul 18, 2023
6f0a8c4
Position Map fix
h-neto Jul 18, 2023
43403e7
Nomenclature Fix
h-neto Jul 20, 2023
f652059
Update + Refactor
h-neto Jul 27, 2023
1fcb167
Quarkus Update
h-neto Jul 27, 2023
a18aafb
Update
h-neto Sep 12, 2023
95a6208
Update
h-neto Sep 13, 2023
4ca279d
Update
h-neto Sep 14, 2023
a11f2df
BugFixes
h-neto Sep 22, 2023
17a0466
Update
h-neto Sep 28, 2023
20e3645
Cleanup
h-neto Oct 9, 2023
53cd3c6
Rewrite Policy Algorithm
h-neto Oct 13, 2023
4278cb6
FIX
h-neto Oct 13, 2023
df5ec5c
UPDATE
h-neto Oct 15, 2023
af7fd78
Fix
h-neto Oct 15, 2023
dd02d57
Update
h-neto Oct 16, 2023
ea415c0
Normalization Redone
h-neto Oct 17, 2023
879e1b7
Fixes
h-neto Oct 17, 2023
fd9c49e
Update
h-neto Oct 20, 2023
75dd408
Update
h-neto Oct 21, 2023
8355c7d
Update
h-neto Oct 23, 2023
afdc3ff
Create LICENSE
nmacedo Oct 24, 2023
7eedff4
meteor and deps updated
nmacedo Oct 24, 2023
80aa185
Merge branch 'dev' of github.com:haslab/Alloy4Fun into dev
nmacedo Oct 24, 2023
c97f9b2
Merge pull request #151 from haslab/dev
nmacedo Oct 24, 2023
0057047
Fixes
h-neto Oct 24, 2023
be8a95a
Fix
h-neto Oct 24, 2023
457f346
Merge pull request #1 from haslab/master
h-neto Feb 7, 2024
cacc4d7
Dependency Fix
h-neto Jun 16, 2024
b6b89e3
Merge remote-tracking branch 'origin/master' into dev
h-neto Jun 16, 2024
b8f8950
Cleanup
h-neto Jun 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ api/\.project
api/\.settings/
api/bin/


#Private Data
db-population/

# others
alloy-examples
Alloy4FunMeteor/\.meteor/
Expand Down
1 change: 1 addition & 0 deletions .mvn/wrapper/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maven-wrapper.jar
84 changes: 84 additions & 0 deletions .mvn/wrapper/MavenWrapperDownloader.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import java.io.IOException;
import java.io.InputStream;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;

public final class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = "3.2.0";

private static final boolean VERBOSE = Boolean.parseBoolean(System.getenv("MVNW_VERBOSE"));

public static void main(String[] args) {
log("Apache Maven Wrapper Downloader " + WRAPPER_VERSION);

if (args.length != 2) {
System.err.println(" - ERROR wrapperUrl or wrapperJarPath parameter missing");
System.exit(1);
}

try {
log(" - Downloader started");
final URL wrapperUrl = new URL(args[0]);
final String jarPath = args[1].replace("..", ""); // Sanitize path
final Path wrapperJarPath = Paths.get(jarPath).toAbsolutePath().normalize();
downloadFileFromURL(wrapperUrl, wrapperJarPath);
log("Done");
} catch (IOException e) {
System.err.println("- Error downloading: " + e.getMessage());
if (VERBOSE) {
e.printStackTrace();
}
System.exit(1);
}
}

private static void downloadFileFromURL(URL wrapperUrl, Path wrapperJarPath)
throws IOException {
log(" - Downloading to: " + wrapperJarPath);
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
final String username = System.getenv("MVNW_USERNAME");
final char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
}
try (InputStream inStream = wrapperUrl.openStream()) {
Files.copy(inStream, wrapperJarPath, StandardCopyOption.REPLACE_EXISTING);
}
log(" - Downloader complete");
}

private static void log(String msg) {
if (VERBOSE) {
System.out.println(msg);
}
}

}
18 changes: 18 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 INESC TEC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Linter is also installed and configured but not included in the CI pipeline, to

To include the linter in the CI pipeline (first make sure all linter errors are fixed) and then add the following to the [package.json](meteor/package.json) `scripts`: `"pretest": "npm run lint --silent"`

# Datasets
* [Data](https://github.com/haslab/Alloy4Fun/wiki/EM-19-10) from the 19/29 formal methods course at Universidade do Minho (as reported in the ABZ'20 submission).

# Team
Alloy4fun has been developed by [INESC TEC](http://inesctec.pt) with members from:
* [HASLab](https://haslab.uminho.pt)
Expand Down
5 changes: 5 additions & 0 deletions api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!target/*-runner
!target/*-runner.jar
!target/lib/*
!target/quarkus-app/*
4 changes: 4 additions & 0 deletions api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
quarkus.console.color=true
quarkus.log.console.darken=1

quarkus.mongodb.connection-string=mongodb://localhost:27017
46 changes: 46 additions & 0 deletions api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#Maven
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
release.properties
.flattened-pom.xml
mvn
mvn.cmd
.mvn

# Eclipse
.project
.classpath
.settings/
bin/

# IntelliJ
.idea
*.ipr
*.iml
*.iws

# NetBeans
nb-configuration.xml

# Visual Studio Code
.vscode
.factorypath

# OSX
.DS_Store

# Vim
*.swp
*.swo

# patch
*.orig
*.rej

# Local environment
.env

# Plugin directory
/.quarkus/cli/plugins/
18 changes: 0 additions & 18 deletions api/Dockerfile

This file was deleted.

59 changes: 59 additions & 0 deletions api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# alloy4fun-api

This project uses Quarkus, the Supersonic Subatomic Java Framework.

If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .

## Running the application in dev mode

You can run your application in dev mode that enables live coding using:

```shell script
./mvnw compile quarkus:dev
```

> **_NOTE:_** Quarkus ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.

## Packaging and running the application

The application can be packaged using:

```shell script
./mvnw package
```

It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory.

The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`.

If you want to build an _über-jar_, execute the following command:

```shell script
./mvnw package -Dquarkus.package.type=uber-jar
```

The application, packaged as an _über-jar_, is now runnable using `java -jar target/*-runner.jar`.

## Creating a native executable

You can create a native executable using:

```shell script
./mvnw package -Pnative
```

Or, if you don't have GraalVM installed, you can run the native executable build in a container using:

```shell script
./mvnw package -Pnative -Dquarkus.native.container-build=true
```

You can then execute your native executable with: `./target/alloy4fun-api-1.0-SNAPSHOT-runner`

If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.

## Related Guides

- MongoDB client ([guide](https://quarkus.io/guides/mongodb)): Connect to MongoDB in either imperative or reactive style

1 change: 1 addition & 0 deletions api/lib/org/alloytools/Alloy/6.1.0/Alloy-6.1.0.jar.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
44cddd0fe1b7faf21d0f405159efb586
1 change: 1 addition & 0 deletions api/lib/org/alloytools/Alloy/6.1.0/Alloy-6.1.0.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2e0ce7bb46e8aecb513e360f458ea571ad5591ec
1 change: 1 addition & 0 deletions api/lib/org/alloytools/Alloy/6.1.0/Alloy-6.1.0.pom.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4d3951fb98c0618070ecb2f0a3e1ef9c
1 change: 1 addition & 0 deletions api/lib/org/alloytools/Alloy/6.1.0/Alloy-6.1.0.pom.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b96c749559bee344721d4247f4209c3c1951b90a
12 changes: 12 additions & 0 deletions api/lib/org/alloytools/Alloy/maven-metadata-local.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.alloytools</groupId>
<artifactId>Alloy</artifactId>
<versioning>
<release>6.1.0</release>
<versions>
<version>6.1.0</version>
</versions>
<lastUpdated>20230909084833</lastUpdated>
</versioning>
</metadata>
1 change: 1 addition & 0 deletions api/lib/org/alloytools/Alloy/maven-metadata-local.xml.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8070ef7af3b760447df889fc2ba13a3b
1 change: 1 addition & 0 deletions api/lib/org/alloytools/Alloy/maven-metadata-local.xml.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c8638d62a0efb63769ac5c38b9dfa98f47e63960
Binary file added api/lib/pt/haslab/TAR/1.1.1/TAR-1.1.1.jar
Binary file not shown.
1 change: 1 addition & 0 deletions api/lib/pt/haslab/TAR/1.1.1/TAR-1.1.1.jar.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2375fd2faac1e93e40b13b5d1e61d16c
1 change: 1 addition & 0 deletions api/lib/pt/haslab/TAR/1.1.1/TAR-1.1.1.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3fe33e0c09c57b9efc2dd8cd915badd1354f4e74
9 changes: 9 additions & 0 deletions api/lib/pt/haslab/TAR/1.1.1/TAR-1.1.1.pom
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>pt.haslab</groupId>
<artifactId>TAR</artifactId>
<version>1.1.1</version>
<description>POM was created from install:install-file</description>
</project>
1 change: 1 addition & 0 deletions api/lib/pt/haslab/TAR/1.1.1/TAR-1.1.1.pom.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1274f3e2c48a4efe5cf82729a643ceee
1 change: 1 addition & 0 deletions api/lib/pt/haslab/TAR/1.1.1/TAR-1.1.1.pom.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
37462a4691670f375a708154f575702e6a5fafb9
12 changes: 12 additions & 0 deletions api/lib/pt/haslab/TAR/maven-metadata-local.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>pt.haslab</groupId>
<artifactId>TAR</artifactId>
<versioning>
<release>1.1.1</release>
<versions>
<version>1.1.1</version>
</versions>
<lastUpdated>20230908171751</lastUpdated>
</versioning>
</metadata>
1 change: 1 addition & 0 deletions api/lib/pt/haslab/TAR/maven-metadata-local.xml.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
44858ccce06c471b4cfb5b860d5e019a
1 change: 1 addition & 0 deletions api/lib/pt/haslab/TAR/maven-metadata-local.xml.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
60429110538abf35f8771ed6b86b877a407faede
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4d6ed60ba25b33b27f960b0b00264faf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fd3e39704651577fbb41312f33ab4cc21ea82ccf
Loading