JavaPermutationTools

JavaPermutationTools: A Java Library of Permutation Distance Metrics - Published in JOSS (2018)

https://github.com/cicirello/javapermutationtools

Science Score: 98.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 6 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org, zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

edit-distance permutation-distance permutation-distance-metrics permutations sequences string-distance

Keywords from Contributors

standardization meshing randomization pde interpretability scheduling metaheuristics parallel simulations correlation
Last synced: 6 months ago · JSON representation ·

Repository

A Java library for computation on permutations and sequences

Basic Info
  • Host: GitHub
  • Owner: cicirello
  • License: gpl-3.0
  • Language: Java
  • Default Branch: master
  • Homepage: https://jpt.cicirello.org/
  • Size: 6.75 MB
Statistics
  • Stars: 19
  • Watchers: 1
  • Forks: 11
  • Open Issues: 1
  • Releases: 49
Topics
edit-distance permutation-distance permutation-distance-metrics permutations sequences string-distance
Created over 7 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License Citation Zenodo

README.md

JavaPermutationTools (JPT): A Java library for computation on permutations and sequences

JavaPermutationTools - A Java library for computation on permutations and sequences

Copyright (C) 2018-2024 Vincent A. Cicirello.

Website: https://jpt.cicirello.org/

API documentation: https://jpt.cicirello.org/api

| Publications About the Library | DOI | | :--- | :--- | | Packages and Releases | Maven Central GitHub release (latest by date) | | Build Status | build docs CodeQL | | JaCoCo Test Coverage | coverage branch coverage | | Security | Snyk security score Snyk Known Vulnerabilities | | DOI | DOI | | Other Information | GitHub style | | Support | GitHub Sponsors Liberapay Ko-Fi |

How to Cite

If you use this library in your research, please cite the following paper:

Cicirello, Vincent A (2018). JavaPermutationTools: A Java Library of Permutation Distance Metrics. Journal of Open Source Software, 3(31), 950. https://doi.org/10.21105/joss.00950 .

Overview

The JavaPermutationTools (JPT) library provides Java classes and interfaces, etc that enable representing and generating permutations and sequences, as well as performing computation on permutations and sequences. It includes implementations of a variety of permutation distance metrics as well as distance metrics on sequences (i.e., Strings, arrays, and other ordered data types).

Java 17+

We currently support Java 17+. See the following table for mapping between library version and minimum supported Java version.

| version | Java requirements | | --- | --- | | 4.w.x to 6.y.z | Java 17+ | | 3.x.y | Java 11+ | | 1.w.x to 2.y.z | Java 8+ |

The jar files of the library are released via Maven Central, GitHub Packages, and GitHub Releases.

Versioning Scheme

The JPT uses Semantic Versioning with version numbers of the form: MAJOR.MINOR.PATCH, where differences in MAJOR correspond to incompatible API changes, differences in MINOR correspond to introduction of backwards compatible new functionality, and PATCH corresponds to backwards compatible bug fixes.

Building the Library (with Maven)

The JavaPermutationTools library is built using Maven. The root of the repository contains a Maven pom.xml. To build the library, execute mvn package at the root of the repository, which will compile all classes, run all tests, run javadoc, and generate jar files of the library, the sources, and the javadocs. All build outputs will then be found in the directory target.

To include generation of a code coverage report during the build, execute mvn package -Pcoverage at the root of the repository to enable a Maven profile that executes JaCoCo during the test phase. The JaCoCo report will also be found in the target directory.

To run all static analysis tools (i.e., SpotBugs, Find Security Bugs, refactor-first), execute mvn package -Panalysis to enable a Maven profile that executes the various static analysis tools that we are using. The SpotBugs html report will be found in the target directory, or you can use the SpotBugs GUI with: mvn spotbugs:gui -Panalysis. The refactor-first report will be found in the target/site directory.

To run all of the above: mvn package -P "analysis,coverage".

Example Programs

There are several example programs available in a separate repository: cicirello/jpt-examples. The examples repository contains example usage of several of the classes of the library. Each of the examples contains detailed comments within the source code explaining the example. Running the examples without reading the source comments is not advised. Some of the example in the examples repository are based on the experiments from published papers that have either used the library directly, or which led to some of the code in the library.

Java Modules

This library provides a Java module, org.cicirello.jpt. To use in your project, add the following to your module-info.java:

Java module your.module.name.here { requires org.cicirello.jpt; }

This module includes the org.cicirello.permutations and org.cicirello.sequences packages as well as their subpackages. See the API documentation for details of all packages included in this module.

Beginning with version 3.0.0, randomization and other math utilities, and some generic utilities, have been moved to a pair of new libraries ρμ and org.cicirello.core, which are now dependencies of JavaPermutationTools. Your dependency manager (see next section) will handle downloading these for you.

If you are directly utilizing the functionality of the dependencies, then you may instead need the following:

Java module your.module.name.here { requires org.cicirello.jpt; requires org.cicirello.rho_mu; requires org.cicirello.core; }

Importing the Library from Maven Central

Add this to the dependencies section of your pom.xml, replacing the version number with the version you want to use.

XML <dependency> <groupId>org.cicirello</groupId> <artifactId>jpt</artifactId> <version>5.0.0</version> </dependency>

Importing the Library from Github Packages

If you'd prefer to import from Github Packages, rather than Maven Central, then: (1) add the dependency as indicated in previous section above, and (2) add the following to the repositories section of your pom.xml:

XML <repository> <id>github</id> <name>GitHub cicirello Apache Maven Packages</name> <url>https://maven.pkg.github.com/cicirello/JavaPermutationTools</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository>

