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
22 August 2024, 06:48:53 UTC
  • Code
  • Branches (2)
  • Releases (0)
  • Visits
Revision 51d6271b2d39873d8144b61db9ff8fb5e9031abb authored by Enterausernamenotavailable on 14 August 2024, 10:48:32 UTC, committed by GitHub on 14 August 2024, 10:48:32 UTC
Update README.md
Adding image and replication info
1 parent cdc35b1
  • Files
  • Changes
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • refs/heads/transitionFix
    • 51d6271b2d39873d8144b61db9ff8fb5e9031abb
    No releases to show
  • 3f0c360
  • /
  • make_rects.py
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.

  • revision
  • directory
  • content
  • snapshot
origin badgerevision badge
swh:1:rev:51d6271b2d39873d8144b61db9ff8fb5e9031abb
origin badgedirectory badge
swh:1:dir:3f0c360225b838821205b2118d5a3df14caab469
origin badgecontent badge
swh:1:cnt:de40008642d831e9aba1939c71ea2bd14ded20bd
origin badgesnapshot badge
swh:1:snp:9837fefdf0840d8759ea320718c6c595b228ae53

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.

  • revision
  • directory
  • content
  • 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: 51d6271b2d39873d8144b61db9ff8fb5e9031abb authored by Enterausernamenotavailable on 14 August 2024, 10:48:32 UTC
Update README.md
Tip revision: 51d6271
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")

The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

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