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/crillab/crusti_bat
18 March 2024, 09:43:12 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    No releases to show
  • 65796ae
  • /
  • README.md
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:e31649056591437ad4d02d377ffc5f01cd67c84e
origin badgedirectory badge Iframe embedding
swh:1:dir:65796aea5bf2ce980ac1645fb0219f632ff4ed23
origin badgerevision badge
swh:1:rev:ca7b76830473e71311ad8c314497a05a037d2db4
origin badgesnapshot badge
swh:1:snp:ee1db1f4ca307ee73f55a110b8f03d8ded037f6d
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: ca7b76830473e71311ad8c314497a05a037d2db4 authored by Lonca Emmanuel on 18 March 2024, 08:26:53 UTC
updated README
Tip revision: ca7b768
README.md
# crusti_bat

A Belief Aggregation Tool.

This project is a new implementation of two existing tools dedicated to belief bases, one dedicated to belief merging ([bm2cnf](https://www.cril.univ-artois.fr/software/bm2cnf/)) and one to belief revision ([br2cnf](https://www.cril.univ-artois.fr/software/br2cnf/)).

## Compiling/installing crusti_bat

Crusti_bat requires a recent version of the Rust toolchain (>= 1.66.1).
See [rust-lang.org](https://www.rust-lang.org/tools/install) for more information on how to install Rust.

To build from source, run `cargo build --release` to compile the binary. It will be set in the `target/release` directory.

## How to use

The crusti_bat tool expects a subcommand.
To get the list, just invoke the command with the help flag.

```
crusti_bat -h
```

In the same way, you can obtain the list of expected and optional arguments by adding the help flag after the subcommand.

```
crusti_bat belief-revision -h
```

The input formats for the `belief-merging` and the `belief-revision` commands follow the ones described on the webpages describing [bm2cnf](http://www.cril.univ-artois.fr/kc/bm2cnf.html) and [br2cnf](http://www.cril.univ-artois.fr/kc/br2cnf.html).
Both commands require a MaxSAT solver. At this time, none are provided with the library.
Some can be found for example [on the MaxSAT Evaluation website](https://maxsat-evaluations.github.io/2023/).
The external MaxSAT solvers must follow the requirements of the MaxSAT Evaluation 2023.

The `belief-merging` and the `belief-revision` commands share most of their options.
Here some some example of use.

Merge the belief bases described in `merging_instance.cnfs` using the hamming distance, the sum aggregator, the `cashwmaxsatcoreplus` MaxSAT solver, and write the result to `enforced.cnf`.

```
crusti_bat belief-merging -i merging_instance.cnfs -d hamming -a sum -s cashwmaxsatcoreplus -o enforced.cnf
```

Solve the revision problem described in `revision_instance.cnfs` using the drastic distance, the leximax aggregator, the `cashwmaxsatcoreplus` MaxSAT solver, and write the result to the standard output.
Log messages are deactivated.

```
crusti_bat belief-revision -i revision_instance.cnfs -d drastic -a gmax -s cashwmaxsatcoreplus --logging-level off
```

## License

crusti_bat is developed at CRIL (Univ. Artois & CNRS).
It is made available under the terms of the GNU GPLv3 license.

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