<commit_before>'use strict'

app.directive 'assetDisplay', [
  'constantService',
  (constants) ->
    restrict: 'E'
    templateUrl: 'asset/display.html'
    scope:
      assetFn: '&asset'
    link: ($scope, $element, $attrs) ->
      asset = $scope.assetFn()
      $scope.asset = if 'exact' of $attrs then asset else asset.inContext()
      $scope.readable = $scope.asset.checkPermission(constants.permission.VIEW)
      if $scope.$parent.publicView == true
        $scope.asset.segment = $scope.asset.excerpts[0].segment
      return
      if $scope.asset != asset
        $scope.clip = asset.segment.relativeTo($scope.asset.segment)
      return
]<commit_msg>just change asset not segmenet also<commit_after>'use strict'

app.directive 'assetDisplay', [
  'constantService',
  (constants) ->
    restrict: 'E'
    templateUrl: 'asset/display.html'
    scope:
      assetFn: '&asset'
    link: ($scope, $element, $attrs) ->
      asset = $scope.assetFn()
      $scope.asset = if 'exact' of $attrs then asset else asset.inContext()
      $scope.readable = $scope.asset.checkPermission(constants.permission.VIEW)
      if $scope.$parent.publicView == true
        $scope.asset = $scope.asset.excerpts[0]
      return
      if $scope.asset != asset
        $scope.clip = asset.segment.relativeTo($scope.asset.segment)
      return
]
{'fraction_non_alphanumeric': 0.14114114114114115, 'fraction_numerical': 0.0015015015015015015, 'mean_word_length': 3.0393939393939395, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1172908', 'n_tokens_mistral': 414, 'n_tokens_neox': 415, 'n_words': 89}