<commit_before>'use strict';

import { UserAuthenticationController } from '../controllers/users/users.authentication.server.controller';
import { UserAuthorizationController } from '../controllers/users/users.authorization.server.controller';
import { UserPasswordController } from '../controllers/users/users.password.server.controller';
import { UserProfileController } from '../controllers/users/users.profile.server.controller';

export class UsersRouter {
	private userProfileController = new UserProfileController();
	private userPasswordController = new UserPasswordController();
	private userAuthenticationController = new UserAuthenticationController();
	private userAuthorizationController = new UserAuthorizationController();

	public setupRoutes = app => {
		// Setting up the users profile api
		app.route('/api/users/me').get(this.userProfileController.me);
		app.route('/api/users').put(this.userProfileController.update);
		app.route('/api/users/delete').get(this.userProfileController.removeSelf);
		app.route('/api/users/accounts').delete(this.userAuthenticationController.removeOAuthProvider);
		app.route('/api/users/password').post(this.userPasswordController.changePassword);
		app.route('/api/users/picture').post(this.userProfileController.changeProfilePicture);
		app.route('/api/users/count').get(this.userProfileController.count);

		// Finish by binding the user middleware
		app.param('userId', this.userAuthorizationController /*  */.userByID);
	};
}
<commit_msg>BA-1023 - Remove weird comment<commit_after>'use strict';

import { UserAuthenticationController } from '../controllers/users/users.authentication.server.controller';
import { UserAuthorizationController } from '../controllers/users/users.authorization.server.controller';
import { UserPasswordController } from '../controllers/users/users.password.server.controller';
import { UserProfileController } from '../controllers/users/users.profile.server.controller';

export class UsersRouter {
	private userProfileController = new UserProfileController();
	private userPasswordController = new UserPasswordController();
	private userAuthenticationController = new UserAuthenticationController();
	private userAuthorizationController = new UserAuthorizationController();

	public setupRoutes = app => {
		// Setting up the users profile api
		app.route('/api/users/me').get(this.userProfileController.me);
		app.route('/api/users').put(this.userProfileController.update);
		app.route('/api/users/delete').get(this.userProfileController.removeSelf);
		app.route('/api/users/accounts').delete(this.userAuthenticationController.removeOAuthProvider);
		app.route('/api/users/password').post(this.userPasswordController.changePassword);
		app.route('/api/users/picture').post(this.userProfileController.changeProfilePicture);
		app.route('/api/users/count').get(this.userProfileController.count);

		// Finish by binding the user middleware
		app.param('userId', this.userAuthorizationController.userByID);
	};
}

{'fraction_non_alphanumeric': 0.13008672448298866, 'fraction_numerical': 0.00133422281521014, 'mean_word_length': 6.3504901960784315, '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': '4620851', 'n_tokens_mistral': 781, 'n_tokens_neox': 762, 'n_words': 126}