{"size": 1371, "ext": "js", "max_stars_repo_path": "app/scripts/directives/method.js", "max_stars_repo_name": "SeaAroundUs/sau-web", "max_stars_repo_stars_event_min_datetime": "2015-09-01T20:24:23.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-04T01:30:51.000Z", "max_issues_repo_path": "app/scripts/directives/method.js", "max_issues_repo_name": "SeaAroundUs/sau-web", "max_issues_repo_issues_event_min_datetime": "2015-08-26T20:55:24.000Z", "max_issues_repo_issues_event_max_datetime": "2019-05-01T17:37:23.000Z", "max_forks_repo_path": "app/scripts/directives/method.js", "max_forks_repo_name": "SeaAroundUs/sau-web", "max_forks_repo_forks_event_min_datetime": "2020-01-17T08:45:14.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-19T07:21:47.000Z"}
{"max_stars_count": 3, "max_issues_count": 6, "max_forks_count": 3, "avg_line_length": 33.4390243902, "max_line_length": 86, "alphanum_fraction": 0.5521517141}
(function(angular) {
  'use strict';
  angular.module('sauWebApp').directive('method', function(externalURLs) {
    return {
      link: function(scope) {
        switch(scope.anchor) {
          case '13':
            scope.url = '/catch-reconstruction-and-allocation-methods/';
          break;
          case '23':
            scope.url = '/fisheries-subsidies/';
          break;
          case 'estuaries':
            scope.url = '/about-estuaries-database/';
          break;
          case 'multinational-footprint':
            scope.url = '/multinational-footprint-method';
          break;
          case 'marine-trophic-index':
            scope.url = '/mti-fib-rmti/';
          break;
          case 'catch-reconstruction-and-allocation-methods/taxon-distributions':
            scope.url = '/catch-reconstruction-and-allocation-methods/#_Toc421534359';
          break;
          case 'catch-reconstruction-and-allocation-methods/foreign-fishing-access':
            scope.url = '/catch-reconstruction-and-allocation-methods/#_Toc421534365';
          break;
          default:
            scope.url = externalURLs.manual + '#' + scope.anchor;
        }
      },
      restrict: 'E',
      replace: true,
      scope: {
        anchor: '@'
      },
      template: '<span><a target="_blank" ng-href="{{ url }}">Method</a></span>'
    };
  });
})(angular);
