<commit_before># Component Identifier Service [![Build Status](https://travis-ci.org/IHTSDO/component-identifier-service.svg?branch=master)](https://travis-ci.org/IHTSDO/component-identifier-service) [![Code Climate](https://codeclimate.com/github/IHTSDO/component-identifier-service/badges/gpa.svg)](https://codeclimate.com/github/IHTSDO/component-identifier-service)

A REST Server for managing the generation and assignment of Terminology Component Identifiers. Supports SNOMED CT Identifiers and other identifier Schemes. Pre-bundled implementations for optional generation of legacy identifiers in SNOMED CT (SNOMEDIDs and CTV3IDs)

## Installation

This application requires a MySQL database running on localhost. A new Database with name "idservice" needs to be available before running the application.

Clone this project with:

`$ git clone https://github.com:IHTSDO/component-identifier-service.git`

Cd to the application location and execute the schema creation scripts:

```
cd /opt/component-identifier-service
npm install
```

Execute the MySQL Schema generator script to create all the necessary tables and indexes:

config/db_script.sql

Update the host reference in the swagger API definition:
api/swagger-ids.json
```
...
"host": "localhost:3000",
...
```

Update /config/params.js to provide the necesary information for the database connection. Username and password will be passed on the command line on the next step, so there is no requirement to have them hard coded in this file.

Setup Crowd credentials for the application in system variables with the following variable names:

- Crowd URL: crowd_url
- Crowd Application Name: app_name
- Crowd Application Password: <PASSWORD>
<commit_msg>Fix Crowd variables names in README<commit_after># Component Identifier Service [![Build Status](https://travis-ci.org/IHTSDO/component-identifier-service.svg?branch=master)](https://travis-ci.org/IHTSDO/component-identifier-service) [![Code Climate](https://codeclimate.com/github/IHTSDO/component-identifier-service/badges/gpa.svg)](https://codeclimate.com/github/IHTSDO/component-identifier-service)

A REST Server for managing the generation and assignment of Terminology Component Identifiers. Supports SNOMED CT Identifiers and other identifier Schemes. Pre-bundled implementations for optional generation of legacy identifiers in SNOMED CT (SNOMEDIDs and CTV3IDs)

## Installation

This application requires a MySQL database running on localhost. A new Database with name "idservice" needs to be available before running the application.

Clone this project with:

`$ git clone https://github.com:IHTSDO/component-identifier-service.git`

Cd to the application location and execute the schema creation scripts:

```
cd /opt/component-identifier-service
npm install
```

Execute the MySQL Schema generator script to create all the necessary tables and indexes:

config/db_script.sql

Update the host reference in the swagger API definition:
api/swagger-ids.json
```
...
"host": "localhost:3000",
...
```

Update /config/params.js to provide the necesary information for the database connection. Username and password will be passed on the command line on the next step, so there is no requirement to have them hard coded in this file.

Setup Crowd credentials for the application in system variables with the following variable names:

- Crowd URL: CROWD_URL
- Crowd Application Name: CROWD_APP_NAME
- Crowd Application Password: <PASSWORD>

{'fraction_non_alphanumeric': 0.08078476630121177, 'fraction_numerical': 0.0028851702250432777, 'mean_word_length': 5.258122743682311, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, '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': '4055686', 'n_tokens_mistral': 942, 'n_tokens_neox': 907, 'n_words': 363}