<commit_before>extend layout

block title
  | Data Import

block content
  h1 Data Import

  p This is a future feature that we intend to add to PopIt.

  P
    | You will be able to import and update data by uploading CSV files or
    | programatically using an API.
  
  p
    | For more details on this feature please see 
    a(href="https://github.com/mysociety/popit/wiki/Data-import") this wiki page 
    | which has some rough notes.
  
  p
    | If you have particular suggestions or questions please let us know on the 
    a(href="https://secure.mysociety.org/admin/lists/mailman/listinfo/components") components mailing list
    | .<commit_msg>Better wording on the migration tool and API - closes #96<commit_after>extend layout

block title
  | Data Import

block content
  h1 Data Import

  p
    | PopIt will let you enter and access data easily from your code. It will 
    | also let you upload existing data that you have to quickly populate a new 
    | site.
  

  h2 Migration Tool
  
  p 
    | If you have been collecting information on people in a spreadsheet this 
    | will let you quickly upload it all into PopIt rather than manually 
    | entering it in. We expect that this will be in the form of a CSV file with 
    | the columns given specific names.

  p The migration tool is intended to add data to PopIt, not to edit it.
    
  p This is a 
    a(href="https://github.com/mysociety/popit/issues/search?q=migration+tool") work in progress
    | .
  

  h2 API

  p 
    | The API will let you access and modify all the data in PopIt, as well as 
    | storing your own custom data. Please see the 
    a(href="/api") API docs
    |  for more details.
  
  p 
    | We use the API from the editing interface on the website to be sure that 
    | all interactions with PopIt can be achieved through the API. It is not an 
    | afterthought - it is a core piece of the site.
  
  p API improvements is an ongoing task with several 
    a(href="https://github.com/mysociety/popit/issues?labels=API&milestone=&page=1&state=open") open issues
    | . If you have particular suggestions or questions please let us know on the 
    a(href="https://secure.mysociety.org/admin/lists/mailman/listinfo/components") components mailing list
    | .
{'fraction_non_alphanumeric': 0.06027276726792785, 'fraction_numerical': 0.0030796304443466782, 'mean_word_length': 2.8412162162162162, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '3299561', 'n_tokens_mistral': 671, 'n_tokens_neox': 623, 'n_words': 303}