<commit_before># sparsedb

silly non-database for storing and querying large sparse matrices
based on sparsity patterns (wip)

## usage

```python
from itertools import product
from scipy import sparse
from sparsedb import SparseDB

# set database information
db_path = '/path/to/db'
db_name = 'some_db'
db_cols = ['col%d' % i for i in range(0,4)]

# generate data to be loaded
blocksize = 8 
B0 = sparse.csr_matrix([(0.,)+p for p in product([0,1],repeat=3)])<commit_msg>minor update<commit_after># sparsedb

silly non-database for storing and querying large sparse matrices
based on sparsity patterns

## status

seems to work.  use at your peril

## usage

```python
from itertools import product
from scipy import sparse
from sparsedb import SparseDB

# set database information
db_path = '/path/to/db'
db_name = 'some_db'
db_cols = ['col%d' % i for i in range(0,4)]

# generate data to be loaded
blocksize = 8 
B0 = sparse.csr_matrix([(0.,)+p for p in product([0,1],repeat=3)])
{'fraction_non_alphanumeric': 0.10703363914373089, 'fraction_numerical': 0.0163098878695209, 'mean_word_length': 4.845238095238095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5718367', 'n_tokens_mistral': 354, 'n_tokens_neox': 335, 'n_words': 121}