<commit_before># cmr-opendap

*OPeNDAP Integration in the CMR*

[![][logo]][logo]


#### Contents

* [About](#about-)
* [Dependencies](#dependencies-)
* [Running the Tests](#running-the-tests-)
* [Documentation](#documentation-)
  * [Quick Start](#quick-start-)
  * [Project Guides](#project-guides-)
  * [Reference](#reference-)
* [License](#license-)


## About [&#x219F;](#contents)

TBD


## Dependencies [&#x219F;](#contents)

* Java
* `lein`


## Running the Tests [&#x219F;](#contents)

To run just the unit tests, use this command:

```
$ lein ltest :unit
```

Similarly, for just the integration tests:

```
$ lein ltest :integration
```

Just system tests:
```
$ lein ltest :system
```

The default behaviour of `lein ltest` runs both unit and integration tests. To
run all tests, use `lein ltest :all`.


## Documentation [&#x219F;](#contents)

### Quick Start [&#x219F;](#contents)

With dependencies installed and repo cloned, switch to the project directory
and start the REPL:

```
$ lein repl
```
```

 __________ ___   ___ _________
/   /_____/|   \ /   |    _o___)                       OPeNDAP support in
\___\%%%%%'|____|____|___|\____\                           NASA Earthdata
 `BBBBBBBB' `BBBBBBB' `BB' `BBB'
 _________ _________  __________ ___    __ _________  _______  _________
/    O    \    _o___)/   /_____/|   \  |  |     O   \/   O   \|    _o___)
\_________/___|%%%%%'\___\%%%%%'|____\_|__|_________/___/%\___\___|%%%%%'
 `BBBBBBB' `B'        `BBBBBBBB' `BBBBBBB' `BBBBBBB'`BB'   `BB'`B'



nREPL server started on port 52191 on host 127.0.0.1 - nrepl://127.0.0.1:52191
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_91-b14
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

[cmr.opendap.dev] λ=>
```

Then bring up the system:

```clj
(startup)
```
```
2018-04-07T15:26:54.830 [nREPL-worker-0] INFO cmr.opendap.components.config:62 - Starting config component ...
2018-04-07T15:26:54.837 [nREPL-worker-0] INFO cmr.opendap.components.logging:22 - Starting logging component ...
2018-04-07T15:26:54.845 [nREPL-worker-0] INFO cmr.opendap.components.caching:56 - Starting caching component ...
2018-04-07T15:26:54.855 [nREPL-worker-0] INFO cmr.opendap.components.httpd:23 - Starting httpd component ...
```

Hack away to your heart's content (or use `curl` to hit the REST API at
http://localhost:3012; see `cmr.opendap.rest.route` for the available resources).

When done:

```clj
(shutdown)
```


### Project Guides [&#x219F;](#contents)

TBD


### Project Reference [&#x219F;](#contents)

* [API Reference][api-docs]
* [Marginalia][marginalia-docs]


### Related Resources

TBD


## License [&#x219F;](#contents)

Copyright © 2018 NASA

Distributed under the Apache License, Version 2.0.


<!-- Named page links below: /-->

[logo]: https://avatars2.githubusercontent.com/u/32934967?s=200&v=4
[api-docs]: http://cmr-exchange.github.io/cmr-opendap/current/
[marginalia-docs]: http://cmr-exchange.github.io/cmr-opendap/current/marginalia.html
[setup-docs]: http://cmr-exchange.github.io/cmr-opendap/current/0500-setup.html
[connecting-docs]: http://cmr-exchange.github.io/cmr-opendap/current/0750-connecting.html
[usage-docs]: http://cmr-exchange.github.io/cmr-opendap/current/1000-usage.html
[dev-docs]: http://cmr-exchange.github.io/cmr-opendap/current/2000-dev.html
<commit_msg>Added support for handling HTTP GET requests for a collection.<commit_after># cmr-opendap

*OPeNDAP Integration in the CMR*

[![][logo]][logo]


#### Contents

* [About](#about-)
* [Dependencies](#dependencies-)
* [Running the Tests](#running-the-tests-)
* [Documentation](#documentation-)
  * [Quick Start](#quick-start-)
  * [Project Guides](#project-guides-)
  * [Reference](#reference-)
* [License](#license-)


## About [&#x219F;](#contents)

TBD


## Dependencies [&#x219F;](#contents)

* Java
* `lein`


## Running the Tests [&#x219F;](#contents)

To run just the unit tests, use this command:

```
$ lein ltest :unit
```

Similarly, for just the integration tests:

```
$ CMR_SIT_TOKEN=`cat ~/.cmr/tokens/sit` lein ltest :integration
```

Just system tests:
```
$ lein ltest :system
```

The default behaviour of `lein ltest` runs both unit and integration tests. To
run all tests, use `lein ltest :all`.


## Documentation [&#x219F;](#contents)

### Quick Start [&#x219F;](#contents)

With dependencies installed and repo cloned, switch to the project directory
and start the REPL:

```
$ lein repl
```
```

 __________ ___   ___ _________
/   /_____/|   \ /   |    _o___)                       OPeNDAP support in
\___\%%%%%'|____|____|___|\____\                           NASA Earthdata
 `BBBBBBBB' `BBBBBBB' `BB' `BBB'
 _________ _________  __________ ___    __ _________  _______  _________
/    O    \    _o___)/   /_____/|   \  |  |     O   \/   O   \|    _o___)
\_________/___|%%%%%'\___\%%%%%'|____\_|__|_________/___/%\___\___|%%%%%'
 `BBBBBBB' `B'        `BBBBBBBB' `BBBBBBB' `BBBBBBB'`BB'   `BB'`B'



nREPL server started on port 52191 on host 127.0.0.1 - nrepl://127.0.0.1:52191
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_91-b14
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

[cmr.opendap.dev] λ=>
```

Then bring up the system:

```clj
(startup)
```
```
2018-04-07T15:26:54.830 [nREPL-worker-0] INFO cmr.opendap.components.config:62 - Starting config component ...
2018-04-07T15:26:54.837 [nREPL-worker-0] INFO cmr.opendap.components.logging:22 - Starting logging component ...
2018-04-07T15:26:54.845 [nREPL-worker-0] INFO cmr.opendap.components.caching:56 - Starting caching component ...
2018-04-07T15:26:54.855 [nREPL-worker-0] INFO cmr.opendap.components.httpd:23 - Starting httpd component ...
```

Hack away to your heart's content (or use `curl` to hit the REST API at
http://localhost:3012; see `cmr.opendap.rest.route` for the available resources).

When done:

```clj
(shutdown)
```


### Project Guides [&#x219F;](#contents)

TBD


### Project Reference [&#x219F;](#contents)

* [API Reference][api-docs]
* [Marginalia][marginalia-docs]


### Related Resources

TBD


## License [&#x219F;](#contents)

Copyright © 2018 NASA

Distributed under the Apache License, Version 2.0.


<!-- Named page links below: /-->

[logo]: https://avatars2.githubusercontent.com/u/32934967?s=200&v=4
[api-docs]: http://cmr-exchange.github.io/cmr-opendap/current/
[marginalia-docs]: http://cmr-exchange.github.io/cmr-opendap/current/marginalia.html
[setup-docs]: http://cmr-exchange.github.io/cmr-opendap/current/0500-setup.html
[connecting-docs]: http://cmr-exchange.github.io/cmr-opendap/current/0750-connecting.html
[usage-docs]: http://cmr-exchange.github.io/cmr-opendap/current/1000-usage.html
[dev-docs]: http://cmr-exchange.github.io/cmr-opendap/current/2000-dev.html

{'fraction_non_alphanumeric': 0.17545568387366078, 'fraction_numerical': 0.05203840267149019, 'mean_word_length': 3.7072691552062866, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 28, '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': '155039', 'n_tokens_mistral': 3028, 'n_tokens_neox': 2654, 'n_words': 569}