semvec/pypi-packages huggingface dataset:
hippocrates 0.4.0
Mental health questionnaires.

[![CircleCI](https://circleci.com/gh/chrishannam/hippocrates/tree/master.svg?style=svg)](https://circleci.com/gh/chrishannam/hippocrates/tree/master)

# Hippocrates
A Python library for giving and scoring various health based questionnaires.

Currently the following are supported:
* [Beck Depression Inventory](https://en.wikipedia.org/wiki/Beck_Depression_Inventory)
* [Generalized Anxiety Disorder 2](https://en.wikipedia.org/wiki/Generalized_anxiety_disorder)
* [Generalized Anxiety Disorder 7](https://en.wikipedia.org/wiki/Generalized_Anxiety_Disorder_7)
* [Patient Health Questionnaire 2](https://en.wikipedia.org/wiki/Patient_Health_Questionnaire#2-item_depression_screener)
* [Patient Health Questionnaire 9](https://en.wikipedia.org/wiki/PHQ-9)
* [Rosenberg Self-Esteem Scale](https://en.wikipedia.org/wiki/Rosenberg_self-esteem_scale)
* Mood - Generic scoring from 1 to 10 of current mood.

More information about the above tests can be found in [questionnaires](docs/questionnaires.md).

# Installing
## Pip
`pip install hippocrates`

## From Source
```
git clone https://github.com/chrishannam/hippocrates.git
cd hippocrates
python setup.py install
```


# Using the Questionnaires
Once installed, the questionnaires are available via the `hippocrates` command:

`hippocrates QUESTIONNAIRE_NAME`

e.g.
`hippocrates phq9`

Below is the list of the supported questionnaires:
* `beck_depression_index`
* `gad2`
* `gad7`
* `mood`
* `phq2`
* `phq9`
* `rosenberg_self_esteem`

## Options

### --hide
Stops results from being displayed once questionnaire is created, default is `off`.

### --log
Logs results to ~/.hippocrates/results.csv, default is `off`.

### questionnaire
Selected questionnaire to complete.


# Reporting
Using `--log` outputs your results in a csv file stored locally in you
home directory called `.hippocrates`. A sample is listed below:

```
2019-01-21 13:12:38,gad7,15
2019-02-21 13:17:38,phq9,14
2019-03-22 13:12:38,gad7,3
```

## hippocrates-results
Use the command `hippocrates-results` to create a local `html` file
called `hippocrates_results.html`.

This file will be opened in your browser to display your results as a
basic graph:

![Example results](docs/images/hippocrates-results.png)
math22 2.2
useful math functions

This project provides 10 functions that can help mathematics computation and code evaluation.
Is_prime (num) function is used to judge whether a number is prime.  Input should be a number above zero and output is true or false.

Function of is_square(num) is used to judge if a number is square number by commutating its square root. input should be a number above zero and result is true or false.

The quad_equation_1unknown (a, b, c) function is used to compute the root of equation of two degree. 3 input values are coefficients of equation. the results are roots of quadratic equation with one unknown. If there is no solution for this equation, the result will be “none”. If all inputs are zero, the result will be “not an equation”

The function of fib(num) is to compute the nth number in Fibonacci sequence . 

The functions [random _method1(len1), random_method2(len1) and random_all(len1)] can provide a random password with an input length of password. The function “random_method1” includes all letters (both upper case and lower case). The function “random_method2” includes all letters and numbers. The function “random_all” includes all printable characters (except whitespaces).

The next function is “level(string1)” that is used to evaluate level of password. You should give a string object to the function and it will return the strength grade of this password. The levels from good to bad are [perfect, very good, very strong, average, low and too low]. It has an attach function “level_store” and it is only used to support the “level” function.

The function of encode(st) is used to encode a string by using an encryption algorithm. Every character of this string will be replaced by next character in alphabet. The space will be replaced to the character “!”.

(there is a new object too,but it's not completed)

(version 2.1.7, 3rd January, 2020 add)
Function “line_equation_2unknown(a, b, u, c, d, v)”gives the root of a linear equation in two unknowns ”ax+by=u, cx+dy=v”.If it has no roots, the result will be none.
(version 2.2, 15st February, 2020 add)
Function "base_convert(before, after, num)" is used to convert the base of <num> from <before> to <after>.
<num> must be a string.<before> and <after> must be bigger than 1 and smaller than 63.The order is 0-9,a-z,A-Z.

If there’s a new version, the descriptions of the new functions will be add into the text.

This project is created by a 12-year-old student. You can send emails to 2691475984@qq.com to contact with me.
meeshkan-tutorial 0.0.5
A tutorial for Meeshkan
Keywords: meeshkan testing


# meeshkan-tutorial

An interactive tutorial for getting started with [Meeshkan](#what-is-meeshkan).

## Installation

Install via [pip](https://pip.pypa.io/en/stable/installing/):

```bash
$ pip install meeshkan-tutorial
```

This tutorial has been tested on Python 3.6, 3.7, and 3.8.

## Running

After installing, you can begin the tutorial by invoking from the command line:

```bash
$ meeshkan-tutorial
```

Once you've run this, you should see:

```bash
                             __    __
   ____ ___  ___  ___  _____/ /_  / /______ _____
  / __ `__ \/ _ \/ _ \/ ___/ __ \/ //_/ __ `/ __ \
 / / / / / /  __/  __(__  ) / / / ,< / /_/ / / / /
/_/ /_/ /_/\___/\___/____/_/ /_/_/|_|\__,_/_/ /_/


The tutorial!!
Press ENTER to continue...
```

If not, it's probably our fault. Please let us know on the [issues](https://github.com/meeshkan/meeshkan-tutorial/issues) page.

## What to expect

By the end of this tutorial, you'll know how to use Meeshkan to:
- Record server traffic from an API
- Transform those recordings into an OpenAPI spec
- Create a mock server from the spec

You'll repeat this two times: once to build a mock server that serves back recordings (similar to [wiremock](https://github.com/tomakehurst/wiremock) or [hoverfly](https://github.com/SpectoLabs/hoverfly)), and once to build a mock server that serves back synthetic data (similar to [unmock](https://github.com/meeshkan/unmock-js) or [fast-check](https://github.com/dubzzz/fast-check)).  The tutorial will end by showing how these two modes can be mixed.

## What is Meeshkan

[Meeshkan](https://github.com/meeshkan/meeshkan) is a tool for mocking HTTP APIs for use in sandboxes as well as for automated and exploratory testing. It uses a combination of API definitions, recorded traffic and code in order to make crafting mocks as enjoyable as possible.
dbwidgets 0.0.1
Database aware widgets for PySide2

# dbmodel

Creates an object representation of given database. Aim is to generate data aware pyside2 widgets with master detail relationships defined automatically from database definitions. 

* DBCombobox is implemented. 
* DBTableWidget is partly implemented.
* Postgresql and SQLite  databases are implemented.

Extracts column information, primary keys, and foreign keys if exists.


    db = DBSQLite("test.db")
    db.extract()


From that point, db has dictionary of tables, table names being the key value.
A table has a dictionary of columns, column names being the key value.

If a foreign key is defined for any column, the referring table name is foreign_key_table, referring column name is foreign_key_column as attributes for column object.

## Schema of the test database

    CREATE TABLE city (
	   id INTEGER NOT NULL, 
	   name VARCHAR, 
	   PRIMARY KEY (id)
    );

    CREATE TABLE district (
	   id INTEGER NOT NULL, 
	   name VARCHAR, 
	   city_id INTEGER, 
	   PRIMARY KEY (id), 
	   FOREIGN KEY(city_id) REFERENCES city (id)
    );

## Line By Line 

The lines below are from  testapp.py MainWindow __init__ section:

First, create the database object by giving connection parameters. 
For sqlite, file name is sufficient. 

    self.db = DBSQLite("test.db")
    
To create the table objects inside database object, call extract()

    self.db.extract()

Place combobox widget for city table. Here, self.widget1 is the placeholder on ui definition.
self.db is the database, "city" is the name of the table, "name" is the column for displaying inside combobox. 34 is the optional  default value of the primary key for the combobox to display first.

    self.city = DBComboBox(self.widget1, self.db, "city", "name", "id", 34)

Place the combobox for "district" table. Similar parameters as above.
     
    self.district = DBComboBox(self.widget2, self.db, "district", "name", "id")

Now we will create a master detail connection between these two comboboxes.
We will call detail table's setMaster method. self.city is the widget to use as master, 
"city_id" is the column name on the detail table, in our example, "district" table's "city_id" column. 

    self.district.setMaster(self.city, "city_id")

With three lines, we have two comboboxes connected with master-detail relationship.

Below is the line for creating a DBTableWidget for "district" table.

    self.districtlist = DBTableWidget(self.widget3, self.db, "district")

This line connects "district" dbtablewidget to city combobox:

    self.districtlist.setMaster(self.city, "city_id")
    
This line will create a dbtablewidget for "city" table.

    self.citylist = DBTableWidget(self.widget4, self.db, "city")

This line connects "district" dbtablewidget to "city" dbtablewidget:
    
    self.districtlist.setMaster(self.citylist, "city_id")   
    
## Demo
![video](testapp.mp4)
text-selector 2.3.0
A Custom Jupyter Widget Library for selecting text and assigning tag to selected span
Keywords: ipython,jupyter,widgets

text_selector
===============================
A Custom Jupyter Widget for selecting part of text and assingning it one of tags.  

Use the widget with the active learning tool:  
[https://github.com/IINemo/active_learning_toolbox/tree/seq](https://github.com/IINemo/active_learning_toolbox/tree/seq)

Usage:
------
An example of use case can be found in [example.ipynb](https://github.com/randomunrandom/text_selector/blob/master/example.ipynb)\
Note: if you have less than 10 tags you don't need to pass colors, otherwise you have too.

The result is represented via widgets public field `res`.
It can be in 1 of 3 states:
1. Empty: nobody selected anything in widget
2. Containing string of `None`: text doesn't contain any squences and user checked this widget as "Done"
3. Containing dicts with selected sequences


Installation
------------
To install this extension simply run folowing comands:

    $ pip install text_selector
    $ jupyter nbextension enable --py --sys-prefix text_selector

To install for jupyterlab

    $ jupyter labextension install text_selector

For a development installation (requires npm) run in terminal:

    $ git clone https://github.com/randomunrandom/text_selector.git
    $ cd text_selector
    $ pip install -e .
    $ jupyter nbextension install --py --symlink --sys-prefix text_selector
    $ jupyter nbextension enable --py --sys-prefix text_selector
    $ jupyter labextension install js

Docker
------
To create and start docker container run:

    $ git clone https://github.com/randomunrandom/text_selector.git
    $ cd text_selector
    $ docker build -t text_selector .
    $ docker run -p 8888:8888 -it --rm --name text_selector text_selector

if port 8888 is occupied change ${port} to any available port

    $ docker run -p ${port}:8888 -it --rm --name text_selector text_selector


Cite
----
````
@inproceedings{shelmanov2019bibm,
    title={Active Learning with Deep Pre-trained Models for Sequence Tagging of Clinical and Biomedical Texts},
    author={Artem Shelmanov and Vadim Liventsev and Danil Kireev and Nikita Khromov and Alexander Panchenko and Irina Fedulova and Dmitry V. Dylov},
    booktitle={Proceedings of International Conference on Bioinformatics & Biomedicine (BIBM)},
    year={2019}
}