semvec/pypi-packages huggingface dataset:
caddo-data-factory 0.10.1
Data Factpry for CaddoBenchmark Project
Requires Python: >=3.7

# data-factory

This repository contains source code of program used to generate `.caddo` files. Files taht are used in `tool` - which can be found in this organisation.

## 🔌 How to run

```
user@computer:~$ pip install caddo-data-factory
```

#### Implement all functions and run from command line
```
user@computer:~$ caddo-data-factory
```

## 📕 Any documentation?

Yes sure, please check our wiki for documentation
solidctf 1.0.0
SolidCTF is an infrastructure solution that simplifies the build of Solidity CTF challenges.

# SolidCTF

![Docker CI](https://img.shields.io/github/actions/workflow/status/chainflag/solidctf/docker-image.yml?branch=main)
![Docker size](https://badgen.net/docker/size/chainflag/solidctf/latest?color=cyan)
![Latest tag](https://badgen.net/github/tag/chainflag/solidctf)
![License: MIT](https://badgen.net/github/license/chainflag/solidctf?color=yellow)

SolidCTF is an infrastructure solution that simplifies the build of Solidity Capture the Flag (CTF) challenges. It provides the ability to CTF organizers to rapidly set up a playable Solidity CTF environment, freeing them up to concentrate on designing smart contracts for puzzles.

## Getting Started

### Quick Demo

Use the following command to run a quick demo:

```bash
docker run -it -p 20000:20000 -e WEB3_PROVIDER_URI=https://rpc.sepolia.org chainflag/solidctf
nc 127.0.0.1 20000
```

### Usage

1. Clone the [solidity-ctf-template](https://github.com/chainflag/solidity-ctf-template) using `git clone git@github.com:chainflag/solidity-ctf-template.git` command to create a new challenge project.
2. Open the contract directory and code your challenge contract that contains the [isSolved()](https://github.com/chainflag/solidity-ctf-template/blob/main/contracts/Example.sol#L19) to replace the example contract. For the multi-contract challenges, you can deploy them in a setup contract's constructor.
3. Edit the [challenge.yml](https://github.com/chainflag/solidity-ctf-template/blob/main/challenge.yml) to configure your challenge. See to the comments in this file for more details on how to configure it.
4. Place your flag in the file [flag.txt](https://github.com/chainflag/solidity-ctf-template/blob/main/flag.txt) file and change the alloc address private key in the [.env](https://github.com/chainflag/solidity-ctf-template/blob/main/.env) to your own.
5. Run the `docker-compose pull && docker-compose up -d` command to start serving your challenge.

## Development

### Prerequisites

Before you start, make sure you have the following installed:

* Docker
* Python3
* Required packages (`pip install -r requirements.txt`)

### Run in development mode
1. Clone the repository

```bash
git clone git@github.com:chainflag/solidctf.git
git submodule update --init --recursive
```

2. Generate protobuf code and run server

```bash
make protoc
export WEB3_PROVIDER_URI="your web3 provider"
make dev
```

3. Open another terminal to run client

```bash
python client.py
```

### Format python source

To format the Python source code, you will need to install additional packages (`pip install -r requirements-dev.txt`) and run the following command:

```bash
make format
```

## Acknowledgements
Many thanks to [JetBrains](https://jb.gg/OpenSourceSupport) for providing their excellent tools and an open source license to support the development of this project.

## License

Distributed under the MIT License. See LICENSE for more information.
TuringDSCalculator 0.0.3
A simple calculator that can perform the following operations:

# Turing Data Science Calculator

`TuringDSCalculator` contains simple Calculator that can perform the following operations:

-   _add_ - add the current value with a number.
-   _subtract_ - subtract a number from the current value.
-   _multiply_ - multiply the current value by a number.
-   _divided_ - divide the current value by a number.
-   _root_ - take the n-th root of the current value.
-   _reset_ - change the current value back to default, 0.

Its memory is limited at 1.7976931348623157e+308

## Installation

```sh
pip install TuringDSCalculator
```

## Usage

Using the 5 operations in Calculator:

```python
>>> from TuringDSCalculator import Calculator

# Create a new instance of Calculator
calculator = Calculator()

# Add two numbers
calculator.add(3)
calculator.add(7)

# Get the result
result = calculator.getResult()
print(result) # Output: 10.0

# Subtract a number
calculator.subtract(2)

# Get the result
result = calculator.getResult()
print(result) # Output: 8.0

# Multiply by a number
calculator.multiply(5)

# Get the result
result = calculator.getResult()
print(result) # Output: 40.0

# Divide by a number
calculator.divided(2)

# Get the result
result = calculator.getResult()
print(result) # Output: 20.0

# Take the 3rd root of the current value
calculator.root(3)

# Get the result
result = calculator.getResult()
print(result) # Output: 2.7144176165949083

# Reset the calculator's memory to 0
calculator.reset()

# Get the result
result = calculator.getResult()
print(result) # Output: 0.0

```

## Contributing
I welcome pull requests for this Sprint 1 project. If you plan to make significant changes, I recommend that you open an issue first to discuss your proposed changes. Please ensure that you add or update tests as appropriate.

## [Changelog](CHANGELOG.md)

## License

[MIT](https://choosealicense.com/licenses/mit/)