Showing 369 of 369 total issues
Function __init__
has 18 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 18 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
File tensorflow_embedder.py
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""Abstract Keras Model wrapper for embedding models."""
from typing import Dict, Sequence, Tuple, Any
import numpy as np
import pandas as pd
Function __init__
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function plot_node_ontologies
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_node_ontologies(
Function plot_approximated_closeness_centrality
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_approximated_closeness_centrality(
Function __init__
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function plot_node_squares
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_node_squares(
Function plot_node_degrees
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_node_degrees(
Function plot_approximated_harmonic_centrality
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_approximated_harmonic_centrality(
Function plot_node_triangles
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_node_triangles(
Function __init__
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function transform
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
Open
def transform(
self,
graph: Union[Graph, np.ndarray, List[List[str]], List[List[int]]],
node_types: Optional[
Union[Graph, List[Optional[List[str]]], List[Optional[List[int]]]]
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function transform
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
Open
def transform(
self,
graph: Graph,
edge_features: Optional[Union[np.ndarray, List[np.ndarray]]] = None,
behaviour_for_unknown_edge_labels: Optional[str] = None,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _plot_positive_and_negative_edges_metric
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _plot_positive_and_negative_edges_metric(
Function __init__
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function plot_edge_types
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_edge_types(
Function _prepare_evaluation
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _prepare_evaluation(