<commit_before>exports.routes = (map) ->

    map.get '/', 'data#index'

    # Data managing
    map.get '/data/exist/:id/', 'data#exist'
    map.get '/data/:id/', 'data#find'

    map.post '/data/', 'data#create'
    map.post '/data/:id/', 'data#create'

    map.put '/data/upsert/:id/', 'data#upsert'
    map.put '/data/merge/:id/', 'data#merge'
    map.put '/data/:id/', 'data#update'

    map.delete '/data/:id/', 'data#delete'

    # Indexation
    map.post '/data/index/:id', 'index#index'
    map.post '/data/search/:type', 'index#search'
    map.delete '/data/index/clear-all/', 'index#removeAll'
    map.delete '/data/index/:id', 'index#remove'

    # Browser connectors
    map.post '/connectors/bank/:name/', 'connector#bank'

    # File management
    map.post '/data/:id/attachments/', 'attachment#addAttachment'
    map.get '/data/:id/attachments/:name', 'attachment#getAttachment'
    map.delete '/data/:id/attachments/:name', 'attachment#removeAttachment'

    # Request handling
    map.post '/request/:type/:req_name/', 'request#results'
    map.put '/request/:type/:req_name/destroy/', 'request#removeResults'
    map.put '/request/:type/:req_name/', 'request#definition'
    map.delete '/request/:type/:req_name/', 'request#remove'

    #Account management
    map.post '/accounts/password/', 'account#initializeKeys'
    map.put '/accounts/password/', 'account#updateKeys'
    map.delete '/accounts/reset/', 'account#resetKeys'
    map.delete '/accounts/', 'account#deleteKeys'
    map.delete '/account/all/', 'account#deleteAllAccounts'

    map.post '/account/', 'account#createAccount'
    map.post '/account/:id/', 'account#createAccount'
    map.get '/account/:id/', 'account#findAccount'
    map.get '/account/exist/:id/', 'account#existAccount'
    map.put '/account/:id/', 'account#updateAccount'
    map.put '/account/merge/:id/', 'account#mergeAccount'
    map.put '/account/upsert/:id/', 'account#upsertAccount'
    map.delete '/account/:id/', 'account#deleteAccount'<commit_msg>add create and delete a docType<commit_after>exports.routes = (map) ->

    map.get '/', 'data#index'

    # Data managing
    map.get '/data/exist/:id/', 'data#exist'
    map.get '/data/:id/', 'data#find'

    map.post '/data/', 'data#create'
    map.post '/data/:id/', 'data#create'

    map.put '/data/upsert/:id/', 'data#upsert'
    map.put '/data/merge/:id/', 'data#merge'
    map.put '/data/:id/', 'data#update'

    map.delete '/data/:id/', 'data#delete'

    # Indexation
    map.post '/data/index/:id', 'index#index'
    map.post '/data/search/:type', 'index#search'
    map.delete '/data/index/clear-all/', 'index#removeAll'
    map.delete '/data/index/:id', 'index#remove'

    # Browser connectors
    map.post '/connectors/bank/:name/', 'connector#bank'

    # File management
    map.post '/data/:id/attachments/', 'attachment#addAttachment'
    map.get '/data/:id/attachments/:name', 'attachment#getAttachment'
    map.delete '/data/:id/attachments/:name', 'attachment#removeAttachment'

    # Request handling
    map.post '/request/:type/:req_name/', 'request#results'
    map.put '/request/:type/:req_name/destroy/', 'request#removeResults'
    map.put '/request/:type/:req_name/', 'request#definition'
    map.delete '/request/:type/:req_name/', 'request#remove'

    #Account management
    map.post '/accounts/password/', 'account#initializeKeys'
    map.put '/accounts/password/', 'account#updateKeys'
    map.delete '/accounts/reset/', 'account#resetKeys'
    map.delete '/accounts/', 'account#deleteKeys'
    map.delete '/account/all/', 'account#deleteAllAccounts'

    map.post '/account/', 'account#createAccount'
    map.post '/account/:id/', 'account#createAccount'
    map.get '/account/:id/', 'account#findAccount'
    map.get '/account/exist/:id/', 'account#existAccount'
    map.put '/account/:id/', 'account#updateAccount'
    map.put '/account/merge/:id/', 'account#mergeAccount'
    map.put '/account/upsert/:id/', 'account#upsertAccount'
    map.delete '/account/:id/', 'account#deleteAccount'

    #DocType management
    map.post '/doctype/', 'doctype#create'
    map.post '/doctype/:id', 'doctype#create'
    map.delete '/doctype/:id', 'doctype#delete'
{'fraction_non_alphanumeric': 0.196573060447406, 'fraction_numerical': 0.0, 'mean_word_length': 3.533980582524272, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '4698060', 'n_tokens_mistral': 1414, 'n_tokens_neox': 1452, 'n_words': 243}