<commit_before>Ure Museum online DB
====================

grails app for web access to  the [Ure Museum Collections](http://beta.uremusem.org)

Running the demo

(Note: the demo only supports anonymous user access)
------

First, install Docker from https://www.docker.com/ if you don't have it. 


Then  build an image from the root directory of this project

```
docker build -t ure/uredb_base . 
```

Start the database 

```
docker run --name uredemo-mysql -v "$PWD"/data/uredemo.sql:/docker-entrypoint-initdb.d/setup.sql -e MYSQL_ROOT_\
PASSWORD=<PASSWORD>  -d mysql:latest
```
Make a local .grails / ivy directory for storing jars needed by the app (if it doesn't already exist)

```
mkdir ~/.grails
```

Finally, run the image

```
docker run --rm --link uredemo-mysql:mysql -v ~/.grails:/root/.grails  -v "$PWD":/app:rw \
-e UREDEMO_DB_USER='uredemo' -e UREDEMO_DB_PWD='<PASSWORD>' -e WSKEY='api2demo' --name uredb_latest  ure/uredb_base \
"run-app -Dgrails.env=uredemo    --refresh-dependencies --stacktrace"
```

Add a port switch if you need one (-p $HOSTPORT:$CONTAINERPORT)

```
docker run --rm --link uredemo-mysql:mysql -v ~/.grails:/root/.grails  -v "$PWD":/app:rw \
-e UREDEMO_DB_USER='uredemo' -e UREDEMO_DB_PWD='<PASSWORD>' -e WSKEY='api2demo' -p 8080:8080 --name uredb_latest  ure/uredb_base \
"run-app -Dgrails.env=uredemo   --refresh-dependencies --stacktrace"
```
<commit_msg>CLOSED - task 181: dnd fails on custom queries  http://github.com/bcfuchs/uredb_website/issues/issue/181<commit_after>Ure Museum online DB
====================

grails app for web access to  the [Ure Museum Collections](http://beta.uremusem.org)

Running the demo

(Note: the demo only supports anonymous user access)
------

First, install Docker from https://www.docker.com/ if you don't have it. 


Then  build an image from the root directory of this project

```
docker build -t ure/uredb_base . 
```

Start the database 

```
docker run --name uredemo-mysql -v "$PWD"/data/uredemo.sql:/docker-entrypoint-initdb.d/setup.sql -e MYSQL_ROOT_\
PASSWORD=<PASSWORD>  -d mysql:latest
```
Make a local .grails / ivy directory for storing jars needed by the app (if it doesn't already exist)

```
mkdir ~/.grails
```

Finally, run the image

```
docker run --rm --link uredemo-mysql:mysql -v ~/.grails:/root/.grails  -v "$PWD":/app:rw \
-e UREDEMO_DB_USER='uredemo' -e UREDEMO_DB_PWD='<PASSWORD>' -e WSKEY='api2demo' --name uredb_latest  ure/uredb_base \
"run-app -Dgrails.env=uredemo    --refresh-dependencies --stacktrace"
```

Add a port switch if you need one (-p $HOSTPORT:$CONTAINERPORT)

```
docker run --rm --link uredemo-mysql:mysql -v ~/.grails:/root/.grails  -v "$PWD":/app:rw \
-e UREDEMO_DB_USER='uredemo' -e UREDEMO_DB_PWD='<PASSWORD>' -e GA_SCRIPT='false' -e WSKEY='api2demo' -p 8080:8080 --name uredb_latest  ure/uredb_base \
"run-app -Dgrails.env=uredemo   --refresh-dependencies --stacktrace"
```

{'fraction_non_alphanumeric': 0.1604810996563574, 'fraction_numerical': 0.008934707903780068, 'mean_word_length': 3.827529021558872, 'pattern_counts': {'":': 4, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3533971', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1034, 'n_words': 298}