semvec/pypi-packages huggingface dataset:
two-goats-one-car 1.0.2
A Monte Carlo simulator for the Monty Hall Problem
License: MIT
Requires Python: <4.0,>=3.10

# MontyCarlo

A Monte Carlo simulator for the Monty Hall Problem

A.K.A.
> _"Two goats, one car"_

This project simulates the classic **Monty Hall** problem and estimates the empirical win rates for **staying** vs **switching**. It adheres to the standard rules, and prints clean JSON for easy piping to other tools.


## Rules

1. The prize is hidden uniformly at random behind one of three doors.
2. The contestant picks one door uniformly at random.
3. The host opens one of the other two doors, and reveals a goat. The host always knows where the prize is, and never opens the contestant’s chosen door or the prize door.
4. The contestant may **stay** with the original door or **switch** to the remaining closed door.

The MontyCarlo simulator runs a large number of independent trials conforming to these rules and reports the observed win rates for both strategies.

## Requirements

- Python >=3.10

## Installation

```bash
git clone https://github.com/DJStompZone/MontyCarlo.git
cd MontyCarlo
pip install .
```

Or install directly with pip:

```bash
pip install two-goats-one-car
```

## Project Layout

```plaintext
MontyCarlo/
├── LICENSE
├── pyproject.toml
├── README.md
└── two_goats_one_car/
    ├── __init__.py
    ├── __main__.py     # CLI entrypoint (python -m montycarlo)
    ├── monty.py        # Monty class & simulation logic
    └── results.py      # Dataclasses for trial results
```

## Usage

### Arguments

- `-n, --trials` — Number of trials to run (default: `100000`).
- `-s, --seed` — PRNG seed for reproducibility (default: none).
  
### Reproducibility

- Set `--seed` to fix the RNG stream.
- Larger `-n` reduces sampling noise
- Expect absolute error to shrink roughly with $(O(1/\sqrt{n}))$.

### Example

```bash
# Run 1,000,000 trials with a fixed seed:
montycarlo -n 1000000 -s 69420
```

### Example Output

```jsonc
{
  // Number of trials run
  "trials": 1000000,

  // Empirical probability of winning by staying
  "stay_win_rate": 0.333021,

  // Empirical probability of winning by switching
  "switch_win_rate": 0.666979,

  // Difference between switch and stay win rates
  "delta": 0.333958
}
```

## License

MIT. See the [LICENSE](LICENSE) file for details.

## Disclaimer

Don't come crying to me if you try this on a real game show and still pick the goat. :D
aenoxcord 0.0.1
An easy-to-use extension for Discord.py and Pycord
License: MIT
Requires Python: >=3.9
Keywords: discord, pycord, py-cord, discord.py

An easy-to-use extension for [Discord.py](https://github.com/Rapptz/discord.py)
and [Pycord](https://github.com/Pycord-Development/pycord) with some utility functions.

## Features
### ✏️ Reduce boilerplate code
- Easy cog management
- Embed templates
- Datetime and file utilities
- Wrapper for [aiosqlite](https://github.com/omnilib/aiosqlite) and [asyncpg](https://github.com/MagicStack/asyncpg)

### ✨ Error handling
- Automatic error handling for slash commands
- Error webhook reports
- Custom logging

### 📚 i18n
- Slash command translation (groups, options, choices)
- Translate messages, embeds, views, modals and more

### ⚙️ Extensions
- **Help command** - Automatically generate a help command for your bot
- **Status changer** - Change the bot's status in an interval
- **Blacklist** - Block users from using your bot

## Installing
Python 3.9 or higher is required.
```
pip install aenoxcord
```


```

## Useful Links
- [Documentation](https://ezcord.readthedocs.io/) | [Getting started](https://ezcord.readthedocs.io/en/latest/pages/getting_started.html)
- [Pycord](https://docs.pycord.dev/) | [Discord.py](https://discordpy.readthedocs.io/en/stable/)
- [PyPi](https://pypi.org/project/ezcord/)

## Examples
- For more examples, see the [example repository](https://github.com/tibue99/ezcord_template)
or the [sample code](https://ezcord.readthedocs.io/en/latest/examples/examples.html).
- **Note:** It's recommended to [load the token](https://guide.pycord.dev/getting-started/creating-your-first-bot#protecting-tokens) from a `.env` file instead of hardcoding it.
EzCord can automatically load the token if a `TOKEN` variable is present in the `.env` file.

### Pycord

```py
import aenoxcord
import discord

bot = aenoxcord.Bot(
    intents=discord.Intents.default()
)

if __name__ == "__main__":
    bot.load_cogs("cogs")  # Load all cogs in the "cogs" folder
    bot.run("TOKEN")
```

### Discord.py

```py
import asyncio
import discord
import aenoxcord


class Bot(aenoxcord.Bot):
    def __init__(self):
        super().__init__(intents=discord.Intents.default())

    async def setup_hook(self):
        await super().setup_hook()
        await self.tree.sync()


async def main():
    async with Bot() as bot:
        bot.add_help_command()
        bot.load_cogs("cogs")  # Load all cogs in the "cogs" folder
        await bot.start("TOKEN")


if __name__ == "__main__":
    asyncio.run(main())
```

## Contributing
You are welcome to contribute to this repository! Please refer to the full [contribution guide](https://ezcord.readthedocs.io/en/latest/pages/contributing.html).
acronym-expander 0.1.1
Lightweight utility to expand common acronyms and abbreviations into full forms.
License: MIT
Requires Python: >=3.6
Keywords: acronym, expand, nlp, text

# acronym-expander

A lightweight Python utility to expand acronyms into their full forms.

acronym-expander helps developers, data scientists, and technical writers quickly convert commonly used acronyms into human-readable full forms, improving code clarity, documentation, and text processing workflows.

## Features:
1.Expand common acronyms with a single function call.
2.Lightweight and dependency-free.
3.Easy to integrate into scripts, notebooks, or larger projects.
4.Useful for documentation, text preprocessing, and educational purposes.

## Install
```bash
pip install acronym-expander

## Usage
```python
from acronym_expander import DEFAULT_MAP

sentence = "NASA and AI are collaborating with WHO in NYC."

expanded_sentence = " ".join(
    [DEFAULT_MAP.get(word.upper().strip(".,!?;:"), word) for word in sentence.split()]
)

print("Original:", sentence)
print("Expanded:", expanded_sentence)

## Expected Output:
Original: NASA and AI are collaborating with WHO in NYC.
Expanded: National Aeronautics and Space Administration and Artificial Intelligence are collaborating with World Health Organization in New York City.