<commit_before>StaticData
==========

Staticdata will just replace a SQL server, it uses files with objects to save your data.


#### Why would you use Static data?
Simple, to replace sql. Working on a local machine wit braggy sql support? Just not in the mood the set it up? Or just want an awsome super safe local file stored database? Which works great with PHP Safe's encryption? Then static Data is something for you!!

Now enough with the sales talk, it is a simple set up, the only thing you need is a chmodded file and the class will handle your data problems.
#### Uppoints
 - easy back ups
 - simple set ups
 - dynamic databases with easy extra fields
 - secure
 - no random sql server giberish / no extra servers needed

#### Downpoint
Wel above an x amount of files the system could get kinda slow..

#### Setting up:
include the staticData.php class, and wel yes.. call it: (we are working on building a bigger better and faster version with more valid php, so no composer support yet.)

    require_once('staticData.php');

When you did that well you are nearly ready to go.
Make shure you CHMODDED the class file and the folder you want to store your data sets.
The class does not automaticly create the folder you want to use (yet, i know it's a easy thing but we want to be shure the other things where fixed first).

(so just create the folder: eg: data/static (if you clone this, you will probably have it already)).. make shure it's chmodded (0755+)
Now just call it: and you wil have your object ready.

    $data = new data('static');
You can work with the data set by calling a public function around the given class object.

    $data->getAll();

Will return everything of the data group.

    Array
    (
        [1] => Array
            (
                [id] => 1
                [first-name] => Matti
                [sur-name] => <NAME>
                [age] => 19
                [country] => nl
                [Main language] => PHP
            )

    )

Just check the class file for the rest of the functions ATM (larger readmeh incomming!!)

___
Want it to entirely replace sql? You might want to check:

[This link](https://github.com/search?utf8=%E2%9C%93&q=php+sql+array)


___
Function list:
 - runable  : Check if class is runable
 - newSet   : Create a new data set
 - create   : Create a new data object
 - last     : Obtain latest inserted id
 - first    : Obtain first inserted id
 - total    : Obtain total of rows
 - delete   : Delete data object
 - read     : Return single data object by id
 - update   : Update a data object
 - all      : Return all data objects
 - allSets  : Return array of all data sets
 - where    : Returns array of all data objects matching criteria
 - .....

hf ;).

~~ <NAME> .nl
<commit_msg>read me<commit_after>StaticData
==========

Staticdata will just replace a SQL server, it uses files with objects to save your data.


#### Why would you use Static data?
Simple, to replace sql. Working on a local machine wit braggy sql support? Just not in the mood the set it up? Or just want an awsome super safe local file stored database? Which works great with PHP Safe's encryption? Then static Data is something for you!!

Now enough with the sales talk, it is a simple set up, the only thing you need is a chmodded file and the class will handle your data problems.
#### Uppoints
 - easy back ups
 - simple set ups
 - dynamic databases with easy extra fields
 - secure
 - no random sql server giberish / no extra servers needed

#### Downpoint
Wel above an x amount of files the system could get kinda slow..

#### Setting up:
include the staticData.php class, and wel yes.. call it: (we are working on building a bigger better and faster version with more valid php, so no composer support yet.)

    require_once('staticData.php');

When you did that well you are nearly ready to go.
Make shure you CHMODDED the class file and the folder you want to store your data sets.
The class does not automaticly create the folder you want to use (yet, i know it's a easy thing but we want to be shure the other things where fixed first).

(so just create the folder: eg: data/static (if you clone this, you will probably have it already)).. make shure it's chmodded (0755+)
Now just call it: and you wil have your object ready.

    $data = new data('static');
You can work with the data set by calling a public function around the given class object.

    $data->getAll();

Will return everything of the data group.

    Array
    (
        [1] => Array
            (
                [id] => 1
                [first-name] => Matti
                [sur-name] => <NAME>
                [age] => 19
                [country] => nl
                [Main language] => PHP
            )

    )

Just check the class file for the rest of the functions ATM (larger readmeh incomming!!)

___
Want it to entirely replace sql? You might want to check:

[This link](https://github.com/search?utf8=%E2%9C%93&q=php+sql+array)


___
Function list:
 - runable  : Check if class is runable
 - newSet   : Create a new data set
 - create   : Create a new data object
 - last     : Obtain latest inserted id
 - first    : Obtain first inserted id
 - total    : Obtain total of rows
 - delete   : Delete data object
 - read     : Return single data object by id
 - update   : Update a data object
 - all      : Return all data objects
 - allSets  : Return array of all data sets
 - where    : Returns array of all data objects matching criteria
 - export   : Creates an json export of your data set (inside '{yourfolder}/backups')
 - import   : Opens json file or reads json input and creates the data objects for it
 - .....

hf ;).

~~ <NAME> .nl

{'fraction_non_alphanumeric': 0.07388557388557389, 'fraction_numerical': 0.004563004563004563, 'mean_word_length': 2.771674387822634, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, 'https://': 2, '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': '6898522', 'n_tokens_mistral': 1569, 'n_tokens_neox': 1509, 'n_words': 841}