Downloading Jar Files

If you don't use a dependency manager that supports importing from Maven Central, or if you simply prefer to download manually, prebuilt jars are also attached to each GitHub Release. If you manually download jar files, make sure you also get the relevant versions of the dependencies. The simplest way to do this is to import from Maven Central, which will obtain the relevant dependencies automatically.

License

The JPT library is licensed under the GNU General Public License 3.0.

Contribute

If you would like to contribute in any way, such as reporting bugs, suggesting new functionality, or code contributions such as bug fixes or implementations of new functionality, then start by reading the contribution guidelines. This project has adopted the Contributor Covenant Code of Conduct.

Owner

  • Name: Vincent A. Cicirello
  • Login: cicirello
  • Kind: user
  • Location: Galloway, NJ
  • Company: Stockton University

Vincent A. Cicirello is a researcher in AI, evolutionary computation, and swarm intelligence.

JOSS Publication

JavaPermutationTools: A Java Library of Permutation Distance Metrics
Published
November 06, 2018
Volume 3, Issue 31, Page 950
Authors
Vincent A. Cicirello ORCID
Computer Science, School of Business, Stockton University, Galloway, NJ 08205
Editor
Yo Yehudi ORCID
Tags
permutation distance permutation metric fitness landscape analysis evolutionary population management

Citation (CITATION.cff)

cff-version: "1.1.0"
message: "If you use this software, please cite it using these metadata."
authors: 
- family-names: "Cicirello"
  given-names: "Vincent A"
  orcid: "https://orcid.org/0000-0003-1072-8559"
title: "JavaPermutationTools"
doi: "10.5281/zenodo.1478192"
license: "GPL-3.0-or-later"
url: "https://github.com/cicirello/JavaPermutationTools"
preferred-citation:
  type: article
  authors:
  - family-names: "Cicirello"
    given-names: "Vincent A"
    orcid: "https://orcid.org/0000-0003-1072-8559"
  doi: "10.21105/joss.00950"
  journal: "Journal of Open Source Software"
  start: 950
  title: "JavaPermutationTools: A Java Library of Permutation Distance Metrics"
  issue: 31
  volume: 3
  year: 2018

GitHub Events

Total
  • Release event: 1
  • Watch event: 4
  • Delete event: 24
  • Issue comment event: 8
  • Push event: 51
  • Pull request review event: 25
  • Pull request event: 57
  • Fork event: 1
  • Create event: 31
Last Year
  • Release event: 1
  • Watch event: 4
  • Delete event: 24
  • Issue comment event: 8
  • Push event: 51
  • Pull request review event: 25
  • Pull request event: 57
  • Fork event: 1
  • Create event: 31

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 1,188
  • Total Committers: 3
  • Avg Commits per committer: 396.0
  • Development Distribution Score (DDS): 0.175
Past Year
  • Commits: 52
  • Committers: 2
  • Avg Commits per committer: 26.0
  • Development Distribution Score (DDS): 0.058
Top Committers
Name Email Commits
Vincent A. Cicirello c****o 980
dependabot[bot] 4****] 207
github-actions[bot] 4****] 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 31
  • Total pull requests: 276
  • Average time to close issues: 8 days
  • Average time to close pull requests: about 11 hours
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 0.03
  • Average comments per pull request: 0.45
  • Merged pull requests: 258
  • Bot issues: 1
  • Bot pull requests: 212
Past Year
  • Issues: 1
  • Pull requests: 86
  • Average time to close issues: about 8 hours
  • Average time to close pull requests: about 11 hours
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.24
  • Merged pull requests: 78
  • Bot issues: 1
  • Bot pull requests: 82
Top Authors
Issue Authors
  • cicirello (30)
  • dependabot[bot] (1)
Pull Request Authors
  • dependabot[bot] (212)
  • cicirello (64)
Top Labels
Issue Labels
enhancement (8) ci/cd (3) testing (3) refactor (2) java (2) bug (1) github_actions (1) documentation (1) dependencies (1)
Pull Request Labels
dependencies (215) java (208) hacktoberfest-accepted (18) enhancement (16) documentation (14) ci/cd (14) refactor (10) github_actions (8) testing (5) bug (3)

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 3
  • Total dependent repositories: 5
  • Total versions: 30
repo1.maven.org: org.cicirello:jpt

JavaPermutationTools (JPT) is a library for computation on permutations and sequences. JPT provides Java classes that enable representing and generating permutations and sequences, as well as performing computation on permutations and sequences. It includes implementations of a variety of permutation distance metrics as well as distance metrics on sequences (i.e., Strings, arrays, and other ordered data types).

  • Versions: 30
  • Dependent Packages: 3
  • Dependent Repositories: 5
Rankings
Dependent repos count: 10.9%
Dependent packages count: 17.6%
Average: 27.7%
Forks count: 36.0%
Stargazers count: 46.4%
Last synced: 6 months ago

Dependencies

pom.xml maven
  • org.cicirello:core 2.2.2
  • org.cicirello:rho-mu 2.3.2
  • org.junit.jupiter:junit-jupiter 5.8.2 test
.github/workflows/build.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • actions/upload-artifact v3 composite
  • cicirello/jacoco-badge-generator v2 composite
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/autobuild v2 composite
  • github/codeql-action/init v2 composite
.github/workflows/docs.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • cicirello/generate-sitemap v1 composite
  • cicirello/javadoc-cleanup v1 composite
.github/workflows/manual-deploy-github-only.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
.github/workflows/manual-deploy.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
.github/workflows/maven-publish.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite