Skip to content

Commit 9ba5ecf

Browse files
committed
init
1 parent 27c2fc7 commit 9ba5ecf

22 files changed

Lines changed: 4513 additions & 0 deletions

.devcontainer/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM tiagopeixoto/graph-tool:latest
2+
3+
RUN pacman -Syu --noconfirm && \
4+
pacman -S --noconfirm \
5+
git \
6+
wget \
7+
curl \
8+
tree \
9+
python-pip \
10+
base-devel
11+
12+
RUN curl -sSL https://install.python-poetry.org | python3 -
13+
14+
ENV PATH="/root/.local/bin:$PATH"
15+
ENV PYTHONPATH="$PYTHONPATH:/usr/local/lib/python3.12/site-packages:/usr/lib/python3.12/site-packages"
16+
17+
RUN curl -sS https://starship.rs/install.sh | sh -s -- -y \
18+
&& echo 'eval "$(starship init bash)"' >> /root/.bashrc \
19+
&& mkdir -p /workspace
20+
21+
WORKDIR /workspace
22+
COPY pyproject.toml poetry.lock ./
23+
RUN poetry install

.devcontainer/devcontainer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "graph-tool",
3+
// "image": "tiagopeixoto/graph-tool",
4+
"build": {
5+
"dockerfile": "Dockerfile",
6+
"context": ".."
7+
},
8+
"postCreateCommand": "poetry install",
9+
"remoteUser": "root",
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"ms-python.python",
14+
"njpwerner.autodocstring",
15+
"ms-toolsai.jupyter",
16+
"ms-vscode-remote.remote-containers",
17+
"quarto.quarto",
18+
"ms-azuretools.vscode-docker",
19+
"mechatroner.rainbow-csv"
20+
]
21+
}
22+
}
23+
}

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
DS_Store
12
# Byte-compiled / optimized / DLL files
23
__pycache__/
34
*.py[cod]

icsspy/.DS_Store

6 KB
Binary file not shown.

icsspy/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# from .paths import load_data, load_hansard
2+
from .style import set_style
3+
# from .utils import initialize_logger, load_api_key, run_in_conda, set_torch_device
4+
5+
# define __all__ to specify what is exported when import * is used
6+
__all__ = [
7+
# "initialize_logger",
8+
# "load_api_key",
9+
# "set_torch_device",
10+
# "run_in_conda",
11+
# "load_data",
12+
"set_style",
13+
# "load_hansard",
14+
]

icsspy/data/enron/enron_graph.gt

25.2 KB
Binary file not shown.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
figure.figsize: 7.2, 4.8
2+
figure.dpi: 100.0
3+
figure.facecolor: white
4+
figure.constrained_layout.use: True
5+
text.color: .15
6+
axes.labelcolor: .15
7+
legend.frameon: True
8+
legend.numpoints: 1
9+
legend.scatterpoints: 1
10+
xtick.direction: out
11+
ytick.direction: out
12+
xtick.color: .15
13+
ytick.color: .15
14+
axes.axisbelow: True
15+
grid.linestyle: -
16+
lines.solid_capstyle: round
17+
18+
axes.labelsize: 14
19+
axes.titlesize: 16
20+
xtick.labelsize: 14
21+
ytick.labelsize: 14
22+
legend.fontsize: 12
23+
24+
axes.grid: True
25+
axes.facecolor: white
26+
axes.edgecolor: black
27+
axes.linewidth: 0
28+
grid.color: eeeeee
29+
image.cmap: viridis
30+
xtick.major.size: 0
31+
ytick.major.size: 0
32+
xtick.minor.size: 0
33+
ytick.minor.size: 0
34+
35+
36+
axes.prop_cycle: cycler('color', ['d11149', '1a8fe3', '1ccd6a', 'e6c229', '6610f2', 'f17105', '65e5f3', 'bd8ad5', 'b16b57'])

0 commit comments

Comments
 (0)