open-index/open-npm huggingface dataset:
npm package: @poliverse/greek-electoral-systems
Description: Compute seat distribution using simple and strengthened proportion for Greek electoral systems.
Author: Petros Devrikis
Latest version: 1.1.2

# Greek Electoral Systems
<img src='https://img.shields.io/badge/license-MIT-blue.svg' alt='img' />

The "Greek Electoral Systems" package provides functionalities to compute seat distribution using simple and strengthened proportion for Greek electoral systems. It allows users to calculate the allocation of seats based on party percentages and configurable thresholds.

# Features
- Compute seat distribution using simple proportion.
- Compute seat distribution using strengthened proportion.
- Support for configurable thresholds to determine eligible parties.
- Handle bonus seats for the first party based on a predefined rule.
- Thoroughly tested to ensure efficiency.

# Installation
The package can be installed via npm:

`npm install @poliverse/greek-electoral-systems`

# Usage
```
const { apliAnalogiki, enisximeniAnalogiki } = require('greek-electoral-systems');

const percentages = [41.83, 38.1, 8.15, 5.04, 3.8];
const threshold = 3;

const simpleSeatDistribution = apliAnalogikin(percentages, threshold);
console.log('Simple Proportion Seat Distribution:', simpleSeatDistribution);

const strengthenedSeatDistribution = enisximeniAnalogiki(percentages, threshold);
console.log('Strengthened Proportion Seat Distribution:', strengthenedSeatDistribution);
```

# API
### `apliAnalogiki(percentages, threshold)`:
Calculates seat distribution using the simple proportion method.

- `percentages (Array)`: An array of party percentages.
- `threshold (number)`: The minimum threshold percentage required for a party to be eligible.

Returns an array representing the seat distribution for each party.

### `enisximeniAnalogiki(percentages, threshold)`:
Calculates seat distribution using the strengthened proportion method.

- `percentages (Array):` An array of party percentages.
- `threshold (number)`: The minimum threshold percentage required for a party to be eligible.

Returns an array representing the seat distribution for each party.

# License
This package is open source and available under the <u>MIT License</u>.
npm package: @polizz/react-with-hooks-removal-codemod
Description: codemod test for react hooks polyfills
Author: polizz
Latest version: 0.0.3

# react-with-hooks polyfill codemod

This transform upgrades files based on [react-with-hooks](https://github.com/yesmeck/react-with-hooks) up to React 16.7.0 when it is released.

### Install
```
npm install @polizz/react-with-hooks-removal-codemod -D
yarn add @polizz/react-with-hooks-removal-codemod -D
```

### Run
```removeWithHooksPolyfill <directory to scan> <options>```

```<options>``` are any valid jscodeshift options, i.e. "--extensions jsx"