Graph Neural Network Library for PyTorch
1979 matches across 16 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | benchmark/citation/__init__.py | 1 | |
| LOW | benchmark/citation/__init__.py | 2 | |
| LOW | benchmark/citation/__init__.py | 2 | |
| LOW | benchmark/runtime/__init__.py | 1 | |
| LOW | benchmark/utils/__init__.py | 1 | |
| LOW | benchmark/utils/__init__.py | 2 | |
| LOW | benchmark/utils/__init__.py | 2 | |
| LOW | benchmark/utils/__init__.py | 3 | |
| LOW | benchmark/utils/__init__.py | 4 | |
| LOW | benchmark/utils/__init__.py | 5 | |
| LOW | benchmark/utils/__init__.py | 5 | |
| LOW | benchmark/utils/__init__.py | 6 | |
| LOW | benchmark/utils/utils.py | 19 | |
| LOW | benchmark/multi_gpu/training/training_benchmark_xpu.py | 5 | |
| LOW | benchmark/points/__init__.py | 1 | |
| LOW | benchmark/points/__init__.py | 2 | |
| LOW | benchmark/kernel/__init__.py | 1 | |
| LOW | benchmark/kernel/__init__.py | 2 | |
| LOW | test/testing/test_decorators.py | 7 | |
| LOW | test/testing/test_decorators.py | 13 | |
| LOW | test/testing/test_decorators.py | 19 | |
| LOW | graphgym/main.py | 4 | |
| LOW | graphgym/custom_graphgym/__init__.py | 1 | |
| LOW | graphgym/custom_graphgym/__init__.py | 2 | |
| LOW | graphgym/custom_graphgym/__init__.py | 3 | |
| LOW | graphgym/custom_graphgym/__init__.py | 4 | |
| LOW | graphgym/custom_graphgym/__init__.py | 5 | |
| LOW | graphgym/custom_graphgym/__init__.py | 6 | |
| LOW | graphgym/custom_graphgym/__init__.py | 7 | |
| LOW | graphgym/custom_graphgym/__init__.py | 8 | |
| LOW | graphgym/custom_graphgym/__init__.py | 9 | |
| LOW | graphgym/custom_graphgym/__init__.py | 10 | |
| LOW | graphgym/custom_graphgym/__init__.py | 11 | |
| LOW | graphgym/custom_graphgym/__init__.py | 12 | |
| LOW | graphgym/custom_graphgym/__init__.py | 13 | |
| LOW | graphgym/custom_graphgym/network/example.py | 5 | |
| LOW | torch_geometric/experimental.py | 9 | |
| LOW | torch_geometric/__init__.py | 6 | |
| LOW | torch_geometric/__init__.py | 6 | |
| LOW | torch_geometric/__init__.py | 7 | |
| LOW | torch_geometric/__init__.py | 7 | |
| LOW | torch_geometric/__init__.py | 11 | |
| LOW | torch_geometric/__init__.py | 12 | |
| LOW | torch_geometric/__init__.py | 12 | |
| LOW | torch_geometric/__init__.py | 13 | |
| LOW | torch_geometric/__init__.py | 13 | |
| LOW | torch_geometric/__init__.py | 13 | |
| LOW | torch_geometric/__init__.py | 14 | |
| LOW | torch_geometric/__init__.py | 15 | |
| LOW | torch_geometric/__init__.py | 15 | |
| LOW | torch_geometric/__init__.py | 15 | |
| LOW | torch_geometric/__init__.py | 27 | |
| LOW | torch_geometric/__init__.py | 27 | |
| LOW | torch_geometric/__init__.py | 27 | |
| LOW | torch_geometric/config_store.py | 23 | |
| LOW | torch_geometric/typing.py | 166 | |
| LOW | torch_geometric/typing.py | 311 | |
| LOW | torch_geometric/visualization/__init__.py | 3 | |
| LOW | torch_geometric/visualization/__init__.py | 3 | |
| LOW | torch_geometric/visualization/__init__.py | 4 | |
| 820 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | benchmark/utils/utils.py | 39 | def get_dataset_with_transformation(name, root, use_sparse_tensor=False, |
| LOW | benchmark/kernel/train_eval.py | 20 | def cross_validation_with_val_set(dataset, model, folds, epochs, batch_size, |
| LOW | test/test_warnings.py | 15 | def test_no_warn_if_compiling(_): |
| LOW | test/test_onnx.py | 32 | def test_safe_onnx_export_ci_resilient() -> None: |
| LOW | test/test_onnx.py | 62 | def test_safe_onnx_export_success() -> None: |
| LOW | test/test_onnx.py | 107 | def test_safe_onnx_export_with_skip_on_error() -> None: |
| LOW | test/test_onnx.py | 134 | def test_serde_error_patterns() -> None: |
| LOW | test/test_onnx.py | 173 | def test_non_serde_error_reraise() -> None: |
| LOW | test/test_onnx.py | 303 | def test_pytest_environment_detection() -> None: |
| LOW | test/test_config_mixin.py | 116 | def test_config_mixin_compound() -> None: |
| LOW | test/test_edge_index.py | 1375 | def test_compile_create_edge_index(): |
| LOW | test/test_inspector.py | 102 | def test_get_params_from_method_call() -> None: |
| LOW | test/visualization/test_graph_visualization.py | 12 | def test_visualize_graph_via_graphviz(tmp_path, backend): |
| LOW | test/visualization/test_graph_visualization.py | 26 | def test_visualize_graph_via_graphviz_with_node_labels(tmp_path, backend): |
| LOW | test/visualization/test_graph_visualization.py | 41 | def test_visualize_graph_via_networkx(tmp_path, backend): |
| LOW | test/llm/conftest.py | 8 | def pytest_collection_modifyitems(items): |
| LOW | test/llm/test_rag_loader.py | 97 | def test_initialization_basic(self): |
| LOW | test/llm/test_rag_loader.py | 108 | def test_initialization_with_all_params(self): |
| LOW | test/llm/test_rag_loader.py | 140 | def test_basic_query_without_vector_retriever(self): |
| LOW | test/llm/test_rag_loader.py | 156 | def test_query_with_vector_retriever(self): |
| LOW | test/llm/test_rag_loader.py | 177 | def test_query_with_subgraph_filter(self): |
| LOW | test/llm/test_rag_loader.py | 204 | def test_rag_loader_integration(tmp_path): |
| LOW | test/llm/test_large_graph_indexer.py | 130 | def _sorted_tensors_are_close(tensor1, tensor2): |
| LOW | test/llm/test_txt2qa.py | 67 | def test_route_after_validation_continue(self): |
| LOW | test/llm/test_txt2qa.py | 73 | def test_route_after_validation_feedback(self): |
| LOW | test/llm/test_txt2qa.py | 95 | def test_generate_single_query_nim(tmp_path): |
| LOW | test/llm/utils/test_rag_backend_utils.py | 101 | def create_mock_graph_and_triples(): |
| LOW | test/llm/utils/test_rag_backend_utils.py | 121 | def test_apply_retrieval_via_pcst_isolated_node(): |
| LOW | test/llm/utils/test_rag_backend_utils.py | 171 | def test_create_graph_basic_functionality(self): |
| LOW | test/llm/utils/test_rag_backend_utils.py | 192 | def test_create_graph_empty_triples(self): |
| LOW | test/llm/utils/test_rag_backend_utils.py | 219 | def test_create_backend_data_load(self): |
| LOW | test/llm/utils/test_rag_feature_store.py | 43 | def test_retrieve_seed_nodes_single_query(self): |
| LOW | test/llm/utils/test_rag_feature_store.py | 78 | def test_retrieve_seed_nodes_multiple_queries(self): |
| LOW | test/llm/utils/test_rag_feature_store.py | 112 | def test_load_subgraph_valid_sample(self, induced): |
| LOW | test/llm/utils/test_rag_graph_store.py | 18 | def test_sample_subgraph_with_valid_tensor_input(): |
| LOW | test/llm/models/test_glem.py | 10 | def test_deal_nan_tensor_replaces_nans(): |
| LOW | test/llm/models/test_glem.py | 20 | def test_deal_nan_non_tensor_passthrough(): |
| LOW | test/llm/models/test_glem.py | 26 | def test_deal_nan_tensor_dtypes(dtype): |
| LOW | test/llm/models/test_glem.py | 46 | def test_deal_nan_is_non_mutating(): |
| LOW | test/llm/models/test_glem.py | 76 | def test_glem_bert_tiny_branch(monkeypatch): |
| LOW | test/llm/models/test_glem.py | 101 | def test_glem_auto_model_branch(monkeypatch): |
| LOW | test/llm/models/test_llm.py | 127 | def test_llm_variable_lengths(dummy_llm): |
| LOW | test/llm/models/test_sentence_transformer.py | 17 | def test_sentence_transformer(batch_size, pooling_strategy, device, verbose): |
| LOW | test/llm/models/test_g_retriever.py | 63 | def test_g_retriever_many_tokens() -> None: |
| LOW | test/llm/models/test_g_retriever.py | 160 | def test_gretriever_prefix_embedding_injection(batch_size): |
| LOW | test/llm/models/test_txt2kg.py | 22 | def test_parse_n_check_triples_formats(): |
| LOW | test/llm/models/test_txt2kg.py | 29 | def test_chunk_text_simple_sentence(): |
| LOW | test/llm/models/test_txt2kg.py | 44 | def test_local_lm_integration(monkeypatch): |
| LOW | test/llm/models/test_txt2kg.py | 83 | def test_merge_triples_deterministically_basic(): |
| LOW | test/llm/models/test_txt2kg.py | 101 | def test_merge_triples_deterministically_unicode_and_nonstring(): |
| LOW | test/llm/models/test_txt2kg.py | 119 | def test_merge_triples_deterministically_empty(): |
| LOW | test/llm/models/test_txt2kg.py | 127 | def test_merge_triples_deterministically_singleton(): |
| LOW | test/llm/models/test_txt2kg.py | 135 | def test_chunk_to_triples_str_cloud(monkeypatch): |
| LOW | test/llm/models/test_txt2kg.py | 191 | def test_extract_relevant_triples_cloud(monkeypatch): |
| LOW | test/llm/models/test_txt2kg.py | 202 | def test_multiproc_helper_success(monkeypatch): |
| LOW | test/llm/models/test_txt2kg.py | 233 | def test_multiproc_helper_retry(monkeypatch): |
| LOW | test/llm/models/test_txt2kg.py | 292 | def test_add_doc_empty_text_cpu(kg_cpu): |
| LOW | test/llm/models/test_txt2kg.py | 308 | def test_add_doc_nonempty_text_placeholder(kg_cpu, monkeypatch): |
| LOW | test/explain/conftest.py | 139 | def _check_explanation_hetero( |
| LOW | test/explain/test_explanation.py | 13 | def create_random_explanation( |
| 585 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | benchmark/citation/train_eval.py | 43 | |
| LOW | benchmark/citation/train_eval.py | 121 | |
| LOW | benchmark/training/training_benchmark.py | 98 | |
| LOW | benchmark/loader/neighbor_loader.py | 16 | |
| LOW | benchmark/points/train_eval.py | 58 | |
| LOW | benchmark/inference/inference_benchmark.py | 44 | |
| LOW | benchmark/kernel/main_performance.py | 75 | |
| LOW | benchmark/kernel/main_performance.py | 117 | |
| LOW | benchmark/kernel/train_eval.py | 20 | |
| LOW | test/test_onnx.py | 32 | |
| LOW | test/test_onnx.py | 62 | |
| LOW | test/test_onnx.py | 107 | |
| LOW | test/test_onnx.py | 134 | |
| LOW | test/test_onnx.py | 173 | |
| LOW | test/test_onnx.py | 197 | |
| LOW | test/test_onnx.py | 233 | |
| LOW | test/test_onnx.py | 272 | |
| LOW | test/test_onnx.py | 303 | |
| LOW | test/test_onnx.py | 335 | |
| LOW | test/test_onnx.py | 385 | |
| LOW | test/explain/conftest.py | 106 | |
| LOW | test/explain/conftest.py | 138 | |
| LOW | test/explain/conftest.py | 86 | |
| LOW | test/explain/conftest.py | 107 | |
| LOW | test/explain/conftest.py | 139 | |
| LOW | test/explain/conftest.py | 289 | |
| LOW | test/explain/test_hetero_explanation.py | 13 | |
| LOW | test/explain/algorithm/test_captum.py | 65 | |
| LOW | test/explain/algorithm/test_attention_explainer.py | 69 | |
| LOW | test/explain/algorithm/test_attention_explainer.py | 145 | |
| LOW | test/explain/algorithm/test_graphmask_explainer.py | 28 | |
| LOW | test/explain/algorithm/test_gnn_explainer.py | 38 | |
| LOW | test/explain/algorithm/test_captum_hetero.py | 35 | |
| LOW | test/explain/algorithm/test_captum_explainer.py | 54 | |
| LOW | test/distributed/test_dist_neighbor_loader.py | 82 | |
| LOW | test/utils/conftest.py | 35 | |
| LOW | test/sampler/test_sampler_neighbor_sampler.py | 63 | |
| LOW | graphgym/configs_gen.py | 90 | |
| LOW | graphgym/configs_gen.py | 124 | |
| LOW | graphgym/configs_gen.py | 166 | |
| LOW | torch_geometric/experimental.py | 95 | |
| LOW | torch_geometric/experimental.py | 100 | |
| LOW | torch_geometric/experimental.py | 115 | |
| LOW | torch_geometric/index.py | 696 | |
| LOW | torch_geometric/edge_index.py | 1477 | |
| LOW | torch_geometric/edge_index.py | 1849 | |
| LOW | torch_geometric/inspector.py | 514 | |
| LOW | torch_geometric/inspector.py | 207 | |
| LOW | torch_geometric/inspector.py | 336 | |
| LOW | torch_geometric/config_store.py | 190 | |
| LOW | torch_geometric/config_store.py | 31 | |
| LOW | torch_geometric/config_store.py | 119 | |
| LOW | torch_geometric/config_store.py | 36 | |
| LOW | torch_geometric/config_store.py | 124 | |
| LOW | torch_geometric/hash_tensor.py | 39 | |
| LOW | torch_geometric/llm/models/qa_gen.py | 1384 | |
| LOW | torch_geometric/llm/models/qa_gen.py | 1715 | |
| LOW | torch_geometric/llm/models/qa_gen.py | 2239 | |
| LOW | torch_geometric/llm/models/qa_gen.py | 2350 | |
| LOW | torch_geometric/llm/models/qa_gen.py | 2414 | |
| 183 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | torch_geometric/nn/attention/performer.py | 0 | forward pass. args: x (torch.tensor): node feature tensor :math:`\mathbf{x} \in \mathbb{r}^{b \times n \times f}`, with |
| HIGH | torch_geometric/nn/attention/polynormer.py | 0 | forward pass. args: x (torch.tensor): node feature tensor :math:`\mathbf{x} \in \mathbb{r}^{b \times n \times f}`, with |
| HIGH | torch_geometric/nn/attention/sgformer.py | 0 | forward pass. args: x (torch.tensor): node feature tensor :math:`\mathbf{x} \in \mathbb{r}^{b \times n \times f}`, with |
| HIGH | torch_geometric/nn/dense/dense_gat_conv.py | 0 | forward pass. args: x (torch.tensor): node feature tensor :math:`\mathbf{x} \in \mathbb{r}^{b \times n \times f}`, with |
| HIGH | torch_geometric/nn/dense/dense_gcn_conv.py | 0 | forward pass. args: x (torch.tensor): node feature tensor :math:`\mathbf{x} \in \mathbb{r}^{b \times n \times f}`, with |
| HIGH | torch_geometric/nn/dense/dense_gin_conv.py | 0 | forward pass. args: x (torch.tensor): node feature tensor :math:`\mathbf{x} \in \mathbb{r}^{b \times n \times f}`, with |
| HIGH | torch_geometric/nn/models/deep_graph_infomax.py | 0 | evaluates latent space quality via a logistic regression downstream task. |
| HIGH | torch_geometric/nn/models/node2vec.py | 0 | evaluates latent space quality via a logistic regression downstream task. |
| HIGH | torch_geometric/nn/models/metapath2vec.py | 0 | evaluates latent space quality via a logistic regression downstream task. |
| HIGH | torch_geometric/nn/norm/pair_norm.py | 0 | forward pass. args: x (torch.tensor): the source tensor. batch (torch.tensor, optional): the batch vector :math:`\mathbf |
| HIGH | torch_geometric/nn/norm/graph_size_norm.py | 0 | forward pass. args: x (torch.tensor): the source tensor. batch (torch.tensor, optional): the batch vector :math:`\mathbf |
| HIGH | torch_geometric/nn/norm/instance_norm.py | 0 | forward pass. args: x (torch.tensor): the source tensor. batch (torch.tensor, optional): the batch vector :math:`\mathbf |
| HIGH | torch_geometric/nn/norm/graph_norm.py | 0 | forward pass. args: x (torch.tensor): the source tensor. batch (torch.tensor, optional): the batch vector :math:`\mathbf |
| HIGH | torch_geometric/nn/norm/layer_norm.py | 0 | forward pass. args: x (torch.tensor): the source tensor. batch (torch.tensor, optional): the batch vector :math:`\mathbf |
| HIGH | torch_geometric/data/feature_store.py | 0 | to be implemented by :class:`featurestore` subclasses. |
| HIGH | torch_geometric/data/feature_store.py | 0 | to be implemented by :class:`featurestore` subclasses. |
| HIGH | torch_geometric/data/feature_store.py | 0 | to be implemented by :class:`featurestore` subclasses. |
| HIGH | torch_geometric/data/graph_store.py | 0 | to be implemented by :class:`graphstore` subclasses. |
| HIGH | torch_geometric/data/graph_store.py | 0 | to be implemented by :class:`graphstore` subclasses. |
| HIGH | torch_geometric/data/graph_store.py | 0 | to be implemented by :class:`graphstore` subclasses. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/llm/utils/test_rag_feature_store.py | 116 | # Create a mock SamplerOutput |
| MEDIUM | test/llm/models/test_glem.py | 27 | # Create a tensor with one NaN value |
| MEDIUM | test/explain/conftest.py | 268 | # Create a HeteroConv model |
| MEDIUM | test/explain/algorithm/test_attention_explainer.py | 44 | # Create a single BaseGNN that uses all three attention mechanisms |
| MEDIUM | test/explain/algorithm/test_attention_explainer.py | 105 | # Create a dictionary of attention-based convolutions for each edge |
| MEDIUM | test/explain/algorithm/test_attention_explainer.py | 122 | # Create the HeteroConv layer |
| MEDIUM | test/explain/algorithm/test_attention_explainer.py | 251 | # Create the hetero attention model |
| MEDIUM | test/explain/algorithm/test_attention_explainer.py | 254 | # Create the explainer |
| MEDIUM | test/explain/algorithm/test_attention_explainer.py | 290 | # Create the hetero conv attention model |
| MEDIUM | test/explain/algorithm/test_attention_explainer.py | 293 | # Create the explainer |
| MEDIUM | test/utils/test_negative_sampling.py | 33 | # Create a fully-connected graph: |
| MEDIUM | torch_geometric/llm/utils/vectorrag.py | 121 | # Create a new DocumentRetriever with the loaded data |
| MEDIUM | torch_geometric/nn/to_hetero_with_bases_transformer.py | 537 | # This method is used to split the output tensors into individual type-wise |
| MEDIUM | torch_geometric/nn/aggr/base.py | 47 | # Define the boundary indices for three sets: |
| MEDIUM | torch_geometric/datasets/web_qsp_dataset.py | 124 | # Create an iterator for each element's graph in the current split |
| MEDIUM | torch_geometric/datasets/ged_dataset.py | 208 | # Create a one-hot encoded feature matrix denoting the atom |
| MEDIUM | torch_geometric/data/remote_backend_utils.py | 1 | # This file defines a set of utilities for remote backends (backends that are |
| MEDIUM | torch_geometric/data/in_memory_dataset.py | 232 | # Create the on-disk dataset ========================================== |
| MEDIUM | torch_geometric/data/database.py | 307 | # Create the table (if it does not exist) by mapping the Python schema |
| MEDIUM | torch_geometric/data/hetero_data.py | 63 | # Create an edge type "(author, writes, paper)" and building the |
| MEDIUM | torch_geometric/data/lightning/datamodule.py | 127 | # Define a new `NeighborSampler` to be re-used across data loaders: |
| MEDIUM | examples/llm/txt2qa.py | 158 | # Create the graph |
| MEDIUM | examples/llm/g_retriever.py | 62 | # Create a dictionary mapping parameter names to their requires_grad status |
| MEDIUM | examples/llm/txt2qa_config/text_config_nim.yaml | 2 | # This file contains all the settings for the QA generation workflow |
| MEDIUM | examples/llm/txt2qa_config/text_config_vllm.yaml | 2 | # This file contains all the settings for the QA generation workflow |
| MEDIUM | examples/distributed/kuzu/papers_100M/train.py | 32 | # The below code sets up the remote backend of Kùzu for PyG. |
| MEDIUM | …d/graphlearn_for_pytorch/dist_train_sage_supervised.py | 126 | # Define the model and optimizer. |
| MEDIUM | examples/quiver/multi_gpu_quiver.py | 131 | # The below code enable Quiver for PyG. |
| MEDIUM | examples/quiver/single_gpu_quiver.py | 28 | # The below code enable Quiver for PyG. |
| MEDIUM | examples/pytorch_ignite/gin.py | 127 | # Create a tensorboard logger to write logs: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/nn/dense/test_linear.py | 274 | except Exception: |
| LOW | torch_geometric/device.py | 12 | except Exception: |
| LOW | torch_geometric/config_store.py | 19 | except Exception: |
| LOW | torch_geometric/config_store.py | 25 | except Exception: |
| LOW | torch_geometric/_onnx.py | 77 | except Exception as e: |
| LOW | torch_geometric/_onnx.py | 130 | except Exception: |
| LOW | torch_geometric/_onnx.py | 148 | except Exception: |
| LOW | torch_geometric/_onnx.py | 164 | except Exception: |
| LOW | torch_geometric/_onnx.py | 186 | except Exception: |
| LOW | torch_geometric/typing.py | 82 | except Exception: |
| LOW | torch_geometric/typing.py | 87 | except Exception: |
| LOW | torch_geometric/typing.py | 89 | except Exception as e: |
| LOW | torch_geometric/typing.py | 141 | except Exception as e: |
| LOW | torch_geometric/typing.py | 169 | except Exception as e: |
| LOW | torch_geometric/typing.py | 302 | except Exception: |
| LOW | torch_geometric/typing.py | 313 | except Exception: |
| LOW | torch_geometric/hash_tensor.py | 46 | except Exception: |
| LOW | torch_geometric/metrics/link_pred.py | 13 | except Exception: |
| LOW | torch_geometric/llm/models/qa_gen.py | 1154 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 1163 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 613 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 635 | except Exception: |
| LOW | torch_geometric/llm/models/qa_gen.py | 780 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 821 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 834 | except Exception: |
| LOW | torch_geometric/llm/models/qa_gen.py | 852 | except Exception as e2: |
| LOW | torch_geometric/llm/models/qa_gen.py | 1109 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 1344 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 1501 | except Exception: |
| LOW | torch_geometric/llm/models/qa_gen.py | 1551 | except Exception: |
| LOW | torch_geometric/llm/models/qa_gen.py | 1702 | except Exception: |
| LOW | torch_geometric/llm/models/qa_gen.py | 2753 | except Exception: |
| LOW | torch_geometric/llm/models/qa_gen.py | 2905 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3022 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3061 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3323 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3492 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3515 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3635 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3854 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3881 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 4201 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 4376 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3586 | except Exception as e: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3596 | except Exception as e1: |
| LOW | torch_geometric/llm/models/qa_gen.py | 2231 | except Exception: |
| LOW | torch_geometric/llm/models/qa_gen.py | 2369 | except Exception: |
| LOW | torch_geometric/llm/models/qa_gen.py | 3750 | except Exception as e: |
| LOW | torch_geometric/llm/models/txt2kg.py | 195 | except Exception as e: |
| LOW | torch_geometric/llm/models/txt2kg.py | 317 | except Exception: |
| LOW | torch_geometric/llm/models/txt2kg.py | 334 | except Exception: |
| LOW | …rch_geometric/explain/algorithm/graphmask_explainer.py | 410 | except Exception: |
| LOW | …rch_geometric/explain/algorithm/graphmask_explainer.py | 416 | except Exception: |
| LOW | torch_geometric/nn/sequential.py | 265 | except Exception as e: # pragma: no cover |
| LOW | torch_geometric/nn/conv/message_passing.py | 961 | except Exception as e: # pragma: no cover |
| LOW | torch_geometric/nn/conv/message_passing.py | 994 | except Exception as e: # pragma: no cover |
| LOW | torch_geometric/distributed/event_loop.py | 22 | except Exception as e: |
| LOW | torch_geometric/distributed/event_loop.py | 84 | except Exception as e: |
| MEDIUM | torch_geometric/distributed/event_loop.py | 19 | def on_done(*_): |
| LOW | torch_geometric/distributed/dist_neighbor_sampler.py | 392 | except Exception: |
| 34 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | test/test_config_store.py | 118 | assert (cfg.dataset.transform.NormalizeFeatures._target_.split('.')[-1] == |
| CRITICAL | test/test_config_store.py | 123 | assert (cfg.dataset.transform.AddSelfLoops._target_.split('.')[-1] == |
| CRITICAL | test/data/lightning/test_datamodule.py | 50 | self.trainer.datamodule.train_dataset._data.x.add_(1) |
| CRITICAL | test/data/lightning/test_datamodule.py | 177 | self.trainer.datamodule.data.x.add_(1) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/test_onnx.py | 67 | # Use comprehensive mocking to avoid any real ONNX calls |
| MEDIUM | test/test_onnx.py | 146 | # Use multiple patch targets to ensure comprehensive mocking |
| MEDIUM | test/test_onnx.py | 178 | # Use comprehensive mocking to prevent real ONNX calls |
| MEDIUM | torch_geometric/backend.py | 8 | # If set to `None`, will automatically decide whether to utilize |
| LOW | torch_geometric/llm/models/qa_gen.py | 2816 | # No hop contexts, just use top-level as-is |
| MEDIUM | torch_geometric/nn/sequential.py | 31 | r"""An extension of the :class:`torch.nn.Sequential` container in order to |
| LOW | torch_geometric/datasets/karate.py | 76 | # (we just use the first one). |
| MEDIUM | torch_geometric/datasets/medshapenet.py | 75 | r"""The absolute filepaths that must be present in order to skip |
| MEDIUM | torch_geometric/contrib/nn/models/rbcd_attack.py | 602 | <https://www.cs.cit.tum.de/daml/are-gnn-defenses-robust>`_ for details. |
| MEDIUM | torch_geometric/profile/profile.py | 49 | r"""A decorator to facilitate profiling a function, *e.g.*, obtaining |
| MEDIUM | torch_geometric/profile/profile.py | 145 | r"""A context decorator to facilitate timing a function, *e.g.*, obtaining |
| MEDIUM | torch_geometric/loader/node_loader.py | 274 | # f'best practices for PyG [{link}])') |
| MEDIUM | torch_geometric/loader/utils.py | 233 | # NOTE Here, we utilize `feature_store.multi_get` to give the feature store |
| MEDIUM | torch_geometric/loader/utils.py | 267 | # NOTE Here, we utilize `feature_store.multi_get` to give the feature store |
| LOW | torch_geometric/data/collate.py | 274 | # Other-wise, just return the list of values as it is. |
| MEDIUM | torch_geometric/data/dataset.py | 199 | r"""The absolute filepaths that must be present in order to skip |
| MEDIUM | torch_geometric/data/dataset.py | 211 | r"""The absolute filepaths that must be present in order to skip |
| LOW | examples/llm/txt2qa.py | 510 | # If file_path is not relative to input_dir, just use the stem |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/explain/algorithm/test_pg_explainer.py | 222 | # Check if the explanation is valid |
| LOW | test/explain/algorithm/test_pg_explainer.py | 371 | # Check if the explanation is valid |
| LOW | test/explain/algorithm/test_pg_explainer.py | 467 | # Check if the explanation is valid |
| LOW | test/loader/test_link_neighbor_loader.py | 284 | # Check if each seed edge has a different batch: |
| LOW | torch_geometric/llm/utils/backend_utils.py | 383 | ) # Check if pandas is installed |
| LOW | torch_geometric/llm/models/qa_gen.py | 3847 | # Check if segment overlaps with QA time range |
| LOW | torch_geometric/llm/models/qa_gen.py | 4174 | # Check if we have context_segments from processing |
| LOW | …rch_geometric/explain/algorithm/attention_explainer.py | 128 | # Check if all components appear in the module name in |
| LOW | …rch_geometric/explain/algorithm/attention_explainer.py | 180 | # Check if we collected any attention coefficients. |
| LOW | torch_geometric/datasets/tag_dataset.py | 368 | # Check if the .pt files already exist |
| LOW | torch_geometric/io/fs.py | 167 | # Open file has protocol stripped. |
| LOW | torch_geometric/utils/embedding.py | 97 | # Check if the outputs is a dictionary mapping node types to embeddings |
| LOW | torch_geometric/contrib/nn/models/rbcd_attack.py | 497 | # Check if middle point is root |
| LOW | examples/llm/txt2qa.py | 394 | # Check if file exists before removing |
| LOW | examples/llm/txt2qa.py | 531 | # Check if output file already exists (resume functionality) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/utils/test_scatter.py | 144 | # ================ |
| MEDIUM | test/utils/test_scatter.py | 153 | # ================ |
| MEDIUM | test/utils/test_segment.py | 58 | # ================ |
| MEDIUM | test/utils/test_segment.py | 63 | # ================ |
| MEDIUM | torch_geometric/graphgym/config.py | 321 | # =================================== |
| MEDIUM | torch_geometric/graphgym/config.py | 329 | # =================================== |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | torch_geometric/llm/models/qa_gen.py | 1390 | # Step 1: Clean markdown code blocks |
| LOW | torch_geometric/llm/models/qa_gen.py | 1395 | # Step 2: Try direct parsing first (fastest path) |
| LOW | torch_geometric/llm/models/qa_gen.py | 1406 | # Step 3: Find JSON array/object with bracket counting |
| LOW | torch_geometric/llm/models/qa_gen.py | 1470 | # Step 4: Last resort - old regex fallback |
| LOW | torch_geometric/llm/models/qa_gen.py | 2009 | # Step 1: Calculate exact (floating-point) values for each category |
| LOW | torch_geometric/llm/models/qa_gen.py | 2016 | # Step 2: Sort by fractional part descending (0.9, 0.9, 0.2) |
| LOW | torch_geometric/llm/models/qa_gen.py | 2021 | # Step 3: Assign floor values first (everyone gets their integer part) |
| LOW | torch_geometric/llm/models/qa_gen.py | 2027 | # Step 4: Distribute remaining items based on fractional parts |
| LOW | torch_geometric/llm/models/qa_gen.py | 2035 | # Step 5: Edge case - if still items left (e.g., rounding errors) |
| LOW | examples/quiver/single_gpu_quiver.py | 21 | # Step 1: Using Quiver's sampler |
| LOW | examples/quiver/single_gpu_quiver.py | 99 | # Step 2: Using Quiver's Feature |
| LOW | examples/quiver/single_gpu_quiver.py | 117 | # Step 3: Training the PyG Model with Quiver |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/utils/test_scatter.py | 141 | |
| LOW | test/sampler/test_sampler_neighbor_sampler.py | 521 | expected_output = SamplerOutput( |
| LOW | torch_geometric/nn/conv/meshcnn_conv.py | 401 | # Option 2 |
| LOW | torch_geometric/graphgym/config.py | 301 | # Auto match computational budget, match upper bound / lower bound |
| LOW | torch_geometric/graphgym/config.py | 321 | # =================================== |
| LOW | examples/tgn.py | 1 | # This code achieves a performance of around 96.60%. However, it is not |
| LOW | .github/workflows/testing.yml | 81 | "os": ["ubuntu-22.04", "macos-14", "windows-2022"], |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | torch_geometric/nn/models/gpse.py | 1009 | Calculates the average cosine similarity between predicted and true features on a batch of graphs. Args: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | torch_geometric/utils/geodesic.py | 29 | To install, run :obj:`pip install cython && pip install gdist`. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | torch_geometric/distributed/event_loop.py | 92 | def run_task(self, coro): |
| LOW | examples/llm/txt2qa.py | 516 | async def process_data(self, data: str, data_id: str, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | torch_geometric/io/fs.py | 145 | # If the source path points to a directory, we need to make sure to |