<commit_before>require! {
	express
}
module.exports = (app) ->
	app
		..all '*' (req, res, next) ->
			filename = req.url.match /.+\/(.+?)([\?#;].*)?$/
			if filename?
				extension = filename.1.match /\.(.+)$/
				req.format = extension.1 if extension != null
			next!
		
		# Authorize
		..get    '/authorize' require './authorize-get'
		..post   '/authorize' (req, res) -> (require './authorize-post') req, res, app
		..get    /\/sauth\/get_request_token(\..+)?$/      require './rest/sauth/get_request_token'
		
		# Account
		..post   /\/account\/create(\..+)?$/               require './rest/account/create'
		..get    /\/account\/show(\..+)?$/                 require './rest/account/show'
		..put    /\/account\/update(\..+)?$/               require './rest/account/update'
		..put    /\/account\/update_icon(\..+)?$/          require './rest/account/update_icon'
		..put    /\/account\/update_header(\..+)?$/        require './rest/account/update_header'
		..put    /\/account\/update_wallpaper(\..+)?$/     require './rest/account/update_wallpaper'
		..put    /\/account\/update_webtheme(\..+)?$/      require './rest/account/update_webtheme'
		..get    /\/account\/unreadalltalks_count(\..+)?$/ require './rest/account/unreadalltalks_count'
		..delete /\/account\/reset_webtheme(\..+)?$/       require './rest/account/reset_webtheme'
		
		# Application
		..post   /\/application\/create(\..+)?$/           require './rest/application/create'
		..post   /\/application\/delete(\..+)?$/           require './rest/application/delete'
		
		# Notice
		..delete /\/notice\/delete(\..+)?$/                require './rest/notice/delete'
		..delete /\/notice\/deleteall(\..+)?$/             require './rest/notice/deleteall'
		
		# Users
		..get    /\/users\/show(\..+)?$/                   require './rest/users/show'
		..post   /\/users\/follow(\..+)?$/                 require './rest/users/follow'
		..delete /\/users\/unfollow(\..+)?$/               require './rest/users/unfollow'
		
		# Status
		..post   /\/status\/update(\..+)?$/                  require './rest/status/update'
		..post   /\/status\/favorite(\..+)?$/                require './rest/status/favorite'
		..post   /\/status\/repost(\..+)?$/                  require './rest/status/repost'
		..get    /\/status\/timeline(\..+)?$/                require './rest/status/timeline'
		
		# Talk
		..post   /\/talk\/say(\..+)?$/                     require './rest/talk/say'
		..put    /\/talk\/fix(\..+)?$/                     require './rest/talk/fix'
		..delete /\/talk\/delete(\..+)?$/                  require './rest/talk/delete'
		..post   /\/talk\/read(\..+)?$/                    require './rest/talk/read'
		
		# Circle
		..post   /\/circle\/create(\..+)?$/                require './rest/circle/create'
		..get    /\/circle\/show(\..+)?$/                  require './rest/circle/show'
		..put    /\/circle\/update(\..+)?$/                require './rest/circle/update'
		<commit_msg>Improve readablility<commit_after>require! {
	express
}
module.exports = (app) ->
	app
		..all '*' (req, res, next) ->
			filename = req.url.match /.+\/(.+?)([\?#;].*)?$/
			if filename?
				extension = filename.1.match /\.(.+)$/
				req.format = extension.1 if extension != null
			next!
		
		# Authorize
		..get    '/authorize' require './authorize-get'
		..post   '/authorize' (req, res) -> (require './authorize-post') req, res, app
		..get    /\/sauth\/get_request_token(\..+)?$/      require './rest/sauth/get_request_token'
		
		# Account
		..post   /\/account\/create(\..+)?$/               require './rest/account/create'
		..get    /\/account\/show(\..+)?$/                 require './rest/account/show'
		..put    /\/account\/update(\..+)?$/               require './rest/account/update'
		..put    /\/account\/update_icon(\..+)?$/          require './rest/account/update_icon'
		..put    /\/account\/update_header(\..+)?$/        require './rest/account/update_header'
		..put    /\/account\/update_wallpaper(\..+)?$/     require './rest/account/update_wallpaper'
		..put    /\/account\/update_webtheme(\..+)?$/      require './rest/account/update_webtheme'
		..get    /\/account\/unreadalltalks_count(\..+)?$/ require './rest/account/unreadalltalks_count'
		..delete /\/account\/reset_webtheme(\..+)?$/       require './rest/account/reset_webtheme'
		
		# Application
		..post   /\/application\/create(\..+)?$/           require './rest/application/create'
		..post   /\/application\/delete(\..+)?$/           require './rest/application/delete'
		
		# Notice
		..delete /\/notice\/delete(\..+)?$/                require './rest/notice/delete'
		..delete /\/notice\/deleteall(\..+)?$/             require './rest/notice/deleteall'
		
		# Users
		..get    /\/users\/show(\..+)?$/                   require './rest/users/show'
		..post   /\/users\/follow(\..+)?$/                 require './rest/users/follow'
		..delete /\/users\/unfollow(\..+)?$/               require './rest/users/unfollow'
		
		# Status
		..post   /\/status\/update(\..+)?$/                require './rest/status/update'
		..post   /\/status\/favorite(\..+)?$/              require './rest/status/favorite'
		..post   /\/status\/repost(\..+)?$/                require './rest/status/repost'
		..get    /\/status\/timeline(\..+)?$/              require './rest/status/timeline'
		
		# Talk
		..post   /\/talk\/say(\..+)?$/                     require './rest/talk/say'
		..put    /\/talk\/fix(\..+)?$/                     require './rest/talk/fix'
		..delete /\/talk\/delete(\..+)?$/                  require './rest/talk/delete'
		..post   /\/talk\/read(\..+)?$/                    require './rest/talk/read'
		
		# Circle
		..post   /\/circle\/create(\..+)?$/                require './rest/circle/create'
		..get    /\/circle\/show(\..+)?$/                  require './rest/circle/show'
		..put    /\/circle\/update(\..+)?$/                require './rest/circle/update'
		
{'fraction_non_alphanumeric': 0.24370458002366063, 'fraction_numerical': 0.0006760182524928173, 'mean_word_length': 1.5118845500848896, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2834674', 'n_tokens_mistral': 2058, 'n_tokens_neox': 1813, 'n_words': 309}