semvec/pypi-packages huggingface dataset:
bdt2cpp 0.2.0
Transpile BDTs to C++ code.

# Generate C++ representations of boosted decision trees

This project tries to provide a generic functionality to transpile trained BDTs
into minimal, efficient C++ functions to evaluate single vectors of features.

While many frameworks exist to train, evaluate and store BDTs, its often hard
to use the results in a productive manner.

## Installation

So far there is only python3 support. Run
```
pip install bdt2cpp
```
to install the latest tagged version or
```
pip install git+https://github.com/bixel/bdt2cpp.git
```
for the current master version.

### lxplus

If you want to use bdt2cpp on CERNs lxplus machines, you need to get hold of
minimum python3.6. According to [CERNs Service Article
KB0000730](https://cern.service-now.com/service-portal/article.do?n=KB0000730),
one way to install the tool is:

```sh
# On lxplus
scl enable rh-python36

# this will install bdt2cpp to your `~/.local/` directory
pip install --user bdt2cpp
```

## Usage

To generate a minimal Makefile together with the C++ code inside a `build/`
directory from a given XGBoost dump or TMVA `.xml` file, simply run
```
bdt2cpp my-bdt-dump.xgb
```
You will find the corresponding files within the `build/` directory and if you
have installed `clang`, you can simply
```
cd build
make
```

*Note for CERN Users*: Currently, the Makefile uses clang as the default
compiler. You might need to adjust that in the generated file (inside the
`build/` directory)

The generated executable is essentially a very minimal placeholder, if you had
3 input features you could quickly cross-check the predictions against the
original training framework:
```
cd build
./main 1 2 3
```
should give the same output as received within the training framework if a
feature vector `f = (1, 2, 3)` is evaluated.


To see the complete list of features with some explanations, run
```
bdt2cpp -h
```
mtgcolors 0.1.0b1
MtgColors is module to detail mtg colors

# mtgcolors

## How to use

    // to do

## Why?

In the Discord Server we use, we have players with various level of mtg's knowledge.
Colors are a core part of Magic The Gathering. From the start of the game, different colors' surnames raised and fell. It can be difficult to keep track of all of them. Some illustrations of this struggle can be found on StackExchange where the most popular question is "[What are the names for Magic's different colour combinations?](https://boardgames.stackexchange.com/questions/11550/what-are-the-names-for-magics-different-colour-combinations)" or on Reddit where we often see post about colors like this [heads up](https://www.reddit.com/r/MagicArena/comments/clo25c/just_a_heads_up/).

Beside, this is also a way to practice my Python and to learn how to write a Discord Bot. Any help is welcome!

## License

[GPLv3](https://gitlab.com/aloisdegouvello/mtgcolors/raw/master/LICENSE.txt)
funq 1.2.0
write FUNctional tests for Qt applications (client)

About **funq**
==============

This package is the client part of the **funq** project, a tool to write
FUNctional tests for Qt applications using python.

It is licenced under the CeCILL v2.1 licence (very close to the GPL v2).
See the LICENCE.txt file distributed in the sources for more information.

You can get more information (installation, documentation, ...) from the
github repository here: https://github.com/parkouss/funq.
sh4dis 1.0.0
SH4 disassembler library

# sh4dis

A python disassembler library for SH4

# Use

```
>>> from sh4dis import sh4
>>> sh4.disasm(0x1234, 0)
'mov.l r3,@(16,r2)'
```

Or, if you'd like access to the instruction internals, like opcode identifier and operands:

```
>>> decoded = sh4.decode(0x1234, 0)
>>> decoded.op
<OP.MOV: 53>
>>> decoded.operands[0]
(<OPER_TYPE.GPREG: 10>, <REG.R3: 4>)
>>> decoded.operands[1]
(<OPER_TYPE.DEREF_REG_IMM: 7>, <REG.R2: 3>, 16)
2
```

The decoded structure can still be made into a string:

```
>>> sh4.disasm(decoded)
'mov.l r3,@(16,r2)'
```