<commit_before>angular
  .module('app')
  .controller('ArtworkShowController', ArtworkShowController)

  function ArtworkShowController(artwork, $scope, $http, Artwork, $state) {
    this.data = artwork.data["artwork"]

    $scope.updateDateSeen = function($scope) {
      $http.patch('http://localhost:3000/artworks/' + $scope.id, $scope)
    }

    $scope.destroyArtwork = function($scope) {
      Artwork.destroyArtwork($scope.id)
      alert("artwork successfully deleted!")
    }
  }<commit_msg>delete some parameters from ArtworkShowController; refactor updateDateSeen function<commit_after>angular
  .module('app')
  .controller('ArtworkShowController', ArtworkShowController)

  function ArtworkShowController(artwork, $scope, Artwork) {
    this.data = artwork.data["artwork"]

    $scope.updateDateSeen = function(artwork) {
      Artwork.updateArtwork(artwork)
    }

    $scope.destroyArtwork = function($scope) {
      Artwork.destroyArtwork($scope.id)
      alert("artwork successfully deleted!")
    }
  }
{'fraction_non_alphanumeric': 0.12941176470588237, 'fraction_numerical': 0.00392156862745098, 'mean_word_length': 4.430851063829787, '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': '4553003', 'n_tokens_mistral': 315, 'n_tokens_neox': 304, 'n_words': 49}