Skip to content

Commit afd9a26

Browse files
committed
✨ πŸš€ ✨ [Project] CFPQ_Data 2.0.0
1 parent 67239c8 commit afd9a26

File tree

126 files changed

+7050
-2308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+7050
-2308
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
⚠ To suggest a new graph, you must fill in all the fields in the triangle brackets(``<>``) ⚠
2+
---
3+
# About the new graph
4+
5+
## Info
6+
| | |
7+
|---|---|
8+
| Full Name | ``<Specify the full name of the graph>`` |
9+
| Version | ``<Current version of CFPQ_Data>`` |
10+
| Origin | [link](``<Link to download the graph>``) |
11+
12+
## CSV File Structure
13+
14+
| Column Number | Column Type | Column Description |
15+
|:---:|:---:|---|
16+
| 1 | int | The tail of the edge |
17+
| 2 | int | The head of the edge |
18+
| 3 | str | The label of the edge |
19+
20+
## Graph Statistics
21+
| Num Nodes | Num Edges |
22+
|:---:|:---:|
23+
| ``<The number of nodes in the new graph>`` | ``<The number of edges in the new graph>`` |
24+
25+
## Edges Statistics
26+
| Edge Label | Num Edge Label |
27+
|---:|---:|
28+
| ``<The type of the edge label of the new graph >`` | ``<The number of edges in the new graph of this type>`` |

β€Ž.github/workflows/coverage.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
run: |
2121
python -m pip install --upgrade pip wheel setuptools
2222
python -m pip install -r requirements.txt
23+
python -m pip install -r requirements/tests.txt
2324
python -m pip install .
2425
python -m pip list
2526

β€Ž.github/workflows/lint.ymlβ€Ž

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@ jobs:
1616
with:
1717
python-version: ${{ matrix.python-version }}
1818

19-
- name: Install packages
20-
run: |
21-
python -m pip install --upgrade pip wheel setuptools
22-
python -m pip install -r requirements/developer.txt
23-
python -m pip install .
24-
python -m pip list
25-
2619
- name: Install pre-commit
2720
run: |
21+
python -m pip install pre-commit==2.15.0
2822
pre-commit install
2923
30-
- name: Run black
24+
- name: Run pre-commit
3125
run: |
3226
pre-commit run --all-files --color always --verbose --show-diff-on-failure

β€Ž.github/workflows/tests.ymlβ€Ž

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
macos-latest,
1313
windows-latest,
1414
]
15-
python-version: [ 3.7, 3.8, 3.9 ]
15+
python-version: [ 3.8, 3.9 ]
1616
steps:
1717
- uses: actions/checkout@v2
1818

@@ -25,28 +25,10 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip wheel setuptools
2727
python -m pip install -r requirements.txt
28+
python -m pip install -r requirements/tests.txt
2829
python -m pip install .
2930
python -m pip list
3031
3132
- name: Test CFPQ_Data
3233
run: |
3334
pytest --doctest-modules -vv -s cfpq_data tests
34-
35-
# Only supported on linux platform
36-
docker:
37-
runs-on: ubuntu-latest
38-
39-
steps:
40-
- uses: actions/checkout@v2
41-
42-
- name: Build Docker image
43-
id: docker_build
44-
uses: docker/build-push-action@v2
45-
with:
46-
tags: cfpq_data:latest
47-
48-
- name: Run tests inside Docker
49-
uses: addnab/docker-run-action@v3
50-
with:
51-
image: cfpq_data:latest
52-
run: python3 -m pytest --doctest-modules -vv -s cfpq_data tests

β€ŽDockerfileβ€Ž

Lines changed: 0 additions & 6 deletions
This file was deleted.

β€Žcfpq_data/__init__.pyβ€Ž

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
experimental analysis of context-free path querying algorithms
88
"""
99

10-
__version__ = "1.0.2"
11-
1210
import cfpq_data.config
1311
from cfpq_data.config import *
1412

13+
__version__ = VERSION
14+
1515
import cfpq_data.dataset
1616
from cfpq_data.dataset import *
1717

@@ -20,3 +20,11 @@
2020

2121
import cfpq_data.grammars
2222
from cfpq_data.grammars import *
23+
24+
import logging
25+
26+
logging.basicConfig(
27+
level=logging.INFO,
28+
format="[%(asctime)s]>%(levelname)s>%(message)s",
29+
datefmt="%Y-%m-%d %H:%M:%S",
30+
)

β€Žcfpq_data/config.pyβ€Ž

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
from pathlib import Path
1+
import pathlib
22

33
__all__ = [
4-
"MAIN_FOLDER",
5-
"AWS_ACCESS_KEY_ID",
6-
"AWS_SECRET_ACCESS_KEY",
7-
"BUCKET_NAME",
4+
"VERSION",
5+
"ROOT",
6+
"DATA",
87
]
98

10-
MAIN_FOLDER = Path(__file__).parent
9+
VERSION = "2.0.0"
1110

12-
AWS_ACCESS_KEY_ID = "AKIA326NG25W2XT6TBAZ"
13-
AWS_SECRET_ACCESS_KEY = "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"
14-
15-
BUCKET_NAME = "cfpq-data"
11+
ROOT = pathlib.Path(__file__).parent
12+
DATA = ROOT / "data"

β€Žcfpq_data/dataset.pyβ€Ž

Lines changed: 0 additions & 206 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from cfpq_data.dataset.data import *

0 commit comments

Comments
Β (0)