<commit_before># JEE (micro) service to store catalog data

This is a JEE implementation of a service to store catalog data. By catalog data, larger language dependant dictionaries of codes are meant, e.g. languages, countries, states or other enumerations.

The service will return code/text (key/value) pairs for enumerations, where the text is available in different scopes, e.g. languages. An example for such a dictionary would be e.g.

```
[
 {"text":"Andorra","code":"AD"},
 {"text":"United Arab Emirates","code":"AE"},
 {"text":"Afghanistan","code":"AF"},
 {"text":"Antigua and Barbuda","code":"AG"},
 ...
 {"text":"Zambia","code":"ZM"},
 {"text":"Zimbabwe","code":"ZW"}
]
```

This is a subset of the ISO-3166-1-Alpha2 country codes, with their englisch names. The same list for the german version would be:

```
[
 {"text":"Andorra","code":"AD"},
 {"text":"Vereinigte Arabische Emirate","code":"AE"},
 {"text":"Afghanistan","code":"AF"},
 {"text":"Antigua und Barbuda","code":"AG"},
 ...
 {"text":"Sambia","code":"ZM"},
 {"text":"Simbabwe","code":"ZW"}
]
```

The above example are available using the URLs:
- [http://catalogjee1.eu-gb.mybluemix.net/api/catalogs/iso-3166-1-alpha2/scope-list/en]
- [http://catalogjee1.eu-gb.mybluemix.net/api/catalogs/iso-3166-1-alpha2/scope-list/de]

## Prerequisites to develop locally and run the project ##
- Maven 3
- A JEE7 compliant application server. In detail, we need:
  - JPA 2.0
  - EJB 3.2
  - JAX-RS 2.0
- A relational database supported by the JPA implementation. For development *PostgresQL 9.4* was used. Others databases may work also with slight adoptions to [persistence.xml](CatalogService/src/main/resources/META-INF/persistence.xml).

## Build ##
```
mvn package
```

## Goals of this project ##<commit_msg>Typos fixed<commit_after># JEE (micro) service to store catalog data

This is a JEE implementation of a service to store catalog data. By catalog data, larger language dependant dictionaries of codes are meant, e.g. languages, countries, states or other enumerations.

The service will return code/text (key/value) pairs for enumerations, where the text is available in different scopes, e.g. languages. An example for such a dictionary would be e.g.

```
[
 {"text":"Andorra","code":"AD"},
 {"text":"United Arab Emirates","code":"AE"},
 {"text":"Afghanistan","code":"AF"},
 {"text":"Antigua and Barbuda","code":"AG"},
 ...
 {"text":"Zambia","code":"ZM"},
 {"text":"Zimbabwe","code":"ZW"}
]
```

This is a subset of the ISO-3166-1-Alpha2 country codes, with their english names. The same list for the german version would be:

```
[
 {"text":"Andorra","code":"AD"},
 {"text":"Vereinigte Arabische Emirate","code":"AE"},
 {"text":"Afghanistan","code":"AF"},
 {"text":"Antigua und Barbuda","code":"AG"},
 ...
 {"text":"Sambia","code":"ZM"},
 {"text":"Simbabwe","code":"ZW"}
]
```

The above examples are available using the URLs:
- [http://catalogjee1.eu-gb.mybluemix.net/api/catalogs/iso-3166-1-alpha2/scope-list/en]
- [http://catalogjee1.eu-gb.mybluemix.net/api/catalogs/iso-3166-1-alpha2/scope-list/de]

## Prerequisites to develop locally and run the project ##
- Maven 3
- A JEE7 compliant application server. In detail, we need:
  - JPA 2.0
  - EJB 3.2
  - JAX-RS 2.0
- A relational database supported by the JPA implementation. For development *PostgresQL 9.4* was used. Others databases may work also with slight adoptions to [persistence.xml](CatalogService/src/main/resources/META-INF/persistence.xml).

## Build ##
```
mvn package
```

## Goals of this project ##
{'fraction_non_alphanumeric': 0.17315284827975183, 'fraction_numerical': 0.01692047377326565, 'mean_word_length': 4.814754098360655, 'pattern_counts': {'":': 48, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2420427', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1138, 'n_words': 349}