<commit_before><section data-ng-controller="ActivityEventsController" data-ng-init="findOne()">
    <form name="activityEventsForm" class="form-horizontal col-md-10" role="form" data-ng-submit="update(activityEventsForm.$valid)" novalidate>
        <div class="form-group" ng-class="{ 'has-error' : submitted && activityEventsForm.title.$invalid }">
            <label mean-token="'edit-title'" for="title" class="col-md-3 control-label">Title</label>
            <div class="col-md-9">
                <input name="title" type="text" class="form-control" data-ng-model="activityEvent.title" id="title" placeholder="Subject" required>
                <div ng-show="submitted && activityEventsForm.title.$invalid" class="help-block">
                    <p ng-show="activityEventsForm.title.$error.required">Subject is required</p>
                </div>
            </div>
        </div>

        <div class="form-group" ng-class="{ 'has-error' : submitted && activityEventsForm.period.$invalid }">
            <label class="col-md-3 control-label">Period</label>
            <div class="col-md-9">
                <input name="period" type="text" class="form-control" data-ng-model="activityEvent.period" id="period" placeholder="Period" required>
                <div ng-show="submitted && activityEventsForm.period.$invalid" class="help-block">
                    <p ng-show="activityEventsForm.period.$error.required">Period is required</p>
                </div>
            </div>
        </div>
        
        <div class="form-group" ng-class="{'has-error' : submitted && activityEventsForm.dueDate.$invalid}">
            <label class="col-md-3 control-label">Due date:</label>
            <div class="col-md-9">
                <datetimepicker id="dueDate" name="dueDate" starting-day="1" min-date="minDate" show-weeks="true" hour-step="1" minute-step="15" data-ng-model="dueDate" show-meridian="false" date-format="dd-MMM-yyyy" date-options="" date-disabled="false" readonly-time="false" required></datetimepicker>
                <div ng-show="submitted && activityEventsForm.dueDate.$invalid" class="help-block">
                    <p ng-show="activityEventsForm.dueDate.$invalid">Due Date is required</p>
                </div>
            </div>
        </div>
        
        <div class="form-group">
            <label for="inputImage" class="col-md-3 control-label">Image<br/> (150x100)</label>
            <div class="col-md-9">
                <img id="img" class="activityEvent_img" src="{{loadedimg}}" />
                <div ng-show="submitted && activityEventsForm.image.$invalid" class="help-block">
                    <p ng-show="activityEventsForm.title.$error.badwidth">Incorrect width or height is required</p>
                </div>
                <input id="inputImage"
                       type="file"
                       accept="image/*"
                       onchange="angular.element(this).scope().changeFile()"
                       ng-model="myfileimage"
                       />
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-3 control-label">Location</label>
            <div class="col-md-9">
                <input name="location" type="text" class="form-control" data-ng-model="activityEvent.location" id="location" placeholder="Location" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Published</label><commit_msg>error in the edit form of activities<commit_after><section data-ng-controller="ActivityEventsController" data-ng-init="findOne()">
    <form name="activityEventsForm" class="form-horizontal col-md-10" role="form" data-ng-submit="update(activityEventsForm.$valid)" novalidate>
        <div class="form-group" ng-class="{ 'has-error' : submitted && activityEventsForm.title.$invalid }">
            <label mean-token="'edit-title'" for="title" class="col-md-3 control-label">Title</label>
            <div class="col-md-9">
                <input name="title" type="text" class="form-control" data-ng-model="activityEvent.title" id="title" placeholder="Subject" required>
                <div ng-show="submitted && activityEventsForm.title.$invalid" class="help-block">
                    <p ng-show="activityEventsForm.title.$error.required">Subject is required</p>
                </div>
            </div>
        </div>

        <div class="form-group" ng-class="{ 'has-error' : submitted && activityEventsForm.period.$invalid }">
            <label class="col-md-3 control-label">Period</label>
            <div class="col-md-9">
                <input name="period" type="text" class="form-control" data-ng-model="activityEvent.period" id="period" placeholder="Period" required>
                <div ng-show="submitted && activityEventsForm.period.$invalid" class="help-block">
                    <p ng-show="activityEventsForm.period.$error.required">Period is required</p>
                </div>
            </div>
        </div>
        
        <div class="form-group" ng-class="{'has-error' : submitted && activityEventsForm.dueDate.$invalid}">
            <label class="col-md-3 control-label">Due date:</label>
            <div class="col-md-9">
                <datetimepicker id="dueDate" name="dueDate" starting-day="1" min-date="minDate" show-weeks="true" hour-step="1" minute-step="15" data-ng-model="activityEvent.dueDate" show-meridian="false" date-format="dd-MMM-yyyy" date-options="" date-disabled="false" readonly-time="false" required></datetimepicker>
                <div ng-show="submitted && activityEventsForm.dueDate.$invalid" class="help-block">
                    <p ng-show="activityEventsForm.dueDate.$invalid">Due Date is required</p>
                </div>
            </div>
        </div>
        
        <div class="form-group">
            <label for="inputImage" class="col-md-3 control-label">Image<br/> (150x100)</label>
            <div class="col-md-9">
                <img id="img" class="activityEvent_img" src="{{loadedimg}}" />
                <div ng-show="submitted && activityEventsForm.image.$invalid" class="help-block">
                    <p ng-show="activityEventsForm.title.$error.badwidth">Incorrect width or height is required</p>
                </div>
                <input id="inputImage"
                       type="file"
                       accept="image/*"
                       onchange="angular.element(this).scope().changeFile()"
                       ng-model="myfileimage"
                       />
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-3 control-label">Location</label>
            <div class="col-md-9">
                <input name="location" type="text" class="form-control" data-ng-model="activityEvent.location" id="location" placeholder="Location" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Published</label>
{'fraction_non_alphanumeric': 0.16191287072513127, 'fraction_numerical': 0.006527600397332198, 'mean_word_length': 2.3466286799620133, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, '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': '2972166', 'n_tokens_mistral': 2003, 'n_tokens_neox': 1914, 'n_words': 335}