Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File Download
Permalink

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge Iframe embedding
swh:1:cnt:2999c9f2714091250fb748485f18d8fd5f730c5b
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
clear all; close all;
addpath('../')

% Load the dataset
load dataset.mat
% Load the gold standard expert annotations
load goldstandard.mat

% Initialize variable to save team scores
for ind_usr = 1:length(team)
    teams_score{ind_usr} = [];
end

% Go through each goldstandard image
for ind_GS = 1246:1249
   % Select all triplets relative to this image
   triplets_sel = triplets(triplets(:,2)==ind_GS,:);
   
   % Read JSON 
   s = readJSON(['JSON/' shape{ind_GS,2}]);
   
   areas_tri = computeTrianglesArea(s);
   
   % Experts annotations for this gold standard shape
   annot_exp = annotationsGS(tripletsGS(tripletsGS(:,2)==ind_GS,3));
   
     
   % Go through each team annotation
   for ind_t=1:size(triplets_sel,1)
      a_aux = annotations{triplets_sel(ind_t,3)};
      ind_team = triplets_sel(ind_t,1);
      
      % The score for this team is the one that has the highest resemblance
      % with one of the expert annotations
      max_score = -Inf;
      for ind_e=1:length(annot_exp)
        if  annotationDistance(a_aux,annot_exp{ind_e},areas_tri)>max_score
            max_score = annotationDistance(a_aux,annot_exp{ind_e},areas_tri);
        end
      end
      
      teams_score{ind_team} = [teams_score{ind_team} max_score];
   end
   
end


% Post process team scores
scores = NaN*ones(1,length(teams_score));

% All the teams that did not annotate any Gold Standard shape get a NaN
% score
for ind_team = 1:length(scores)
   if (length(teams_score{ind_team})>=1) 
       scores(ind_team) = mean(teams_score{ind_team});
   end
end
    
save('QualityScores','scores')

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top