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

https://bitbucket.org/adelard/simple-concurrency
16 July 2020, 04:59:35 UTC
  • Code
  • Branches (2)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • branch-tip/byako/test
    • branch-tip/default
    No releases to show
  • e4d595e
  • /
  • epsgui.ml
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

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
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:4ad191218bd1360652aebad720f9258bdae3dffd
origin badgedirectory badge
swh:1:dir:e4d595ee90553d4d4eb96aa716bc6b01210af2c9
origin badgerevision badge
swh:1:rev:cd7dfa9b13e79137daa54446067371af0a68515d
origin badgesnapshot badge
swh:1:snp:c4b5596e0a959f5423a65cdaf9ad7aba9e9b4ce1

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
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: cd7dfa9b13e79137daa54446067371af0a68515d authored by Dan Sheridan on 27 February 2015, 15:32:58 UTC
Change -accesses-for to report accesses from the "main" entry point even if it is not explicitly listed in -threads; this better matches the behaviour of -var-overlap.
Tip revision: cd7dfa9
epsgui.ml
(**************************************************************************)
(*                                                                        *)
(*  This file is part of the Concurrency Plugin for Frama-C               *)
(*                                                                        *)
(*  Copyright (C) 2013                                                    *)
(*    Adelard LLP                                                         *)
(*    CINIF (Control and Instrumentation Nuclear Industry Forum)          *)
(*                                                                        *)
(*  You can redistribute it and/or modify it under the terms of the GNU   *)
(*  Lesser General Public License as published by the Free Software       *)
(*  Foundation, version 3.                                                *)
(*                                                                        *)
(*  It is distributed in the hope that it will be useful,                 *)
(*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *)
(*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *)
(*  GNU Lesser General Public License for more details.                   *)
(*                                                                        *)
(*  See the GNU Lesser General Public License version v3                  *)
(*  for more details (enclosed in the file ./LGPLv3).                     *)
(*                                                                        *)
(**************************************************************************)
open Concurguiglobs
(**
 * A form to list entry points.
*)
class vEpsWindow =
object(slf) 
  val mutable eps_display = (None : GWindow.window option)
  val mutable m_eps_tree_columns = ([] : string GTree.column list)
  val mutable m_eps_tree = (None : GTree.list_store option) 
  val mutable m_eps_adjust = (None : GData.adjustment option)

  
  method private populate_tree
    (eps_tree : GTree.list_store) 
    (columns_list :  string GTree.column list) 
    (eps_adjust : GData.adjustment) =  
    begin  
      match columns_list with 
	  col0::_ ->
	    begin
	      let add_eps_to_tree ep =   
		let ep_name = Kernel_function.get_name ep in
		let iter = eps_tree#append () in
		eps_tree#set ~row:iter ~column:col0 ep_name
	      in
	      eps_tree#clear ();
	      List.iter add_eps_to_tree (FilteredEntryPoints.get ());
	      eps_adjust#set_bounds ~upper:(float_of_int(List.length (FilteredEntryPoints.get ()))) ()
	    end
	| _ -> ()
    end
      
  method private create_eps_display () = 
    begin
      eps_display <- Some(GWindow.window ~title:"Entry points" ()); 
      ignore((get_option eps_display)#connect#destroy (fun () -> eps_display <- None));
      
      let v_box = GPack.vbox ~packing:(get_option eps_display)#add () in
      let h_box = GPack.hbox ~packing:v_box#add () in
      let button_remove = GButton.button ~label:"Hide functions" ~packing:h_box#pack () in
      let button_reset = GButton.button ~label:"Show All" ~packing:h_box#pack () in
      let h2_box = GPack.hbox ~packing:v_box#add () in
      let eps_tree_columns = new GTree.column_list in
      let eps_tree_column = eps_tree_columns#add Gobject.Data.string in 
      let eps_tree = GTree.list_store eps_tree_columns in
      let eps_view = GTree.view ~model:eps_tree ~height:360 ~packing:h2_box#pack () in
      
      eps_view#selection#set_mode `MULTIPLE;
      
      let eps_col1 = GTree.view_column 
	~title: "Potential entry points" 
	~renderer: (GTree.cell_renderer_text [], [("text", eps_tree_column)]) ()
      in
      ignore (eps_view#append_column eps_col1);
      
      
      
      let eps_adjust = GData.adjustment ~upper:(float_of_int(List.length (FilteredEntryPoints.get ()))) () in
      let _ = GRange.scrollbar `VERTICAL ~adjustment:eps_adjust ~packing:h2_box#pack () in
      
      eps_view#set_vadjustment eps_adjust;
      
      m_eps_tree_columns <- [eps_tree_column];
      m_eps_tree <- Some(eps_tree);
      m_eps_adjust <- Some(eps_adjust);
      
      let remove_selected_rows () = 
	let selected_rows = eps_view#selection#get_selected_rows in
	let model = eps_view#model in
	let match_ep str ep = 
	  if 0 == (String.compare (Kernel_function.get_name ep) str) 
	  then true else false 
	in
	let not_match_ep str ep = not (match_ep str ep) in
	let remove_eps str =
	  let ep_to_keep kfl = List.filter (not_match_ep str) kfl in
	  FilteredEntryPoints.set (ep_to_keep (FilteredEntryPoints.get ()))
	in    
	let del_rows row = 
	  remove_eps (get_t_row model eps_tree_column row) 
	in
	List.iter del_rows selected_rows;
	slf#populate_tree eps_tree [eps_tree_column] eps_adjust; 
	refresh := (true, true, true, true, false);
	reset_concurrency ();
      in
      
      ignore(button_remove#connect#pressed remove_selected_rows);
      
      (*Soft reset of all things necessary*)
      let soft_reset () =
	begin
	  start_concurrency ();
	  slf#populate_tree eps_tree [eps_tree_column] eps_adjust;
	  refresh := (true, true, true, true, false);
	end
      in
      ignore (button_reset#connect#pressed soft_reset);
      
      slf#populate_tree eps_tree [eps_tree_column] eps_adjust; 
      (get_option eps_display)#show () 
    end
      
  method show_eps () =
    begin
      match eps_display with 
	  Some(e) ->
	    ignore(e#present ())
	| None -> 
	  slf#create_eps_display ()
    end
      
  method refresh () = 
    begin
      match (eps_display, m_eps_tree, m_eps_adjust)
      with 
	  (Some(_),Some(b),Some(c)) ->
	    slf#populate_tree b m_eps_tree_columns c 
	| _ -> ()
    end
end
  

back to top

Software Heritage — Copyright (C) 2015–2026, 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— Content policy— Contact— JavaScript license information— Web API