<commit_before># Migratorator API

The component of Migratorator which holds resources which should be redirected, and will expose them as an API and through an CRUD admin interface.

## Testing

Migratorator uses RSpec and Cucumber for testing. To run the tests:

    rake cucumber
    rake spec<commit_msg>merging migratorator-api with migratorator project<commit_after># Migratorator

A Web site and browser tools to assist migrating a Web site to another domain.

The Web site collects mappings, pairs of URLs with a redirection or error status.
A mapping may be annotated with notes, related links and collected using tags.

# API and Tools

The mappings are available from the Web site as JSON, allowing tools to be built upon the API:

* router — infrastructure to log web site usage and redirect links
* mod_rewite - export the mappings in Apache mod_rewite format
* badge - a warning to be applied to old pages to forewarn of an impending migration
* validator - report on links to the old site to be updated

## Testing

Migratorator is written in Rails and uses RSpec and Cucumber for testing. To run the tests:

    rake cucumber
    rake spec

## Colophon

Migratorator is being developed by [http://digital.cabinetoffice.gov.uk/](The Government Digital Service) to move content onto [http://www.gov.uk](gov.uk).
{'fraction_non_alphanumeric': 0.04452830188679245, 'fraction_numerical': 0.0, 'mean_word_length': 4.2, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '1478773', 'n_tokens_mistral': 367, 'n_tokens_neox': 342, 'n_words': 192}