Skip to content

Commit

Permalink
Revert "Fix indentation in README."
Browse files Browse the repository at this point in the history
This reverts commit de702dc.
  • Loading branch information
cvaz committed Feb 17, 2024
1 parent de702dc commit 9162ef1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 24 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,18 @@ Check the initialization step in the [`example.sh`](scripts/example/example.sh)

To run the example,

export TOKEN="YOUR_TOKEN"
export USER_ID="YOUR_USER_ID"
git clone https://github.com/phyloviz/phyloDB.git phyloDB.git
cd phyloDB.git/
sed 's|#spring.data.neo4j.uri=bolt://phylodb-neo4j:7687|spring.data.neo4j.uri=bolt://phylodb-neo4j:7687|g' -i phylodb/bin/main/application.properties
sed 's|spring.data.neo4j.uri=bolt://localhost:7687|#spring.data.neo4j.uri=bolt://localhost:7687|g' -i phylodb/bin/main/application.properties
./configure.sh
cd docker
./build-docker.sh
./start-docker.sh
cd ../scripts/example
echo y | ./example.sh
export TOKEN="YOUR_TOKEN"
export USER_ID="YOUR_USER_ID"
git clone https://github.com/phyloviz/phyloDB.git phyloDB.git
cd phyloDB.git/
sed 's|#spring.data.neo4j.uri=bolt://phylodb-neo4j:7687|spring.data.neo4j.uri=bolt://phylodb-neo4j:7687|g' -i phylodb/bin/main/application.properties
sed 's|spring.data.neo4j.uri=bolt://localhost:7687|#spring.data.neo4j.uri=bolt://localhost:7687|g' -i phylodb/bin/main/application.properties
./configure.sh
cd docker
./build-docker.sh
./start-docker.sh
cd ../scripts/example
echo y | ./example.sh

To generate `YOUR_TOKEN`, access <https://developers.google.com/oauthplayground/>, sign in, and click 'Authorize
APIs' with the custom scope `https://www.googleapis.com/auth/userinfo.email`.
Expand Down
5 changes: 0 additions & 5 deletions phylodb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,3 @@ dependencies {
test {
useJUnitPlatform()
}

bootRun {
jvmArgs = ['--add-opens=java.base/java.lang=ALL-UNNAMED']
}

9 changes: 2 additions & 7 deletions phylodb/src/main/java/pt/ist/meic/phylodb/utils/db/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,18 @@ public String getExpression() {
StringBuilder parameterized = new StringBuilder(parts[0]);
for (int i = 1; i < parts.length; i++)
parameterized.append(PLACEHOLDER).append(i).append(parts[i]);
System.out.println("=====================================");
System.out.println("Query:" + parameterized.toString() + ";");
return parameterized.toString() + ";";
}

/**
* A map of ids and parameter which indicates to which query parameter, a
* parameter belongs to
* A map of ids and parameter which indicates to which query parameter, a parameter belongs to
*
* @return map of parameters
*/
public Map<String, Object> getParameters() {
Map<String, Object> params = new HashMap<>();
for (int i = 0; i < parameters.size(); i++) {
for (int i = 0; i < parameters.size(); i++)
params.put(String.valueOf(i + 1), parameters.get(i));
System.out.println("Parameters: " + String.valueOf(i + 1) + " -> " + parameters.get(i));
}
return params;
}

Expand Down

0 comments on commit 9162ef1

Please sign in to comment.