<commit_before>var app = angular.module("ive");

// Relationship embedded_in create controller
app.controller("embeddedInCreateController", function($scope, $rootScope, $routeParams, $interval, $filter, $translate, $location, config, $window, $authenticationService, $relationshipService, $scenarioService, $videoService, $overlayService, _) {

    /*************************************************
        FUNCTIONS
     *************************************************/

    /**
     * [redirect description]
     * @param  {[type]} path [description]
     * @return {[type]}      [description]
     */
    $scope.redirect = function(path){
        $location.url(path);
    };

    /**
     * [send description]
     * @return {[type]} [description]
     */
    $scope.send = function(){
        // Validate input
        if($scope.createRelationshipForm.$invalid) {
            // Update UI
            $scope.createRelationshipForm.w.$pristine = false;
            $scope.createRelationshipForm.h.$pristine = false;
            $scope.createRelationshipForm.d.$pristine = false;
            $scope.createRelationshipForm.x.$pristine = false;
            $scope.createRelationshipForm.y.$pristine = false;
            $scope.createRelationshipForm.z.$pristine = false;
            $scope.createRelationshipForm.rx.$pristine = false;
            $scope.createRelationshipForm.ry.$pristine = false;
            $scope.createRelationshipForm.rz.$pristine = false;
            $scope.createRelationshipForm.display.$pristine = false;
        } else {
            $scope.$parent.loading = { status: true, message: $filter('translate')('CREATING_RELATIONSHIP') };

            // Setting the values for the belongsTo relationship
            $scope.relationshipBelongsTo = {};
            $scope.relationshipBelongsTo.scenario_id = $scope.videoDropdown.scenario_id;<commit_msg>creator: set missing description field (#80)<commit_after>var app = angular.module("ive");

// Relationship embedded_in create controller
app.controller("embeddedInCreateController", function($scope, $rootScope, $routeParams, $interval, $filter, $translate, $location, config, $window, $authenticationService, $relationshipService, $scenarioService, $videoService, $overlayService, _) {

    /*************************************************
        FUNCTIONS
     *************************************************/

    /**
     * [redirect description]
     * @param  {[type]} path [description]
     * @return {[type]}      [description]
     */
    $scope.redirect = function(path){
        $location.url(path);
    };

    /**
     * [send description]
     * @return {[type]} [description]
     */
    $scope.send = function(){
        $scope.relationship.description = '';
        // Validate input
        if($scope.createRelationshipForm.$invalid) {
            // Update UI
            $scope.createRelationshipForm.w.$pristine = false;
            $scope.createRelationshipForm.h.$pristine = false;
            $scope.createRelationshipForm.d.$pristine = false;
            $scope.createRelationshipForm.x.$pristine = false;
            $scope.createRelationshipForm.y.$pristine = false;
            $scope.createRelationshipForm.z.$pristine = false;
            $scope.createRelationshipForm.rx.$pristine = false;
            $scope.createRelationshipForm.ry.$pristine = false;
            $scope.createRelationshipForm.rz.$pristine = false;
            $scope.createRelationshipForm.display.$pristine = false;
        } else {
            $scope.$parent.loading = { status: true, message: $filter('translate')('CREATING_RELATIONSHIP') };

            // Setting the values for the belongsTo relationship
            $scope.relationshipBelongsTo = {};
            $scope.relationshipBelongsTo.scenario_id = $scope.videoDropdown.scenario_id;
{'fraction_non_alphanumeric': 0.17262992948550535, 'fraction_numerical': 0.0005223295899712719, 'mean_word_length': 2.952528379772962, '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': '2145589', 'n_tokens_mistral': 1031, 'n_tokens_neox': 979, 'n_words': 171}