semvec/pypi-packages huggingface dataset:
libfuzzer 0.0.2
libfuzzer

libfuzzer
-----------

This is raw bindings for libfuzzer which works as a library.

Example:

```python
#!/usr/bin/env python3

from libfuzzer import *
import os
import sys

Counters = CreateLibFuzzerCounters(4096)

def TestOneInput(input):
    # Instrument the code manually.
    l = len(input)

    if l == 0:
        Counters[0] += 1
    elif l == 8:
        Counters[1] += 1
    elif l == 16:
        Counters[2] += 1
        os.abort()
    else:
        Counters[3] += 1
    
    Counters[4] += 1
    return 0

def Initialize(argv):
    return 0

def Mutator(data, max_size, seed):
    return LLVMFuzzerMutate(data, max_size)

def CrossOver(data1, data2, out, seed):
    return 0

# If you are using -fork=1, make sure run it like `python3 ./example.py` or
# `./example.py` instead of `python3 example.py`.
LLVMFuzzerRunDriver(sys.argv, TestOneInput, Initialize, Mutator, CrossOver, Counters)
```
anid 0.2.2
Anime Downloader
Requires Python: >=3.6

anid
====

[![Pypi](https://img.shields.io/pypi/v/anid.svg?style=plastic)](https://pypi.org/project/anid/)

`anid` is a cli to download animes from [animefire.net](https://animefire.net)

Instalation
-----------

``` code:sh
pip install anid
```

Usage
-----

To use you need to pass the anime name, the number of episodes and optionally the episode to start the download

``` code:sh
Usage: anid [OPTIONS] ANIME

Options:
  -e, --episodes INTEGER  Number of episodes  [required]
  -s, --start INTEGER     Number of episodes
  --help                  Show this message and exit.
```

If you want download a anime you will search in the [animefire.net](http://animefire.net) and open the url with player and copy the anime name in url

In this exemple https://animefire.net/animes/mob-psycho-100/1 you will copy "mod-psycho-100" and put in the command, and the number of episodes, like this:

In mod pyscho 100 case: https://animefire.net/animes/mob-psycho-100/1
Copy "mod-psycho-100" and put in command, and the number of episodes, like this:

``` code:sh
anid "mob-psycho-100" -e 12
```

License
-------

This project use MIT **license**

About Me
--------

Telegram: [@exebixel](https://t.me/exebixel)

Email: ezequielnat7@gmail.com
brep-to-dagmc 0.0.4
A Python package for converting Brep files to DAGMC h5m files

# brep_to_h5m

A Python package that converts Brep CAD geometry files to h5m geometry files compatible with DAGMC simulations.

The method uses gmsh to create a conformal mesh of the geometry and then exports separate volumes to STL files.
The [stl-to-h5m](github.com/fusion-energy/stl_to_h5m) package then converts the non overlapping STL files into a h5m geometry.

# Installation

Create a new enviroment, activate the enviroment, install MOAB, GMSH and this package

```
conda create --name my_env
conda activate my_env
conda install -c conda-forge moab
sudo apt install python3-gmsh
pip install git+https://github.com/fusion-energy/brep_to_h5m
```


# Usage

See the [examples](https://github.com/fusion-energy/brep_to_h5m/tree/main/examples) folder for a complete workflow from geometry creation to conversion to h5m and then use in and OpenMC simulation.

To make a Brep file with merged surfaces consider using the [Paramak](https://github.com/fusion-energy/paramak) as it has a ```export_brep``` method that merges the shared surfaces for Brep files.

Starting with a Brep file that has shared surfaces the following command should produce a DAGMC compatible h5m file.

```python
from brep_to_h5m import brep_to_h5m

brep_to_h5m(
    brep_filename='my_brep_file_with_merged_surfaces.brep',
    volumes_with_tags={
        1: 'material_for_volume_1',
        2: 'material_for_volume_2',
        3: 'material_for_volume_3',
        4: 'material_for_volume_4',
        5: 'material_for_volume_5',
        6: 'material_for_volume_6',
        7: 'material_for_volume_7',
        8: 'material_for_volume_8',
    },
    h5m_filename='dagmc.h5m',
    min_mesh_size= 30,
    max_mesh_size = 50,
    mesh_algorithm = 1,
)
```

The resulting ```dagmc.h5m``` file can now be used in neutronics simulation with [DAGMC](https://svalinn.github.io/DAGMC/) enabled transport codes.

# Acknowledgement

Many thanks to @makeclean for suggesting gmsh for meshing and Brep for the CAD file format. Also for showing the way forwards by starting [gmsh2dagmc](https://github.com/svalinn/gmsh2dagmc/tree/7934ff291af5e4aae680a895239159471994b025).