<commit_before># awsdk-search

A search component for Danish address data to be used with Esri Web App Builder. It has been tested with beta 2 in random browsers.

## About the service
It is implemented as a dojo widget that calls webservices from the Ministry of Housing, Urban and Rural Affairs in Denmark [(MBBL)](http://mbbl.dk/). 

The documentation of the service is located at [aws.dk](http://www.aws.dk).

## Installation

### Semi-automatic installation
1. Open a command prompt in the awsdk-search folder
2. Run the createZip.py script by writing
```python createZip.py```
3. The file awsdk-install.zip is created. This file can be used to install the search component in the Web App Builder.
4. Extract the zip in the root folder of the Web App Builder installation.
5. Start the Web App Builder.


### Manual installation
1. Copy folder awsdk-search to the widgets folder.
2. Add jquery and typeahead files to the libs folder and update stemapp/init.js
3. Update builder/predefined-apps/default2DApp/config.json
    Find this snippet: 
```    {
        "uri": "widgets/Geocoder/Widget",
        "position": {
            "left": 45,
            "top": 5
        }
    }
```
    And add this after it: 
```    {
        "uri": "widgets/awsdk-search/Widget",
        "position": {
            "left": 45,
            "top": 5
        }
    }
```
<commit_msg>formatting<commit_after># awsdk-search

A search component for Danish address data to be used with Esri Web App Builder. It has been tested with beta 2 in random browsers.

## About the service
It is implemented as a dojo widget that calls webservices from the Ministry of Housing, Urban and Rural Affairs in Denmark [(MBBL)](http://mbbl.dk/). 

The documentation of the service is located at [aws.dk](http://www.aws.dk).

## Installation

### Semi-automatic installation
1. Open a command prompt in the awsdk-search folder
2. Run the createZip.py script by writing
```python createZip.py```
3. The file awsdk-install.zip is created. This file can be used to install the search component in the Web App Builder.
4. Extract the zip in the root folder of the Web App Builder installation.
5. Start the Web App Builder.


### Manual installation
1. Copy folder awsdk-search to the widgets folder.
2. Add jquery and typeahead files to the libs folder and update stemapp/init.js
3. Update builder/predefined-apps/default2DApp/config.json
    Find this snippet: 
```    
    {
        "uri": "widgets/Geocoder/Widget",
        "position": {
            "left": 45,
            "top": 5
        }
    }
```
    And add this after it: 
```    
    {
        "uri": "widgets/awsdk-search/Widget",
        "position": {
            "left": 45,
            "top": 5
        }
    }
```

{'fraction_non_alphanumeric': 0.09697411593146191, 'fraction_numerical': 0.011666059059423988, 'mean_word_length': 2.7435197817189634, 'pattern_counts': {'":': 16, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3154266', 'n_tokens_mistral': 830, 'n_tokens_neox': 765, 'n_words': 342}