Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
.. image:: https://img.shields.io/pypi/v/corsort.svg :target: https://pypi.python.org/pypi/corsort :alt: PyPI Status
.. image:: https://github.com/emczg/corsort/workflows/build/badge.svg?branch=main :target: https://github.com/emczg/corsort/actions?query=workflow%3Abuild :alt: Build Status
.. image:: https://github.com/emczg/corsort/workflows/docs/badge.svg?branch=main :target: https://github.com/emczg/corsort/actions?query=workflow%3Adocs :alt: Documentation Status
.. image:: https://codecov.io/gh/emczg/corsort/branch/main/graphs/badge.svg :target: https://app.codecov.io/gh/emczg/corsort/tree/main/ :alt: Code Coverage
|
.. image:: https://github.com/emczg/corsort/raw/main/docs/logo/logo.png :alt: Corsort logo :target: https://emczg.github.io/corsort/
Comparison-Oriented Sort.
This package was created with Cookiecutter_ and the francois-durand/package_helper_2
_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _francois-durand/package_helper_2
: https://github.com/francois-durand/package_helper_2
Corsort
and subclasses (i.e. non-jit Corsort algorithms):
record_leq
. If True, then record all the states of the leq_
matrix.final_score
. Scorer used to compute the tentative estimate of the sorted list.Add CorsortChainDecompositionMergeV
: Corsort based on chain decomposition, with "V-shape" merging.
Add CorsortChainDecompositionMergeX
: Corsort based on chain decomposition, with "X-shape" merging.
Add greedy_chain_decomposition
: greedy chain decomposition.
Add longest_chain
: longest chain.
Add longest_chain_starting_at
: longest chain starting at a given item.
Add multi_merge
: merge consecutive sorted portions of a list, two by two, in alternance. Used for multizip sort.
Add scorer_delta
and scorer_rho
: scorer delta or rho. Mostly used for the final_score
parameter of Corsort
.
Add SortBinaryInsertion
: binary insertion sort.
Add SortMultizip
: multizip sort.
Add SortShell
: Shellsort.
Add split_pointer_lists
: compute the indices of the boundaries for all the steps of bottom-up (BFS) merge sort.
Add transitive_reduction
: transitive reduction of a leq
matrix.
WrapFullJit
: add parameter record_states
. If True, then record the states of the algorithm.
Add predefined wrappers using WrapFullJit
: JitCorsortBorda
, JitHeapsort
, JitCorsortDeltaMaxRho
,
JitCorsortDeltaSumRho
, etc.
Rename CorSort
to Corsort
, and similarly for subclasses.
Rename print_order
to print_order_as_letters
.
Rename drift
to delta
and spaced
to rho
in all function names in order to match the notations of our papers.
Rename scorer_drift
to jit_scorer_delta
and scorer_spaced
to jit_scorer_rho
.
Rename plus
to sum
in jit corsort functions. For example, rename jit_corsort_drift_plus_spaced
to
jit_corsort_delta_sum_rho
.
Rename SortMergeBfs
to SortMergeBottomUp
.
Rename SortMergeDfs
to SortMergeTopDown
.
Sort.history_comparisons_values_
: history of the pairwise comparisons, in terms of compared values
(whereas history_comparisons_
gives the original indices). Similarly, add
WrapSortScorer.history_comparisons_values_
and WrapFullJit.history_comparisons_values_
.CorSort.history_leq_
: history of the matrix leq_
representing the current poset. This is recorded
if the newly added parameter record_leq
is True.WrapFullJit.history_states_
: history of the state of the list.ChainAndY
: poset consisting of a chain and a Y-shape.print_corsort_execution
: generate LaTeX code for a CorSort execution.partition
is now stable (in the sense of "stable" sorting), hence also SortQuick
, SortAsortQuickselect
,
and SortLargestInterval
.FAQs
Comparison-Oriented Sort.
We found that corsort demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.