<commit_before>app.controller('CreateActivityController', function($scope, $location, Factory) {
    $scope.newActivity = {};
    $scope.createActivity = function() {
        var promise = Factory.asyncSaveActivity($scope.newActivity.title, $scope.newActivity.name, $scope.newActivity.email);
        promise.then(function() {
            $scope.newActivity.id = Factory.activityId;
            Factory.asyncInviteFriend($scope.newActivity.name, $scope.newActivity.email);
        });
    }

    $scope.getActivityLink = function() {
        return $location.host() + '/index.html' + '#/activity/' + Factory.activityId;
    }

});<commit_msg>remove 'index.html' from activity link<commit_after>app.controller('CreateActivityController', function($scope, $location, Factory) {
    $scope.newActivity = {};
    $scope.createActivity = function() {
        var promise = Factory.asyncSaveActivity($scope.newActivity.title, $scope.newActivity.name, $scope.newActivity.email);
        promise.then(function() {
            $scope.newActivity.id = Factory.activityId;
            Factory.asyncInviteFriend($scope.newActivity.name, $scope.newActivity.email);
        });
    }

    $scope.getActivityLink = function() {
        return $location.host() + '#/activity/' + Factory.activityId;
    }

});
{'fraction_non_alphanumeric': 0.14849187935034802, 'fraction_numerical': 0.0, 'mean_word_length': 3.462068965517241, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4665236', 'n_tokens_mistral': 359, 'n_tokens_neox': 358, 'n_words': 51}