<commit_before>(function() {
  'use strict';

  angular
    .module('semantic.ui.elements.checkbox', [])

    .directive('smCheckbox', smCheckbox);

  function smCheckbox() {
    return {
      restrict: 'E',
      require: '?ngModel',
      transclude: true,
      replace: true,
      scope: {
        ngDisabled: '='
      },
      template: '<div class="ui checkbox" ng-class="{ checked: isChecked }">' +
                  '<input type="checkbox" ng-disabled="ngDisabled" ng-checked="isChecked">' +
                  '<label ng-transclude></label>' +
                '</div>',

      link: function(scope, element, attrs, ngModel) {


        element.bind('click', toggleFn);

        if (ngModel) {
          ngModel.$render = function() { 
            scope.isChecked = ngModel.$viewValue;
          };
        }

        if (attrs.toggle !== void 0) {
          angular.element(element).addClass('toggle');
        }
        else if (attrs.slider !== void 0) {
          angular.element(element).addClass('slider');
        }

        if (attrs.ariaLabel === void 0) {
          element.attr('aria-label', element[0].textContent.trim());
        }
<commit_msg>Remove `ng-class` usage in checkbox<commit_after>(function() {
  'use strict';

  angular
    .module('semantic.ui.elements.checkbox', [])

    .directive('smCheckbox', smCheckbox);

  function smCheckbox() {
    return {
      restrict: 'E',
      require: '?ngModel',
      transclude: true,
      replace: true,
      scope: {
        ngDisabled: '='
      },
      template: '<div class="ui checkbox">' +
                  '<input type="checkbox" ng-disabled="ngDisabled" ng-checked="isChecked">' +
                  '<label ng-transclude></label>' +
                '</div>',

      link: function(scope, element, attrs, ngModel) {


        element.bind('click', toggleFn);

        if (ngModel) {
          ngModel.$render = function() { 
            scope.isChecked = ngModel.$viewValue;
          };
        }

        if (attrs.toggle !== void 0) {
          angular.element(element).addClass('toggle');
        }
        else if (attrs.slider !== void 0) {
          angular.element(element).addClass('slider');
        }

        if (attrs.ariaLabel === void 0) {
          element.attr('aria-label', element[0].textContent.trim());
        }

{'fraction_non_alphanumeric': 0.15934539190353145, 'fraction_numerical': 0.0034453057708871662, 'mean_word_length': 1.9974193548387096, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4918266', 'n_tokens_mistral': 685, 'n_tokens_neox': 660, 'n_words': 129}