<commit_before># DBSS 
 a luajit client for ssdb 
make use of ssdb cpp api
src/DBSS.cc is a C wrapper of cpp api
DB.lua is a ffi wrapper for DBSS.cc

#INSTALL
first make sure you have cmake
then
1. BUILD
run
./build.sh
will make build dir in current dir

2. COPY lib file and DB.lua to your project2. 
the lib file located in build/release/lib/libDBSS.so, you should copy or to link it to your /usr/local/lib/ or any other proper directory
copy DB.lua to your project

3. in DB.lua make sure the libSSDB.so path is correct
default is 
ssdb = assert(ffi.load(LUA_SCRIPT_ROOT .. 'build/release/lib/libDBSS.so'),"load libDBSS.so failed")    
if copy to /usr/local/lib then
ssdb = assert(ffi.load("/usr/local/lib/libDBSS.so"),"load libDBSS failed")    

#USAGE
edit config.lua set ssdb server ip and port,default is local host and 8888

then in your lua file:

DB = require("DB").DB

it would connect ssdb,and you r good to go

#EXAMPLE
DB = require("DB").DB

DB:set("key","value")
local ret = DB:get("key")

more usage please
see luatest.lua and DB.lua

#SEE ALSO
ssdb
https://github.com/ideawu/ssdb

luajit
http://luajit.org/

<commit_msg>readme update<commit_after># DBSS 
 a luajit client for ssdb 
make use of ssdb cpp api
src/DBSS.cc is a C wrapper of cpp api
DB.lua is a ffi wrapper for DBSS.cc

#INSTALL
first make sure you have cmake
then
1. BUILD
run
./build.sh
will make build dir in current dir

2. COPY lib file and DB.lua to your project2. 
the lib file located in build/release/lib/libDBSS.so, you should copy or to link it to your /usr/local/lib/ or any other proper directory
copy DB.lua to your project

3. in DB.lua make sure the libSSDB.so path is correct
default is 
        ssdb = assert(ffi.load(LUA_SCRIPT_ROOT .. 'build/release/lib/libDBSS.so'),"load libDBSS.so failed")    
if copy to /usr/local/lib then
        ssdb = assert(ffi.load("/usr/local/lib/libDBSS.so"),"load libDBSS failed")    

#USAGE
edit config.lua set ssdb server ip and port,default is local host and 8888

then in your lua file:

        DB = require("DB").DB

it would connect ssdb,and you r good to go

#EXAMPLE

        DB = require("DB").DB

        DB:set("key","value")

        local ret = DB:get("key")

more usage please
see luatest.lua and DB.lua

#SEE ALSO
ssdb
https://github.com/ideawu/ssdb

luajit
http://luajit.org/


{'fraction_non_alphanumeric': 0.0963855421686747, 'fraction_numerical': 0.0068846815834767644, 'mean_word_length': 3.3055555555555554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4371939', 'n_tokens_mistral': 841, 'n_tokens_neox': 820, 'n_words': 317}