semvec/pypi-packages huggingface dataset:
datamax-printer 0.1.1
Controll a datamax o'neil labelprinter using DPL

# Datamax python adapter

This piece of code allows you to control a datamax-o'neil label printer. You do not need knowledge of the datamax
programming language for simple tasks, this module takes care of it.

The module was developed and tested on python 3.6 using a datamax o'neil e-class mark III printer. It still has very
limited functionality allowing you to print text labels and QR-codes. In case you need any other features feel free to
contribute.

## Install

```bash
$ pip install datamax-printer
```

or from source:

```bash
$ python setup.py install
```

## Getting started

```python
from datamax_printer import DPLPrinter

printer = DPLPrinter('<ip of the printer>')
printer.configure()
printer.start_document()
printer.set_qr_code(285, 120, 'https://www.innetag.ch/', 9)
printer.set_label(300, 60, 'innetag.ch', 9, 10)
printer.print()
```

Please check the `example.py` file in [our GitHub repository](https://github.com/inNETMonitoring/datamax-python-adapter)
for a working example.

## Ressources

In case you need more information about the datamax programming language, please check the [official DPL documentation](
https://support.honeywellaidc.com/s/article/How-To-Program-Using-The-Datamax-Programming-Language-Manual). It also
contains information about the different fonts available (see Appendix C).
commented-out-code 0.0.5
A library for commented out code detection

# commented out code

This library can detect both inline or block commented out code.

It sends rpc to the server which uses LSTM model to predict commented out code.
The server runs on my school data center, and will be migrated to a private machine.

Only support c/c++ now. More language support is about to come

# How to use

## sample code

```
text =  '''
    void DropoutLayer::updateB(){

        int num = this->numUnit;
        //cout<<"Error!!!!!!!!!!!!!!!!in DropoutLayer!!!!!!!"<<endl;
        if (this->z == NULL){ // embeddings
            // gradB += dE_dy, because y = b
            iXpY( num , this->dE_dy, gradBiases + bidx );

            return;
        }

        if (fprime != dummy){

            // dy_dz = f', evaluated at y
            ( * this->fprime)(this->y, this->dy_dz, num);
            // dE_dz = dE_dy .* dy_dz

            pointwise_dot(this->dE_dy, this->dy_dz, this->dE_dz, num);
            //cout<<"dropout backward"<<endl;
            for( int i = 0; i < num; ++i){

                this->dE_dz[i] *= this->indicator[i];

            }

        }// else if fprime == softmaxprime{
            // do nothing, because we assume dE_dz is given by softmax

        //}

    //		ReLUPrime(float * y, float * dy_dz, int n);
    }
'''
print(client.search(text, 'cpp')) # return OrderedDict object, key is line_number, value is the commented code itself

# output
# OrderedDict([(4, 'cout<<"Error!!!!!!!!!!!!!!!!in DropoutLayer!!!!!!!"<<endl;'),
#             (19, 'cout<<"dropout backward"<<endl;'),
#             (26, 'else if fprime == softmaxprime{'),
#             (29, '}'),
#             (31, 'ReLUPrime(float * y, float * dy_dz, int n);')])
```