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://github.com/lauragarrison87/metaphorTool
30 October 2024, 08:05:27 UTC
  • Code
  • Branches (2)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • refs/heads/transitionFix
    No releases to show
  • 070c829
  • /
  • make_rects.py
Raw File Download
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 ...

Permalinks

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 Iframe embedding
swh:1:cnt:de40008642d831e9aba1939c71ea2bd14ded20bd
origin badgedirectory badge Iframe embedding
swh:1:dir:070c829fb752391a5736b133995330b1b0f035f2
origin badgerevision badge
swh:1:rev:152620734dd091c3dd2a4d66a549d7ffe0e08b31
origin badgesnapshot badge
swh:1:snp:ed8127f113a02fd39de7df9e3c7f6696432fdc91
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
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 152620734dd091c3dd2a4d66a549d7ffe0e08b31 authored by lauragarrison87 on 16 October 2024, 05:53:38 UTC
Update README.md
Tip revision: 1526207
make_rects.py
import pandas as pd

df = pd.read_csv("exploratoryTool/data/DATABASE_LG_reqs_HH_pass2.csv", index_col=None)

# for all rows:
# subtract 0.5 from xfrom 
# subtract 0.5 from yfrom
# if xto is empty, add 1 to xfrom else add 0.5
# if yto is empty, add 1 to yfrom else add 0.5

df["xfrom"] -= 0.5
df["yfrom"] -= 0.5

xto_isempty = df["xto"].isna()
df.loc[xto_isempty,"xto"] = df.loc[xto_isempty, "xfrom"] + 1
df.loc[~xto_isempty,"xto"] += 0.5

yto_isempty = df["yto"].isna()
df.loc[yto_isempty,"yto"] = df.loc[yto_isempty, "yfrom"] + 1
df.loc[~yto_isempty,"yto"] += 0.5

print(df.head())


df.to_csv("exploratoryTool/data/DATABASE.csv", index=False, encoding="utf8")

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