YosiSF / EinsteinDB

In a nutshell, EinsteinDB is a persistent indexing scheme based off of LSH-KVX that exploits the distinct merits of hash index and B+-Tree index to support range scan and avoids long NVM writes for maintaining consistency; thus improving on LSH’s performance guarantees for skewed data and adopts ordered-write consistency to ensure crash consistency, while retaining the same storage and query overhead.

Home Page:http://www.einsteindb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breaking down at calling superpath with undefined scope

CavHack opened this issue · comments

Write a shell script that gets rid of duplicates in a root branch or leaf of

github.com/YosiSF/EinsteinDB

#!/bin/bash

git clone https://github.com/YosiSF/EinsteinDB

cd EinsteinDB

git checkout root

git branch -D leaf

git checkout -b leaf

git branch -D master

git checkout -b master

git remote add origin https://github.com/YosiSF/EinsteinDB.git

git push -u origin master

git push -u origin leaf

#!fix go mod tidy

go mod tidy

#!check if there are any duplicates

if git ls-files -s | uniq -d >/dev/null; then
echo "Duplicate files found!"
exit 1
fi

echo "No duplicates found!"

exit 0

!#python init

import os

os.system("git clone https://github.com/YosiSF/EinsteinDB")
os.system("cd EinsteinDB")
os.system("git checkout root")
os.system("git branch -D leaf")
os.system("git checkout -b leaf")
os.system("git branch -D master")
os.system("git checkout -b master")
os.system('git remote add origin https://github.com/YosiSF/EinsteinDB.git')
os.system("git push -u origin master")
os.system("git push -u origin leaf")

#!fix go mod tidy

os.system("go mod tidy")

#!check if there are any duplicates

if os.system("git ls-files -s | uniq -d >/dev/null") == 1:
print("Duplicate files found!")
exit(1)

print("No duplicates found!")

exit(0)

!#check precompikation

if ! type go > /dev/null; then
echo "You need to install Go to run this script"
exit 1
fi

!#END

#!check compiler

if [ "$(go version | cut -d ' ' -f 3)" != "go1.13.4" ]; then
echo "You need to use Go 1.13.4 to compile this code"
exit 1
fi

!#rustc contig for this fokder

rustc +nightly --target wasm32-unknown-unknown -O -Z debug

!#GOOS=js GOARCH=wasm go build -o main.wasm

GOOS=js GOARCH=wasm go build -o main.wasm

!#wasm-gc main.wasm -o main.gc.wasm

wasm-gc main.wasm -o main.gc.wasm

!#go run

go run .

git ls-files -s | sort -k2,2 | uniq -f1 | cut -f2 | xargs -I{} git checkout -- {}