<commit_before>#!/usr/bin/env python
import os
import sys
import subprocess
import warnings

#SGDIR = os.path.realpath(os.path.dirname(sys.argv[0]) + "/..")

def test_notebooks():
    # Jupyter notebooks to test:
    notebook_paths = ["demos/node-classification/gat/", "demos/node-classification/graphsage/", 
                      "demos/node-classification/node2vec/", "demos/node-classification/sgc/", "demos/link-prediction/graphsage/", "demos/link-prediction/hinsage/", 
                      "demos/link-prediction/random-walks/", "demos/calibration", "demos/embeddings","demos/ensembles"]

    num_errors = 0
    for nb_path in notebook_paths:
        cmd_line = f"treon . --threads=1"

        print(f"\033[1;33;40m Running {nb_path}\033[0m")
<commit_msg>script to test the demos using treon.<commit_after>#!/usr/bin/env python
import os
import sys
import subprocess
import warnings

SGDIR = os.path.realpath(os.path.dirname(sys.argv[0]) + "/..")

def test_notebooks():
    # Jupyter notebooks to test:
    notebook_paths = ["demos/node-classification/gat/", "demos/node-classification/graphsage/", 
                      "demos/node-classification/node2vec/", "demos/node-classification/sgc/", "demos/link-prediction/graphsage/", "demos/link-prediction/hinsage/", 
                      "demos/link-prediction/random-walks/", "demos/calibration", "demos/embeddings","demos/ensembles"]

    num_errors = 0
    for nb_path in notebook_paths:
        cmd_line = f"treon . --threads=1"

        print(f"\033[1;33;40m Running {nb_path}\033[0m")

{'fraction_non_alphanumeric': 0.15106520335700452, 'fraction_numerical': 0.02065848934796643, 'mean_word_length': 3.258241758241758, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4401396', 'n_tokens_mistral': 572, 'n_tokens_neox': 531, 'n_words': 86}