Skip to content

Commit b18b5a4

Browse files
authored
Merge pull request #1 from zecdev/statistical-analysis
In depth Statistical analysis of impact of transparent data
2 parents 92bea1e + 398e362 commit b18b5a4

46 files changed

Lines changed: 3665 additions & 2903 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
1. Run command '...'
15+
2. With parameters '...'
16+
3. See error
17+
18+
**Expected behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Environment:**
22+
- OS: [e.g. Ubuntu 22.04]
23+
- Rust version: [e.g. 1.75.0]
24+
- Python version: [e.g. 3.10]
25+
- Zebrad version: [e.g. 1.5.0]
26+
- Lightwalletd version: [e.g. 0.4.14]
27+
28+
**Additional context**
29+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is.
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/workflows/python-ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install dependencies
22+
working-directory: ./visualization
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install flake8 black
27+
28+
- name: Lint with flake8
29+
working-directory: ./visualization
30+
run: |
31+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --filename visualize.py
32+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --filename visualize.py
33+
34+
- name: Check formatting with black
35+
working-directory: ./visualization
36+
run: black --check .

.github/workflows/rust-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
jobs:
2+
build:
3+
runs-on: ubuntu-latest
4+
5+
steps:
6+
- uses: actions/checkout@v3
7+
8+
- name: Install Rust
9+
uses: actions-rs/toolchain@v1
10+
with:
11+
toolchain: stable
12+
override: true
13+
14+
- name: Install protobuf compiler
15+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
16+
17+
- name: Fetch proto files
18+
run: ./scripts/fetch_protos.sh
19+
20+
- name: Build
21+
working-directory: ./analyzer
22+
run: cargo build --release --verbose
23+
24+
- name: Run tests
25+
working-directory: ./analyzer
26+
run: cargo test --verbose

.gitignore

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
1-
/target
2-
results.csv
1+
# Rust
2+
/analyzer/target/
3+
/analyzer/Cargo.lock
4+
**/*.rs.bk
5+
target/
6+
# Proto files
7+
/analyzer/proto/*.proto
8+
9+
# Python
10+
__pycache__/
11+
*.py[cod]
12+
*$py.class
13+
.Python
14+
venv/
15+
env/
16+
*.egg-info/
17+
18+
# Results
19+
/results/*
20+
!/results/.gitkeep
21+
!/results/README.md
22+
23+
# IDE
24+
.vscode/
25+
.idea/
26+
*.swp
27+
*.swo
28+
*~
29+
30+
# OS
31+
.DS_Store
32+
Thumbs.db
33+
34+
# Build artifacts
35+
*.so
36+
*.dylib
37+
*.dll
38+
39+
# Logs
40+
*.log

0 commit comments

Comments
 (0)