Skip to content

Commit 985e55e

Browse files
committed
refactor Source/ to src/
1 parent d62e238 commit 985e55e

18 files changed

+17
-11
lines changed

Experiments/Experiments.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using Distributed
1616
@everywhere using WeakRefStrings
1717

1818

19-
@everywhere include("../Source/CardinalityWithColors.jl")
19+
@everywhere include("../src/CardinalityWithColors.jl")
2020
@everywhere include("utils.jl")
2121
@everywhere include("load_datasets.jl")
2222
include("load_querysets.jl")

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ add_labeled_edge!(d, (1, 2), 2)
7474
update_node_labels!(d, 2, [3,4])
7575
```
7676

77-
Functions to convert graph files formatted like [G-Care](https://github.com/yspark-dblab/gcare) or [In-Memory Subgraph Matching](https://github.com/RapidsAtHKUST/SubgraphMatching) are also included in `Source/Datasets.jl`:
77+
Functions to convert graph files formatted like [G-Care](https://github.com/yspark-dblab/gcare) or [In-Memory Subgraph Matching](https://github.com/RapidsAtHKUST/SubgraphMatching) are also included in `src/Datasets.jl`:
7878
```julia
7979
# convert a .txt file (following G-Care format) into a PropertyGraph
8080
d1 = load_dataset("data.txt")
@@ -118,7 +118,7 @@ The resulting cardinality will be a singular `Float64` value.
118118

119119
Optional parameters for the calculation can be changed such as the timeout, but more information can be found in the code documentation.
120120

121-
The `load_true_cardinality` function from `Source/Datasets.jl` also obtains the cardinality results from a given cardinality file (where the only element in the file is a singular cardinality value):
121+
The `load_true_cardinality` function from `src/Datasets.jl` also obtains the cardinality results from a given cardinality file (where the only element in the file is a singular cardinality value):
122122
```julia
123123
exact_cardinality = load_true_cardinality("cardinality.txt")
124124
```
@@ -143,4 +143,4 @@ The bash script `run_submitted_experiments.sh` in the `Experiments` folder is al
143143
The script can be called from the main directory:
144144
```
145145
$ Experiments/run_submitted_experiments.sh
146-
```
146+
```

general-testing.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"metadata": {},
77
"outputs": [],
88
"source": [
9-
"include(\"Source/QuasiStableCardinalityEstimator.jl\")\n",
9+
"include(\"src/QuasiStableCardinalityEstimator.jl\")\n",
1010
"using Distributions\n",
1111
"using DataStructures: counter, Dict, Set, Vector, inc!\n",
1212
"using Plots"
File renamed without changes.
File renamed without changes.
File renamed without changes.

Source/Datasets.jl src/Datasets.jl

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Source/README.md src/README.md

File renamed without changes.
File renamed without changes.

Source/Utils.jl src/Utils.jl

File renamed without changes.

src/qColoringCardinality.jl

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""
2+
Placeholder for a short summary about qColoringCardinality.
3+
"""
4+
module qColoringCardinality
5+
6+
end # module

test/debugaids.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ using DataStructures: counter, Dict, Set, Vector, inc!
55
using Test
66
using Graphs
77
using AutoHashEquals
8-
include("../Source/datasets.jl")
9-
include("../Source/QuasiStableCardinalityEstimator.jl")
8+
include("../src/datasets.jl")
9+
include("../src/QuasiStableCardinalityEstimator.jl")
1010

1111
first_bool_path::BoolPath = [true, true]
1212
copy_bool_path::BoolPath = [true, true]
@@ -35,4 +35,4 @@ second_struct = StringStorer(copy_string)
3535
string_dict::Dict{StringStorer, Float64} = Dict()
3636
string_dict[first_struct] = 1
3737
string_dict[second_struct] = 1
38-
println(string_dict)
38+
println(string_dict)

test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Distributions
33
using DataStructures: counter, Dict, Set, Vector, inc!
44
using Test
55
using Graphs
6-
include("../Source/CardinalityWithColors.jl")
6+
include("../src/CardinalityWithColors.jl")
77

88

99
# run subtests

test/samplingtests.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include("../Source/QuasiStableCardinalityEstimator.jl")
1+
include("../src/QuasiStableCardinalityEstimator.jl")
22
using Distributions
33
using DataStructures: counter, Dict, Set, Vector, inc!
44

@@ -28,4 +28,4 @@ using Graphs
2828
@test path_and_bounds[2][3] == 6
2929
end
3030
end
31-
end
31+
end

0 commit comments

Comments
 (0)