Repository Analysis

unifyai/ivy

Convert Machine Learning Code Between Frameworks

10.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of unifyai/ivy, a Python project with 14,172 GitHub stars. SynthScan v2.0 examined 486,056 lines of code across 1543 source files, recording 4323 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 10.3 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

10.3
Adjusted Score
10.3
Raw Score
100%
Time Factor
2026-08-02
Last Push
14.2K
Stars
Python
Language
486.1K
Lines of Code
1.5K
Files
4.3K
Pattern Hits
2026-08-09
Scan Date
0.07
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 17HIGH 96MEDIUM 137LOW 4073

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 4323 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1360 hits · 1307 pts
SeverityFileLineSnippetContext
LOWivy/__init__.py995def _assert_array_significant_figures_formatting(sig_figs):CODE
LOWivy/__init__.py1039def set_array_significant_figures(sig_figs):CODE
LOWivy/__init__.py1053def unset_array_significant_figures():CODE
LOWivy/__init__.py1069def _assert_array_decimal_values_formatting(dec_vals):CODE
LOWivy/__init__.py1093def unset_array_decimal_values():CODE
LOWivy/__init__.py1559 def _get_module_and_replace_name(module_name: str):CODE
LOWivy/func_wrapper.py658def _convert_numpy_arrays_to_backend_specific(*args):CODE
LOWivy/func_wrapper.py667def handle_numpy_arrays_in_specific_backend(fn: Callable) -> Callable:CODE
LOWivy/func_wrapper.py676 def _handle_numpy_array_in_torch(*args, **kwargs):CODE
LOWivy/func_wrapper.py152def try_array_function_override(func, overloaded_args, types, args, kwargs):CODE
LOWivy/func_wrapper.py230def _check_in_nested_sequence(sequence, value=None, _type=None):CODE
LOWivy/func_wrapper.py334def handle_array_like_without_promotion(fn: Callable) -> Callable:CODE
LOWivy/func_wrapper.py336 def _handle_array_like_without_promotion(*args, **kwargs):CODE
LOWivy/func_wrapper.py486def to_native_shapes_and_back(fn: Callable) -> Callable:CODE
LOWivy/func_wrapper.py563def to_native_arrays_and_back(fn: Callable) -> Callable:CODE
LOWivy/func_wrapper.py573def frontend_outputs_to_ivy_arrays(fn: Callable) -> Callable:CODE
LOWivy/func_wrapper.py955def handle_partial_mixed_function(fn) -> Callable:CODE
LOWivy/func_wrapper.py957 def _handle_partial_mixed_function(*args, **kwargs):CODE
LOWivy/func_wrapper.py1214def _versioned_attribute_factory(attribute_function, base):CODE
LOWivy/func_wrapper.py1245def _dtype_device_wrapper_creator(attrib, t):CODE
LOWivy/tracer/reloader.py95 def has_touched_function_or_class(module):CODE
LOWivy/tracer/truncations.py140def _get_output_ids_recursive(graph_node: Node, output: Union[List, Tuple], i: int):CODE
LOWivy/tracer/truncations.py604def get_tensorflow_truncations():CODE
LOWivy/tracer/tracked_var_proxy.py36def _override_tensor_shape_proxy() -> bool:CODE
LOWivy/tracer/tracked_var_proxy.py161def unset_tf_tensor_shape_override():CODE
LOWivy/tracer/graph.py720 def _stop_tracking_constant_fns_output(self, receiving_fn, id_):CODE
LOWivy/tracer/graph.py1207 def list_function_frequencies(CODE
LOWivy/tracer/graph.py1899 def list_function_frequencies(self, *args, **kwargs):CODE
LOWivy/tracer/conversion.py313def native_array_to_new_frontend(x, frontend_type):CODE
LOWivy/tracer/conversion.py343def nest_native_array_to_new_frontend(nest, input_nest):CODE
LOWivy/tracer/conversion.py445def nest_array_to_new_backend(CODE
LOWivy/tracer/exchange.py17def _get_backend_fn_from_path(fn_path: str):CODE
LOWivy/tracer/exchange.py37def _convert_wrapped_function_to_dict(wrapped_fn: Node, func_to_id: Mapping):CODE
LOWivy/tracer/README.md51def _wrap_function_for_op_logging(fn: Callable, graph: Graph, ...) -> Callable:CODE
LOWivy/tracer/wrapping.py193def _get_incoming_iterator_fns(node, ongoing_iterator_chain) -> List:CODE
LOWivy/tracer/wrapping.py202def _append_to_iterator_chain(node, from_ongoing_iterator_chain) -> bool:CODE
LOWivy/tracer/wrapping.py218def _wrap_function_for_op_logging(CODE
LOWivy/tracer/wrapping.py977def _unwrap_function_from_op_logging(function_wrapped):CODE
LOWivy/tracer/wrapping.py1102def _wrap_functions_for_op_logging(CODE
LOWivy/tracer/wrapping.py1311def _unwrap_functions_from_op_logging(CODE
LOWivy/tracer/graph_optimizer.py229def apply_possible_optimizations(graph: Graph, backend: str = "tensorflow"):CODE
LOWivy/tracer/helpers.py43def _check_is_trainable_module(obj, to):CODE
LOWivy/tracer/helpers.py97def _get_arg_callback_functions(args):CODE
LOWivy/tracer/helpers.py118def _get_kwarg_callback_functions(kwargs):CODE
LOWivy/tracer/helpers.py172def _convert_callbacks_to_lazy_graphs(graph, fn, args, kwargs):CODE
LOWivy/tracer/helpers.py255def _format_missing_frontends_msg(frequency):CODE
LOWivy/tracer/helpers.py315def contain_stored_class_instance(args) -> bool:CODE
LOWivy/tracer/helpers.py657def class_method_to_instance_method(method_wrapper, instance):STRING
LOWivy/tracer/source_gen.py648 def replace_nontracked_from_reprs(self, reprs, param_ids, tracked_idxs):CODE
LOWivy/tracer/source_gen.py958def remove_non_constant_nests_idxs(nontracked_idxs, nestables_idxs, tracked_idxs):CODE
LOWivy/tracer/tracer.py114def _restore_native_compiler_flag(original_flag):CODE
LOWivy/tracer/tracer.py149def _restore_transformed_callables():CODE
LOW…er/control_flow_experimental/autograph_ivy/core/api.py113def _is_of_known_loaded_module(f, module_name):CODE
LOW…ow_experimental/autograph_ivy/operators/py_builtins.py49def locals_in_original_context(caller_fn_scope):CODE
LOW…ow_experimental/autograph_ivy/operators/py_builtins.py54def globals_in_original_context(caller_fn_scope):CODE
LOW…ow_experimental/autograph_ivy/operators/py_builtins.py74def super_in_original_context(f, args, caller_fn_scope):CODE
LOW…_experimental/autograph_ivy/converters/control_flow.py51 def _create_nonlocal_declarations(self, vars_):CODE
LOW…_experimental/autograph_ivy/converters/control_flow.py67 def _create_undefined_assigns(self, undefined_symbols):CODE
LOW…_experimental/autograph_ivy/converters/control_flow.py93 def _get_block_composite_vars(self, modified, live_in):STRING
LOW…l_flow_experimental/autograph_ivy/converters/slices.py28 def _process_single_assignment(self, target, value):CODE
1300 more matches not shown…
Unused Imports1431 hits · 1247 pts
SeverityFileLineSnippetContext
LOWivy/__init__.py16CODE
LOWivy/__init__.py750CODE
LOWivy/__init__.py752CODE
LOWivy/__init__.py755CODE
LOWivy/__init__.py760CODE
LOWivy/__init__.py761CODE
LOWivy/__init__.py761CODE
LOWivy/__init__.py761CODE
LOWivy/__init__.py761CODE
LOWivy/__init__.py761CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py768CODE
LOWivy/__init__.py784CODE
LOWivy/__init__.py787CODE
LOWivy/__init__.py788CODE
LOWivy/__init__.py789CODE
LOWivy/__init__.py790CODE
LOWivy/__init__.py791CODE
LOWivy/__init__.py1252CODE
LOWivy/__init__.py1252CODE
LOWivy/__init__.py1252CODE
LOWivy/__init__.py798CODE
LOWivy/__init__.py799CODE
LOWivy/__init__.py799CODE
LOWivy/tracer/__init__.py1CODE
LOWivy/tracer/__init__.py2CODE
LOWivy/tracer/__init__.py2CODE
LOWivy/tracer/__init__.py3CODE
LOWivy/tracer/__init__.py4CODE
LOWivy/tracer/__init__.py5CODE
LOWivy/tracer/__init__.py6CODE
LOWivy/tracer/wrapping.py29CODE
LOWivy/tracer/helpers.py8CODE
LOWivy/tracer/tracer.py15CODE
LOWivy/tracer/control_flow_experimental/__init__.py1CODE
LOWivy/tracer/control_flow_experimental/__init__.py2CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py16CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py17CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py18CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py19CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py20CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py21CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py22CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py23CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py24CODE
LOW…er/control_flow_experimental/autograph_ivy/__init__.py25CODE
LOW…ntrol_flow_experimental/autograph_ivy/core/__init__.py1CODE
LOW…ntrol_flow_experimental/autograph_ivy/core/__init__.py2CODE
LOW…ntrol_flow_experimental/autograph_ivy/core/__init__.py3CODE
LOW…ntrol_flow_experimental/autograph_ivy/core/__init__.py4CODE
1371 more matches not shown…
AI Structural Patterns445 hits · 436 pts
SeverityFileLineSnippetContext
LOWivy/func_wrapper.py652CODE
LOWivy/func_wrapper.py679CODE
LOWivy/tracer/tracked_var_proxy.py201CODE
LOWivy/tracer/tracked_var_proxy.py206CODE
LOWivy/tracer/tracked_var_proxy.py580CODE
LOWivy/tracer/graph.py190CODE
LOWivy/tracer/graph.py1588CODE
LOWivy/tracer/graph.py1966CODE
LOWivy/tracer/tracer.py158CODE
LOWivy/tracer/tracer.py401CODE
LOWivy/tracer/tracer.py713CODE
LOWivy/tracer/tracer.py842CODE
LOW…l/autograph_ivy/pyct/static_analysis/type_inference.py157CODE
LOW…graph_ivy/pyct/static_analysis/reaching_definitions.py82CODE
LOW…aph_ivy/test_suite/neural_nets_dynamic_control_flow.py66CODE
LOWivy/transpiler/core/object_like.py71CODE
LOWivy/transpiler/core/object_like.py523CODE
LOW…xamples/DistilledVisionTransformer/s2s_distilledvit.py105CODE
LOW…xamples/DistilledVisionTransformer/s2s_distilledvit.py187CODE
LOWivy/transpiler/examples/CFLow/helpers.py120CODE
LOWivy/transpiler/examples/CFLow/helpers.py178CODE
LOWivy/transpiler/examples/GLPDepth/s2s_glpdepth.py69CODE
LOWivy/transpiler/examples/GLPDepth/s2s_glpdepth.py121CODE
LOWivy/transpiler/examples/GLPDepth/mit.py152CODE
LOWivy/transpiler/examples/GLPDepth/mit.py260CODE
LOWivy/transpiler/examples/Swin2SR/s2s_swin2sr.py275CODE
LOWivy/transpiler/examples/Swin2SR/s2s_swin2sr.py506CODE
LOWivy/transpiler/examples/Swin2SR/s2s_swin2sr.py671CODE
LOWivy/transpiler/examples/Swin2SR/s2s_swin2sr.py896CODE
LOWivy/data_classes/array/layers.py389CODE
LOWivy/data_classes/array/experimental/linear_algebra.py526CODE
LOWivy/data_classes/array/experimental/linear_algebra.py607CODE
LOWivy/data_classes/array/experimental/statistical.py10CODE
LOWivy/data_classes/nested_array/base.py135CODE
LOWivy/data_classes/nested_array/base.py271CODE
LOWivy/data_classes/container/linear_algebra.py18CODE
LOWivy/data_classes/container/linear_algebra.py91CODE
LOWivy/data_classes/container/linear_algebra.py529CODE
LOWivy/data_classes/container/linear_algebra.py614CODE
LOWivy/data_classes/container/linear_algebra.py1381CODE
LOWivy/data_classes/container/linear_algebra.py1474CODE
LOWivy/data_classes/container/linear_algebra.py1612CODE
LOWivy/data_classes/container/linear_algebra.py1706CODE
LOWivy/data_classes/container/linear_algebra.py2719CODE
LOWivy/data_classes/container/linear_algebra.py2812CODE
LOWivy/data_classes/container/linear_algebra.py2952CODE
LOWivy/data_classes/container/linear_algebra.py3066CODE
LOWivy/data_classes/container/manipulation.py250CODE
LOWivy/data_classes/container/manipulation.py332CODE
LOWivy/data_classes/container/manipulation.py708CODE
LOWivy/data_classes/container/manipulation.py825CODE
LOWivy/data_classes/container/statistical.py13CODE
LOWivy/data_classes/container/statistical.py99CODE
LOWivy/data_classes/container/statistical.py265CODE
LOWivy/data_classes/container/statistical.py403CODE
LOWivy/data_classes/container/statistical.py520CODE
LOWivy/data_classes/container/statistical.py591CODE
LOWivy/data_classes/container/statistical.py729CODE
LOWivy/data_classes/container/statistical.py869CODE
LOWivy/data_classes/container/statistical.py895CODE
385 more matches not shown…
Deep Nesting438 hits · 416 pts
SeverityFileLineSnippetContext
LOWivy/func_wrapper.py56CODE
LOWivy/func_wrapper.py270CODE
LOWivy/func_wrapper.py334CODE
LOWivy/func_wrapper.py778CODE
LOWivy/func_wrapper.py1008CODE
LOWivy/func_wrapper.py1101CODE
LOWivy/func_wrapper.py1245CODE
LOWivy/func_wrapper.py1393CODE
LOWivy/func_wrapper.py278CODE
LOWivy/func_wrapper.py336CODE
LOWivy/func_wrapper.py782CODE
LOWivy/func_wrapper.py1103CODE
LOWivy/func_wrapper.py1263CODE
LOWivy/func_wrapper.py1395CODE
LOWivy/func_wrapper.py1264CODE
LOWivy/tracer/reloader.py306CODE
LOWivy/tracer/reloader.py373CODE
LOWivy/tracer/reloader.py627CODE
LOWivy/tracer/reloader.py689CODE
LOWivy/tracer/truncations.py110CODE
LOWivy/tracer/truncations.py162CODE
LOWivy/tracer/truncations.py225CODE
LOWivy/tracer/truncations.py255CODE
LOWivy/tracer/truncations.py315CODE
LOWivy/tracer/graph.py77CODE
LOWivy/tracer/graph.py103CODE
LOWivy/tracer/graph.py631CODE
LOWivy/tracer/graph.py671CODE
LOWivy/tracer/graph.py690CODE
LOWivy/tracer/graph.py705CODE
LOWivy/tracer/graph.py729CODE
LOWivy/tracer/graph.py1285CODE
LOWivy/tracer/graph.py1588CODE
LOWivy/tracer/conversion.py47CODE
LOWivy/tracer/conversion.py221CODE
LOWivy/tracer/exchange.py17CODE
LOWivy/tracer/exchange.py37CODE
LOWivy/tracer/exchange.py114CODE
LOWivy/tracer/wrapping.py218CODE
LOWivy/tracer/wrapping.py1024CODE
LOWivy/tracer/wrapping.py285CODE
LOWivy/tracer/graph_optimizer.py71CODE
LOWivy/tracer/helpers.py43CODE
LOWivy/tracer/helpers.py139CODE
LOWivy/tracer/helpers.py474CODE
LOWivy/tracer/helpers.py717CODE
LOWivy/tracer/helpers.py780CODE
LOWivy/tracer/source_gen.py84CODE
LOWivy/tracer/source_gen.py236CODE
LOWivy/tracer/source_gen.py450CODE
LOWivy/tracer/tracer.py90CODE
LOWivy/tracer/tracer.py114CODE
LOWivy/tracer/tracer.py158CODE
LOWivy/tracer/tracer.py401CODE
LOWivy/tracer/tracer.py787CODE
LOW…ol_flow_experimental/autograph_ivy/converters/lists.py113CODE
LOW…rimental/autograph_ivy/converters/return_statements.py343CODE
LOW…_flow_experimental/autograph_ivy/pyct/inspect_utils.py61CODE
LOW…_flow_experimental/autograph_ivy/pyct/inspect_utils.py96CODE
LOW…_flow_experimental/autograph_ivy/pyct/inspect_utils.py158CODE
378 more matches not shown…
Cross-File Repetition78 hits · 390 pts
SeverityFileLineSnippetContext
HIGHivy/func_wrapper.py0convert all `tensorflow.tensor` instances in both the positional and keyword arguments into `ivy.array` instances, and tSTRING
HIGHivy/functional/frontends/numpy/func_wrapper.py0convert all `tensorflow.tensor` instances in both the positional and keyword arguments into `ivy.array` instances, and tSTRING
HIGHivy/functional/frontends/tensorflow/func_wrapper.py0convert all `tensorflow.tensor` instances in both the positional and keyword arguments into `ivy.array` instances, and tSTRING
HIGHivy/func_wrapper.py0convert `ndarray.ndarray` into `ivy.array` instances. convert all `ndarray.ndarray` instances in both the positional andSTRING
HIGHivy/functional/frontends/paddle/func_wrapper.py0convert `ndarray.ndarray` into `ivy.array` instances. convert all `ndarray.ndarray` instances in both the positional andSTRING
HIGHivy/functional/frontends/torch/func_wrapper.py0convert `ndarray.ndarray` into `ivy.array` instances. convert all `ndarray.ndarray` instances in both the positional andSTRING
HIGHivy/functional/frontends/onnx/func_wrapper.py0convert `ndarray.ndarray` into `ivy.array` instances. convert all `ndarray.ndarray` instances in both the positional andSTRING
HIGHivy/functional/frontends/mxnet/func_wrapper.py0convert `ndarray.ndarray` into `ivy.array` instances. convert all `ndarray.ndarray` instances in both the positional andSTRING
HIGH…nsformers/method_transformer/ivy_method_transformer.py0a class to convert utility class method calls to function calls in a gast ast.STRING
HIGH…ethod_transformer/frontend_torch_method_transformer.py0a class to convert utility class method calls to function calls in a gast ast.STRING
HIGH…ns/transformers/method_transformer/base_transformer.py0a class to convert utility class method calls to function calls in a gast ast.STRING
HIGH…/method_transformer/native_torch_method_transformer.py0a class to convert utility class method calls to function calls in a gast ast.STRING
HIGH…g_transformer/ivy_to_jax_postprocessing_transformer.py0step 1: modify keep_input_dtype kwarg default value to true in inplace update signature.STRING
HIGH…transformer/ivy_to_numpy_postprocessing_transformer.py0step 1: modify keep_input_dtype kwarg default value to true in inplace update signature.STRING
HIGH…ng_transformer/ivy_to_tf_postprocessing_transformer.py0step 1: modify keep_input_dtype kwarg default value to true in inplace update signature.STRING
HIGH…g_transformer/ivy_to_jax_postprocessing_transformer.py0step 2: modify assignment nodes to use val_native on the rhs in inplace_update body.STRING
HIGH…transformer/ivy_to_numpy_postprocessing_transformer.py0step 2: modify assignment nodes to use val_native on the rhs in inplace_update body.STRING
HIGH…ng_transformer/ivy_to_tf_postprocessing_transformer.py0step 2: modify assignment nodes to use val_native on the rhs in inplace_update body.STRING
HIGHivy/data_classes/array/experimental/linear_algebra.py0compute the dot product between two arrays `a` and `b` using the current backend's implementation. the dot product is deSTRING
HIGH…/data_classes/container/experimental/linear_algebra.py0compute the dot product between two arrays `a` and `b` using the current backend's implementation. the dot product is deSTRING
HIGHivy/functional/ivy/experimental/linear_algebra.py0compute the dot product between two arrays `a` and `b` using the current backend's implementation. the dot product is deSTRING
HIGHivy/data_classes/array/experimental/manipulation.py0ivy.container instance method variant of ivy.trim_zeros. this method simply wraps the function, and so the docstring forSTRING
HIGHivy/data_classes/container/experimental/manipulation.py0ivy.container instance method variant of ivy.trim_zeros. this method simply wraps the function, and so the docstring forSTRING
HIGHivy/functional/ivy/experimental/manipulation.py0ivy.container instance method variant of ivy.trim_zeros. this method simply wraps the function, and so the docstring forSTRING
HIGHivy/data_classes/array/experimental/random.py0draws samples from bernoulli distribution parameterized by probs or logits (but not both) parameters ---------- logits aSTRING
HIGHivy/data_classes/container/experimental/random.py0draws samples from bernoulli distribution parameterized by probs or logits (but not both) parameters ---------- logits aSTRING
HIGHivy/functional/ivy/experimental/random.py0draws samples from bernoulli distribution parameterized by probs or logits (but not both) parameters ---------- logits aSTRING
HIGHivy/data_classes/array/experimental/layers.py0compute a 1-d max unpooling given the 1-d pooled input x and its indices. parameters ---------- input pooled input imageSTRING
HIGHivy/data_classes/container/experimental/layers.py0compute a 1-d max unpooling given the 1-d pooled input x and its indices. parameters ---------- input pooled input imageSTRING
HIGHivy/functional/ivy/experimental/layers.py0compute a 1-d max unpooling given the 1-d pooled input x and its indices. parameters ---------- input pooled input imageSTRING
HIGHivy/functional/ivy/data_type.py0promote the dtype of the given ivy array inputs to a common dtype based on numpy type promotion rules. while passing floSTRING
HIGHivy/functional/frontends/onnx/__init__.py0promote the dtype of the given ivy array inputs to a common dtype based on numpy type promotion rules. while passing floSTRING
HIGHivy/functional/frontends/mxnet/numpy/__init__.py0promote the dtype of the given ivy array inputs to a common dtype based on numpy type promotion rules. while passing floSTRING
HIGHivy/functional/frontends/paddle/__init__.py0promote the dtype of the given ivy array inputs to a common dtype based on numpy type promotion rules. while passing floSTRING
HIGHivy/functional/frontends/torch/__init__.py0promote the dtype of the given ivy array inputs to a common dtype based on numpy type promotion rules. while passing floSTRING
HIGHivy/functional/frontends/jax/numpy/__init__.py0promote the dtype of the given ivy array inputs to a common dtype based on numpy type promotion rules. while passing floSTRING
HIGHivy/functional/frontends/numpy/__init__.py0promote the dtype of the given ivy array inputs to a common dtype based on numpy type promotion rules. while passing floSTRING
HIGHivy/functional/frontends/onnx/__init__.py0promote the datatypes type1 and type2, returning the data type they promote to. parameters ---------- type1 the first ofSTRING
HIGHivy/functional/frontends/mxnet/numpy/__init__.py0promote the datatypes type1 and type2, returning the data type they promote to. parameters ---------- type1 the first ofSTRING
HIGHivy/functional/frontends/paddle/__init__.py0promote the datatypes type1 and type2, returning the data type they promote to. parameters ---------- type1 the first ofSTRING
HIGHivy/functional/frontends/torch/__init__.py0promote the datatypes type1 and type2, returning the data type they promote to. parameters ---------- type1 the first ofSTRING
HIGHivy/functional/frontends/jax/numpy/__init__.py0promote the datatypes type1 and type2, returning the data type they promote to. parameters ---------- type1 the first ofSTRING
HIGHivy/functional/frontends/onnx/func_wrapper.py0convert `ivy.array` into `tensor` instances. call the function, and then convert all `ivy.array` instances returned by tSTRING
HIGHivy/functional/frontends/paddle/func_wrapper.py0convert `ivy.array` into `tensor` instances. call the function, and then convert all `ivy.array` instances returned by tSTRING
HIGHivy/functional/frontends/torch/func_wrapper.py0convert `ivy.array` into `tensor` instances. call the function, and then convert all `ivy.array` instances returned by tSTRING
HIGHivy/functional/frontends/onnx/func_wrapper.py0wrap `fn` so it receives and returns `ivy.array` instances. wrap `fn` so that input arrays are all converted to `ivy.arrSTRING
HIGHivy/functional/frontends/mxnet/func_wrapper.py0wrap `fn` so it receives and returns `ivy.array` instances. wrap `fn` so that input arrays are all converted to `ivy.arrSTRING
HIGHivy/functional/frontends/paddle/func_wrapper.py0wrap `fn` so it receives and returns `ivy.array` instances. wrap `fn` so that input arrays are all converted to `ivy.arrSTRING
HIGHivy/functional/frontends/torch/func_wrapper.py0wrap `fn` so it receives and returns `ivy.array` instances. wrap `fn` so that input arrays are all converted to `ivy.arrSTRING
HIGHivy/functional/frontends/numpy/func_wrapper.py0wrap `fn` so it receives and returns `ivy.array` instances. wrap `fn` so that input arrays are all converted to `ivy.arrSTRING
HIGHivy/functional/frontends/torch/nn/modules/module.py0helper method for yielding various names + members of modules.STRING
HIGHivy/functional/backends/tensorflow/module.py0helper method for yielding various names + members of modules.STRING
HIGHivy/functional/backends/jax/module.py0helper method for yielding various names + members of modules.STRING
HIGHivy/functional/frontends/torch/nn/modules/module.py0copy parameters and buffers from :attr:`state_dict` into this module and its descendants. if :attr:`strict` is ``true``,STRING
HIGHivy/functional/backends/tensorflow/module.py0copy parameters and buffers from :attr:`state_dict` into this module and its descendants. if :attr:`strict` is ``true``,STRING
HIGHivy/functional/backends/jax/module.py0copy parameters and buffers from :attr:`state_dict` into this module and its descendants. if :attr:`strict` is ``true``,STRING
HIGHivy/functional/backends/mxnet/device.py0tensorflow general functions. collection of tensorflow general functions, wrapped to fit ivy syntax and signature.STRING
HIGHivy/functional/backends/mxnet/activations.py0tensorflow general functions. collection of tensorflow general functions, wrapped to fit ivy syntax and signature.STRING
HIGHivy/functional/backends/mxnet/random.py0tensorflow general functions. collection of tensorflow general functions, wrapped to fit ivy syntax and signature.STRING
HIGHivy/functional/backends/paddle/activations.py0tensorflow general functions. collection of tensorflow general functions, wrapped to fit ivy syntax and signature.STRING
18 more matches not shown…
Hallucination Indicators17 hits · 270 pts
SeverityFileLineSnippetContext
CRITICALivy/__init__.py18_not_imported_backends = list(ivy.utils.backend.handler._backend_dict.keys())CODE
CRITICALivy/__init__.py47 fw_str, ivy.utils.backend.handler._backend_dict.keys()CODE
CRITICAL…nal/frontends/torch/nn/functional/pooling_functions.py294 padding[i] = ivy.functional.ivy.experimental.layers._padding_ceil_mode(CODE
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py87 # "tests.source2source.transformations.mock_dir.custom_math.advanced_math.custom_sin(x)"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py91 # "tests.source2source.transformations.mock_dir.custom_math.advanced_math.MathOperations.custom_cos(x)"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py110 # "tests.source2source.transformations.mock_dir.data_utils.preprocessing.normalize(data)"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py114 # "tests.source2source.transformations.mock_dir.data_utils.preprocessing.Preprocessor.scale(normalized)"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py118 # "tests.source2source.transformations.mock_dir.data_utils.analysis.analyze_data(scaled)"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py137 # "tests.source2source.transformations.mock_dir.ml_models.neural_net.NeuralNetwork([10, 5, 1])"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py156 # "tests.source2source.transformations.mock_dir.custom_math.advanced_math.custom_sin(normalized)"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py160 # "tests.source2source.transformations.mock_dir.data_utils.preprocessing.normalize(data)"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py164 # "tests.source2source.transformations.mock_dir.ml_models.neural_net.NeuralNetwork([5, 3, 1])"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py185 # "tests.source2source.transformations.mock_dir.data_utils.preprocessing.Preprocessor()"COMMENT
CRITICAL…nicalize_transformers/test_canonicalize_transformer.py189 # "tests.source2source.transformations.mock_dir.ml_models.neural_net.NeuralNetwork([5, 3, 1])"COMMENT
CRITICAL…ests/test_ivy/test_functional/test_core/test_device.py105 handle = backend.ivy.functional.ivy.device._get_nvml_gpu_handle(device)CODE
CRITICAL…s/test_ivy/test_functional/test_core/test_gradients.py568 var = ivy_backend.ivy.functional.ivy.gradients._variable(CODE
CRITICAL…s/test_ivy/test_functional/test_core/test_gradients.py578 var = gt_backend.ivy.functional.ivy.gradients._variable(CODE
Excessive Try-Catch Wrapping155 hits · 165 pts
SeverityFileLineSnippetContext
LOWivy/func_wrapper.py164 except Exception:CODE
LOWivy/tracer/reloader.py301 except Exception as e:CODE
LOWivy/tracer/reloader.py401 except Exception:CODE
LOWivy/tracer/reloader.py523 except Exception:CODE
LOWivy/tracer/reloader.py564 except Exception:CODE
LOWivy/tracer/reloader.py569 except Exception:CODE
LOWivy/tracer/tracked_var_proxy.py56 except Exception as _:CODE
LOWivy/tracer/conversion.py295 except Exception as e:CODE
LOWivy/tracer/conversion.py307 except Exception as e:CODE
LOWivy/tracer/visualisation.py62 except Exception:CODE
LOWivy/tracer/wrapping.py622 except Exception as e:CODE
LOWivy/tracer/wrapping.py1020 except Exception:CODE
LOWivy/tracer/wrapping.py1046 except Exception as e:CODE
LOWivy/tracer/wrapping.py1078 except Exception:CODE
LOWivy/tracer/helpers.py340 except Exception as _:CODE
LOWivy/tracer/helpers.py368 except Exception as e:CODE
LOWivy/tracer/tracer.py239 except Exception:CODE
LOWivy/tracer/tracer.py347 except Exception as e:CODE
LOW…ow_experimental/autograph_ivy/operators/py_builtins.py135 except Exception as e:CODE
LOW…ow_experimental/autograph_ivy/operators/py_builtins.py150 except Exception as e:CODE
LOW…ow_experimental/autograph_ivy/operators/py_builtins.py161 except Exception as e:CODE
LOW…ow_experimental/autograph_ivy/operators/py_builtins.py166 except Exception as e:CODE
MEDIUM…ow_experimental/autograph_ivy/operators/py_builtins.py156def method_wrapper(str, val):CODE
LOWivy/tracer/special_ops/builtin_helpers.py309 except Exception as _:CODE
LOWivy/tracer/special_ops/builtin_helpers.py362 except Exception as _:CODE
LOWivy/tracer/special_ops/builtin_helpers.py378 except Exception as _:CODE
LOWivy/tracer/special_ops/builtin_helpers.py390 except Exception as _:CODE
LOWivy/tracer/special_ops/builtin_helpers.py396 except Exception as _:CODE
LOWivy/tracer/special_ops/builtin_helpers.py911 except Exception as _:CODE
LOWivy/transpiler/main.py246 except Exception as e:CODE
LOWivy/transpiler/main.py359 except Exception:CODE
LOWivy/transpiler/main.py439 except Exception as e:CODE
LOWivy/transpiler/main.py560 except Exception:CODE
LOWivy/transpiler/main.py717 except Exception as e:CODE
LOW…ers/recursive_transformer/ivy_recursive_transformer.py44 except Exception:CODE
LOWivy/transpiler/utils/profiling_utils.py172 except Exception as e:CODE
LOWivy/transpiler/utils/profiling_utils.py187 except Exception as e:CODE
LOWivy/transpiler/utils/pickling_utils.py83 except Exception as e:CODE
LOWivy/transpiler/utils/source_utils.py170 except Exception as e:CODE
LOWivy/transpiler/utils/source_utils.py192 except Exception as e:CODE
MEDIUMivy/transpiler/utils/cache_utils.py497def save_file_async(self, cache_file, cache_data):CODE
MEDIUMivy/transpiler/utils/cache_utils.py508def save_file(self, cache_file, cache_data):CODE
MEDIUMivy/transpiler/utils/cache_utils.py519def load_file_async(self, cache_file):CODE
MEDIUMivy/transpiler/utils/cache_utils.py537def load_file(self, cache_file):CODE
MEDIUMivy/transpiler/utils/cache_utils.py788def _run_cache_loading(self):CODE
MEDIUMivy/transpiler/utils/cache_utils.py795def _run_cache_saving(self):CODE
LOWivy/transpiler/utils/cache_utils.py504 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py515 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py533 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py551 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py575 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py596 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py621 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py639 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py667 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py696 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py730 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py757 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py791 except Exception as e:CODE
LOWivy/transpiler/utils/cache_utils.py798 except Exception as e:CODE
95 more matches not shown…
Decorative Section Separators54 hits · 162 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py15# ==============================================================================COMMENT
MEDIUM…er/control_flow_experimental/autograph_ivy/__init__.py14# ==============================================================================COMMENT
MEDIUM…tal/autograph_ivy/core/unsupported_features_checker.py14# ==============================================================================COMMENT
MEDIUM…w_experimental/autograph_ivy/core/function_wrappers.py14# ==============================================================================COMMENT
MEDIUM…trol_flow_experimental/autograph_ivy/core/converter.py14# ==============================================================================COMMENT
MEDIUM…er/control_flow_experimental/autograph_ivy/core/api.py14# ==============================================================================COMMENT
MEDIUM…flow_experimental/autograph_ivy/operators/variables.py14# ==============================================================================COMMENT
MEDIUM…ow_experimental/autograph_ivy/operators/py_builtins.py14# ==============================================================================COMMENT
MEDIUM…mental/autograph_ivy/converters/list_comprehensions.py14# ==============================================================================COMMENT
MEDIUM…low_experimental/autograph_ivy/converters/functions.py14# ==============================================================================COMMENT
MEDIUM…ol_flow_experimental/autograph_ivy/converters/lists.py14# ==============================================================================COMMENT
MEDIUM…rimental/autograph_ivy/converters/return_statements.py14# ==============================================================================COMMENT
MEDIUM…_experimental/autograph_ivy/converters/control_flow.py14# ==============================================================================COMMENT
MEDIUM…ow_experimental/autograph_ivy/converters/call_trees.py14# ==============================================================================COMMENT
MEDIUM…flow_experimental/autograph_ivy/converters/__init__.py14# ==============================================================================COMMENT
MEDIUM…erimental/autograph_ivy/converters/break_statements.py14# ==============================================================================COMMENT
MEDIUM…mental/autograph_ivy/converters/continue_statements.py14# ==============================================================================COMMENT
MEDIUM…l_flow_experimental/autograph_ivy/converters/slices.py14# ==============================================================================COMMENT
MEDIUM…al/autograph_ivy/converters/conditional_expressions.py14# ==============================================================================COMMENT
MEDIUM…er/control_flow_experimental/autograph_ivy/pyct/cfg.py14# ==============================================================================COMMENT
MEDIUM…ol_flow_experimental/autograph_ivy/pyct/error_utils.py14# ==============================================================================COMMENT
MEDIUM…control_flow_experimental/autograph_ivy/pyct/naming.py14# ==============================================================================COMMENT
MEDIUM…/control_flow_experimental/autograph_ivy/pyct/cache.py14# ==============================================================================COMMENT
MEDIUM…ntrol_flow_experimental/autograph_ivy/pyct/__init__.py14# ==============================================================================COMMENT
MEDIUM…_flow_experimental/autograph_ivy/pyct/inspect_utils.py14# ==============================================================================COMMENT
MEDIUM…ntrol_flow_experimental/autograph_ivy/pyct/ast_util.py14# ==============================================================================COMMENT
MEDIUM…control_flow_experimental/autograph_ivy/pyct/parser.py14# ==============================================================================COMMENT
MEDIUM…rol_flow_experimental/autograph_ivy/pyct/transpiler.py14# ==============================================================================COMMENT
MEDIUM…trol_flow_experimental/autograph_ivy/pyct/templates.py14# ==============================================================================COMMENT
MEDIUM…flow_experimental/autograph_ivy/pyct/pretty_printer.py14# ==============================================================================COMMENT
MEDIUM…control_flow_experimental/autograph_ivy/pyct/loader.py14# ==============================================================================COMMENT
MEDIUM…ol_flow_experimental/autograph_ivy/pyct/transformer.py14# ==============================================================================COMMENT
MEDIUM…control_flow_experimental/autograph_ivy/pyct/errors.py14# ==============================================================================COMMENT
MEDIUM…trol_flow_experimental/autograph_ivy/pyct/gast_util.py14# ==============================================================================COMMENT
MEDIUM…r/control_flow_experimental/autograph_ivy/pyct/anno.py14# ==============================================================================COMMENT
MEDIUM…ol_flow_experimental/autograph_ivy/pyct/origin_info.py14# ==============================================================================COMMENT
MEDIUM…rol_flow_experimental/autograph_ivy/pyct/qual_names.py14# ==============================================================================COMMENT
MEDIUM…imental/autograph_ivy/pyct/static_analysis/liveness.py14# ==============================================================================COMMENT
MEDIUM…l/autograph_ivy/pyct/static_analysis/type_inference.py14# ==============================================================================COMMENT
MEDIUM…imental/autograph_ivy/pyct/static_analysis/activity.py14# ==============================================================================COMMENT
MEDIUM…imental/autograph_ivy/pyct/static_analysis/__init__.py14# ==============================================================================COMMENT
MEDIUM…/autograph_ivy/pyct/static_analysis/reaching_fndefs.py14# ==============================================================================COMMENT
MEDIUM…perimental/autograph_ivy/pyct/static_analysis/annos.py14# ==============================================================================COMMENT
MEDIUM…graph_ivy/pyct/static_analysis/reaching_definitions.py14# ==============================================================================COMMENT
MEDIUMivy/tracer/special_ops/vmap_helpers.py109# -----------------COMMENT
MEDIUMivy/tracer/special_ops/vmap_helpers.py111# -----------------COMMENT
MEDIUMivy/tracer/special_ops/vmap_helpers.py171# -------------COMMENT
MEDIUMivy/tracer/special_ops/vmap_helpers.py173# -------------COMMENT
MEDIUMivy/transpiler/examples/GLPDepth/mit.py1# ---------------------------------------------------------------COMMENT
MEDIUMivy/transpiler/examples/GLPDepth/mit.py5# ---------------------------------------------------------------COMMENT
MEDIUMivy/transpiler/examples/Swin2SR/s2s_swin2sr.py1# -----------------------------------------------------------------------------------COMMENT
MEDIUMivy/transpiler/examples/Swin2SR/s2s_swin2sr.py4# -----------------------------------------------------------------------------------COMMENT
MEDIUMivy/data_classes/factorized_tensor/cp_tensor.py716 # ----------COMMENT
MEDIUMivy/functional/backends/paddle/experimental/creation.py19# ----------------------------------------COMMENT
Self-Referential Comments52 hits · 154 pts
SeverityFileLineSnippetContext
MEDIUMivy/tracer/tracked_var_proxy.py345 # Create a new objectCOMMENT
MEDIUMivy/tracer/tracked_var_proxy.py385 # Create a new objectCOMMENT
MEDIUMivy/tracer/tracked_var_proxy.py436# This class is overridden using the metaclass based onCOMMENT
MEDIUMivy/tracer/graph.py735 """This function is first called on the final output, and traverses backwards throughSTRING
MEDIUMivy/tracer/helpers.py365 # Create a new classCOMMENT
MEDIUM…control_flow_experimental/autograph_ivy/pyct/parser.py264 # This method is more robust that just calling inspect.getsource(mod), as itCOMMENT
MEDIUM…aph_ivy/test_suite/neural_nets_dynamic_control_flow.py15 # Create an instance of the model classCOMMENT
MEDIUMivy/tracer/special_ops/vmap_helpers.py193 # Create a dictionary with the name as key and the corresponding index as valueCOMMENT
MEDIUMivy/transpiler/main.py679 # Create an event to stop the animationCOMMENT
MEDIUM…nsformers/method_transformer/ivy_method_transformer.py144 # Create a new Call node for the outer call, but with the inner call as its functionCOMMENT
MEDIUM…ethod_transformer/frontend_torch_method_transformer.py125 # Create a new Call node for the outer call, but with the inner call as its functionCOMMENT
MEDIUM…nsformers/canonicalize_transformer/base_transformer.py74 # This method is called for each variable annotation in the treeCOMMENT
MEDIUM…rocessing_transformer/ivy_preprocessing_transformer.py73 # Create a new assignment node with the modified right-hand sideCOMMENT
MEDIUM…ocessing_transformer/ivy_postprocessing_transformer.py480 # Create a for loop with append statementsCOMMENT
MEDIUM…ocessing_transformer/ivy_postprocessing_transformer.py489 # Create a new list to store the elementsCOMMENT
MEDIUM…ng_transformer/ivy_to_tf_postprocessing_transformer.py216 # Create a gast.With node with a tensorflow.name_scope context manager.COMMENT
MEDIUM…ns/transformers/inject_transformer/base_transformer.py108 # Create a new FunctionDef node to be injected laterCOMMENT
MEDIUM…ns/transformers/inject_transformer/base_transformer.py218 # Create a new FunctionDef node to be injected laterCOMMENT
MEDIUM…transformers/recursive_transformer/base_transformer.py72 # Create a new instance and store it in the class variableCOMMENT
MEDIUM…s/transformers/closure_transformer/base_transformer.py37 # Create an assignment node for each closure variableCOMMENT
MEDIUMivy/transpiler/utils/inspect_utils.py136 # Create a dictionary mapping each class to its base classesCOMMENT
MEDIUMivy/transpiler/ast/utils.py103 # Create a new AST with reordered bodyCOMMENT
MEDIUMivy/transpiler/ast/source_gen.py886 # Create the directory structureCOMMENT
MEDIUMivy/transpiler/ast/source_gen.py896 pass # Create an empty fileCODE
MEDIUMivy/transpiler/caching/populate_cache.py31# Define a pytest function to handle each item in the batchCOMMENT
MEDIUMivy/transpiler/translations/translator.py324 # Create an AtomicCacheUnitCOMMENT
MEDIUMivy/transpiler/translations/helpers.py69 # Create the output directoryCOMMENT
MEDIUMivy/transpiler/translations/helpers.py95 # Create the output directoryCOMMENT
MEDIUMivy/transpiler/translations/helpers.py98 # Create an empty __init__.py file in the new directoryCOMMENT
MEDIUMivy/functional/ivy/creation.py97 # This function is to be used with the nested_map functionCOMMENT
MEDIUMivy/functional/ivy/experimental/linear_algebra.py835# The following code has been adapted from TensorLyCOMMENT
MEDIUMivy/functional/ivy/experimental/linear_algebra.py927# The following code has been adapted from TensorLyCOMMENT
MEDIUMivy/functional/ivy/experimental/linear_algebra.py1214# The following function has been adapted from TensorLySTRING
MEDIUMivy/functional/frontends/torch/linalg.py176 # Create a named tuple for the final resultCOMMENT
MEDIUM…y/functional/frontends/sklearn/preprocessing/_label.py13 # Initialize the classes and class_to_index listsCOMMENT
MEDIUM…y/functional/frontends/sklearn/preprocessing/_label.py36 # Initialize the class_to_index list with the same length as the classes listCOMMENT
MEDIUMivy/functional/backends/paddle/statistical.py84 # The following code is to simulate other frameworksCOMMENT
MEDIUMivy/functional/backends/paddle/statistical.py153 # The following code is to simulate other frameworksCOMMENT
MEDIUMivy/functional/backends/paddle/statistical.py185 # The following code is to simulate other frameworksCOMMENT
MEDIUMivy/functional/backends/paddle/statistical.py260 # The following code is to simulate other frameworksCOMMENT
MEDIUMivy/functional/backends/paddle/gradients.py44 # Creating a zero gradient nest for the case where no gradients are computedCOMMENT
MEDIUMivy/functional/backends/paddle/utility.py26 # The following code is to simulate other frameworksCOMMENT
MEDIUMivy/functional/backends/paddle/utility.py55 # The following code is to simulate other frameworksCOMMENT
MEDIUM…functional/backends/paddle/experimental/statistical.py40 # The following code is to simulate other frameworksCOMMENT
MEDIUM…functional/backends/paddle/experimental/statistical.py72 # The following code is to simulate other frameworksCOMMENT
MEDIUMivy/functional/backends/torch/gradients.py41 # Creating a zero gradient nest for the case where no gradients are computedCOMMENT
MEDIUMivy/functional/backends/tensorflow/gradients.py38 # Creating a zero gradient nest for the case where no gradients are computedCOMMENT
MEDIUMivy/functional/backends/tensorflow/gradients.py91 # Creating a tape to record operationsCOMMENT
MEDIUM…tions/globals_transformers/test_globals_transformer.py437 # Create an input arrayCOMMENT
MEDIUM…ests/test_ivy/test_functional/test_core/test_device.py80 # Create an array of floats, by default with 10 million elements (40 MB)COMMENT
MEDIUM…vy/test_frontends/test_torch/test_miscellaneous_ops.py116 # Define the broadcast shape dimensionCOMMENT
MEDIUM…vy/test_frontends/test_jax/test__src/test_tree_util.py68 # Define a function to square each leaf nodeCOMMENT
Redundant / Tautological Comments91 hits · 142 pts
SeverityFileLineSnippetContext
LOWivy/tracer/tracked_var_proxy.py66 # Check if we have overridden the TrackedTensorShape class.COMMENT
LOWivy/tracer/tracked_var_proxy.py81 # Check if we have overridden the TrackedTensorShape class.COMMENT
LOWivy/tracer/conversion.py408 # Check if the other possible backends match with the native data typeCOMMENT
LOWivy/tracer/helpers.py231 # Check if the path belongs to a built-in moduleCOMMENT
LOW…er/control_flow_experimental/autograph_ivy/core/api.py169 # Check if the function is a built-in functionCOMMENT
LOW…er/control_flow_experimental/autograph_ivy/core/api.py173 # Check if the function is one of the specified functionsCOMMENT
LOWivy/tracer/special_ops/builtin_helpers.py734 # Check if the fn factory can be retrieved from an existing cacheCOMMENT
LOWivy/tracer/special_ops/builtin_helpers.py893 # Check if it is transformed already and return earlyCOMMENT
LOWivy/transpiler/main.py241 # Check if our target line falls within this rangeCOMMENT
LOWivy/transpiler/main.py400 # Check if we're in IPython/Colab environmentCOMMENT
LOW…nsformers/method_transformer/ivy_method_transformer.py91 # Check if any part of the attribute name should not be transformedCOMMENT
LOW…nsformers/method_transformer/ivy_method_transformer.py163 # Check if any part of the function name should not be transformedCOMMENT
LOW…nsformers/method_transformer/ivy_method_transformer.py220 # Check if any part of the node name should not be transformedCOMMENT
LOW…ethod_transformer/frontend_torch_method_transformer.py71 # Check if any part of the attribute name should not be transformedCOMMENT
LOW…ethod_transformer/frontend_torch_method_transformer.py144 # Check if any part of the function name should not be transformedCOMMENT
LOW…ethod_transformer/frontend_torch_method_transformer.py241 # Check if any part of the node name should not be transformedCOMMENT
LOW…/method_transformer/native_torch_method_transformer.py61 # Check if any part of the function name should not be transformedCOMMENT
LOW…sformers/native_layers_transformer/base_transformer.py204 # Check if the default value is a known layer (e.g., tensorflow_Conv2d)COMMENT
LOW…rocessing_transformer/ivy_preprocessing_transformer.py143 # Check if the original if statement has an "elif" partCOMMENT
LOW…g_transformer/ivy_to_jax_postprocessing_transformer.py135 if elts_dump == pattern_dump: # Check if we found the patternCODE
LOW…g_transformer/ivy_to_jax_postprocessing_transformer.py160 # Check if the function name contains "inplace_update"COMMENT
LOW…ocessing_transformer/ivy_postprocessing_transformer.py278 # Check if the dimensions are in the PyTorch format and determine the patternCOMMENT
LOW…ocessing_transformer/ivy_postprocessing_transformer.py286 # Check if the dimension is out_channels // groups (BinOp)COMMENT
LOW…ocessing_transformer/ivy_postprocessing_transformer.py294 # Check if the dimension is in_channels // groups (BinOp)COMMENT
LOW…ocessing_transformer/ivy_postprocessing_transformer.py258 # Check if the call is to isinstance and if so,COMMENT
LOW…transformer/ivy_to_numpy_postprocessing_transformer.py137 if elts_dump == pattern_dump: # Check if we found the patternCODE
LOW…transformer/ivy_to_numpy_postprocessing_transformer.py161 # Check if the function name contains "inplace_update"COMMENT
LOW…ng_transformer/ivy_to_tf_postprocessing_transformer.py296 # Check if the function name contains "inplace_update"COMMENT
LOW…ng_transformer/ivy_to_tf_postprocessing_transformer.py272 if elts_dump == pattern_dump: # Check if we found the patternCODE
LOW…ansformer/frontend_torch_postprocessing_transformer.py107 # Check if the call is to isinstance and if so,COMMENT
LOW…ns/transformers/inject_transformer/base_transformer.py54 # Check if we have a super call hereCOMMENT
LOW…ns/transformers/inject_transformer/base_transformer.py82 # Check if module_tree can be fetched from cacheCOMMENT
LOW…transformers/docstring_transformer/base_transformer.py42 # Check if the body contains only the docstring and nothing elseCOMMENT
LOW…s/transformers/globals_transformer/base_transformer.py146 # Check if one is a subset of the otherCOMMENT
LOW…s/transformers/globals_transformer/base_transformer.py559 # Check if the global is already in the stack (potential cyclic dependency)COMMENT
LOW…sive_transformer/native_torch_recursive_transformer.py65 # Check if the function call is one of ivy.utils.decorator_utils, and if so, translateCOMMENT
LOW…sive_transformer/native_torch_recursive_transformer.py83 # Check if the function call is part of the functional API of torch or the standard librariesCOMMENT
LOW…sive_transformer/native_torch_recursive_transformer.py140 # Check if the object's source code is not availableCOMMENT
LOW…transformers/recursive_transformer/base_transformer.py280 # Check if the object should be translatedCOMMENT
LOW…transformers/recursive_transformer/base_transformer.py435 # Check if the base class is an instance of torch.nn.ModuleCOMMENT
LOW…ve_transformer/frontend_torch_recursive_transformer.py115 # Check if the function call is from frontend torch.Tensor or torch.nn.ParameterCOMMENT
LOW…ve_transformer/frontend_torch_recursive_transformer.py120 # Check if the function call is one of ivy.utils.decorator_utils, and if so, translateCOMMENT
LOW…ve_transformer/frontend_torch_recursive_transformer.py138 # Check if the function call is part of the functional API of torch or the standard librariesCOMMENT
LOW…ve_transformer/frontend_torch_recursive_transformer.py188 # Check if the object's source code is not availableCOMMENT
LOW…ers/recursive_transformer/ivy_recursive_transformer.py42 # Check if the parsed code contains a gast.Call nodeCOMMENT
LOW…ers/recursive_transformer/ivy_recursive_transformer.py144 # Check if the function call is one of ivy.utils.decorator_utils, and if so, translateCOMMENT
LOW…ers/recursive_transformer/ivy_recursive_transformer.py163 # Check if the function call is part of the functional API of Ivy or the standard librariesCOMMENT
LOW…ers/recursive_transformer/ivy_recursive_transformer.py194 # Check if the object's source code is not availableCOMMENT
LOWivy/transpiler/utils/inspect_utils.py81 # Check if it's a lambda function and has `.partial_mixed_handler` assignmentCOMMENT
LOWivy/transpiler/utils/inspect_utils.py165 # Check if the object belongs to the Torch frameworkCOMMENT
LOWivy/transpiler/utils/inspect_utils.py174 # Check if the object belongs to the Ivy frameworkCOMMENT
LOWivy/transpiler/utils/inspect_utils.py187 # Check if the object is an instance and not a class itselfCOMMENT
LOWivy/transpiler/utils/inspect_utils.py202 # Check if the object's source code is accessibleCOMMENT
LOWivy/transpiler/utils/cache_utils.py123 # Check if the function name is in the priority listCOMMENT
LOWivy/transpiler/utils/ast_utils.py199 # Check if any element in the tuple is a Name (variable)COMMENT
LOWivy/transpiler/utils/ast_utils.py201 # Check if the value being assigned is a Name (variable)COMMENT
LOWivy/transpiler/utils/ast_utils.py205 # Check if the value being assigned is an attribute (e.g., object.attribute)COMMENT
LOWivy/transpiler/utils/ast_utils.py209 # Check if the value being assigned is a Subscript (e.g., list[index])COMMENT
LOWivy/transpiler/utils/import_utils.py11 # Check if the file already has a .py extension, and if not, add itCOMMENT
LOWivy/transpiler/translations/translator.py236 # Check if the object is in the preloaded cacheCOMMENT
31 more matches not shown…
Over-Commented Block96 hits · 94 pts
SeverityFileLineSnippetContext
LOWsetup.py1# lint as: python3COMMENT
LOWivy/tracer/globals.py21# (used so we will not trace any functions while we are in the middle of tracingCOMMENT
LOWivy/tracer/graph.py1721 # if isinstance(highlight_subgraph, int):COMMENT
LOWivy/tracer/tracer.py681 # if not (glob.is_transpile or glob.is_unify):COMMENT
LOW…er/control_flow_experimental/autograph_ivy/__init__.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…tal/autograph_ivy/core/unsupported_features_checker.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…w_experimental/autograph_ivy/core/function_wrappers.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…trol_flow_experimental/autograph_ivy/core/converter.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…er/control_flow_experimental/autograph_ivy/core/api.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ntrol_flow_experimental/autograph_ivy/core/list_ops.py41 # if isinstance(value, ivy.Array):COMMENT
LOW…flow_experimental/autograph_ivy/operators/variables.py1# Copyright 2019 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ow_experimental/autograph_ivy/operators/py_builtins.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ow_experimental/autograph_ivy/operators/py_builtins.py101 # to the spec https://www.python.org/dev/peps/pep-3135/ .COMMENT
LOW…mental/autograph_ivy/converters/list_comprehensions.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…low_experimental/autograph_ivy/converters/functions.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ol_flow_experimental/autograph_ivy/converters/lists.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ol_flow_experimental/autograph_ivy/converters/lists.py61 #COMMENT
LOW…rimental/autograph_ivy/converters/return_statements.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…_experimental/autograph_ivy/converters/control_flow.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ow_experimental/autograph_ivy/converters/call_trees.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…flow_experimental/autograph_ivy/converters/__init__.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…erimental/autograph_ivy/converters/break_statements.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…mental/autograph_ivy/converters/continue_statements.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…l_flow_experimental/autograph_ivy/converters/slices.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…l_flow_experimental/autograph_ivy/converters/slices.py81#COMMENT
LOW…l_flow_experimental/autograph_ivy/converters/slices.py101# if replacement is not None:COMMENT
LOW…l_flow_experimental/autograph_ivy/converters/slices.py121#COMMENT
LOW…al/autograph_ivy/converters/conditional_expressions.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…er/control_flow_experimental/autograph_ivy/pyct/cfg.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ol_flow_experimental/autograph_ivy/pyct/error_utils.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…control_flow_experimental/autograph_ivy/pyct/naming.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…/control_flow_experimental/autograph_ivy/pyct/cache.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ntrol_flow_experimental/autograph_ivy/pyct/__init__.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…_flow_experimental/autograph_ivy/pyct/inspect_utils.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ntrol_flow_experimental/autograph_ivy/pyct/ast_util.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…control_flow_experimental/autograph_ivy/pyct/parser.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…rol_flow_experimental/autograph_ivy/pyct/transpiler.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…trol_flow_experimental/autograph_ivy/pyct/templates.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…flow_experimental/autograph_ivy/pyct/pretty_printer.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…control_flow_experimental/autograph_ivy/pyct/loader.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ol_flow_experimental/autograph_ivy/pyct/transformer.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…control_flow_experimental/autograph_ivy/pyct/errors.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…trol_flow_experimental/autograph_ivy/pyct/gast_util.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…r/control_flow_experimental/autograph_ivy/pyct/anno.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ol_flow_experimental/autograph_ivy/pyct/origin_info.py1# Copyright 2018 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…rol_flow_experimental/autograph_ivy/pyct/qual_names.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…imental/autograph_ivy/pyct/static_analysis/liveness.py1# Copyright 2018 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…l/autograph_ivy/pyct/static_analysis/type_inference.py1# Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…imental/autograph_ivy/pyct/static_analysis/activity.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…imental/autograph_ivy/pyct/static_analysis/__init__.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…/autograph_ivy/pyct/static_analysis/reaching_fndefs.py1# Copyright 2018 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…perimental/autograph_ivy/pyct/static_analysis/annos.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…graph_ivy/pyct/static_analysis/reaching_definitions.py1# Copyright 2018 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…tograph_ivy/test_suite/call_trees_and_returns_tests.py101COMMENT
LOW…aph_ivy/test_suite/neural_nets_dynamic_control_flow.py101# inputs = ivy.random.random_normal(mean=0, std=1, shape=(1,3,16,16))COMMENT
LOW…nsformers/canonicalize_transformer/base_transformer.py161 # we add the module captured to the transformer.object_module. ThisCOMMENT
LOWivy/transpiler/caching/assets/torch_cache_assets.py41 "atanh",COMMENT
LOWivy/transpiler/caching/assets/torch_cache_assets.py161 "log2",COMMENT
LOWivy/transpiler/caching/assets/torch_cache_assets.py361 # "leaky_relu_",COMMENT
LOWivy/transpiler/caching/assets/torch_cache_assets.py421 # "AdaptiveMaxPool3d",COMMENT
36 more matches not shown…
AI Slop Vocabulary22 hits · 39 pts
SeverityFileLineSnippetContext
LOWivy/func_wrapper.py990 # else just return xCOMMENT
MEDIUMivy/tracer/graph.py140 # TODO: there may be a more robust solution here, which doesn't risk having cached args in the wrong locCOMMENT
LOWivy/tracer/wrapping.py98 # to, type, as_tensor sometimes just return their inputs- they dont edit inplaceCOMMENT
MEDIUM…_flow_experimental/autograph_ivy/pyct/inspect_utils.py278 # namespace. This is inefficient but more robust a method.COMMENT
MEDIUM…control_flow_experimental/autograph_ivy/pyct/parser.py264 # This method is more robust that just calling inspect.getsource(mod), as itCOMMENT
LOWivy/transpiler/main.py441 # If there's an error, just return the original resultCOMMENT
LOW…nsformers/canonicalize_transformer/base_transformer.py173 # the canonical name, just use that canonical name as the return valueCOMMENT
LOW…rocessing_transformer/ivy_preprocessing_transformer.py176 # we modify them so that rather than a function call, we just return return theCOMMENT
MEDIUM…ocessing_transformer/ivy_postprocessing_transformer.py232 # TODO: add a more robust fix for this (eg: self.layers.conv2d.weight.data --> self.layers.conv2d.weight)COMMENT
LOW…s/transformers/globals_transformer/base_transformer.py556 # now simply return the assignment target (ie: the cached global)COMMENT
LOW…/translations/configurations/base_translator_config.py62 # If the key doesn't exist, simply add itCOMMENT
LOWivy/data_classes/array/statistical.py721 >>> C = A.einsum('i,i->', B) # or just use 'i,i'STRING
LOWivy/data_classes/array/conversions.py76 # simply return the array as isCOMMENT
LOWivy/data_classes/container/base.py416 # if inputs are not dicts, then simply return the right-most valueCOMMENT
LOWivy/utils/backend/handler.py467 # if the backend stack is empty, nothing is done then we just return `None`COMMENT
LOWivy/functional/ivy/statistical.py1261 >>> C = ivy.einsum('i,i->', A, B) # or just use 'i,i'STRING
LOWivy/functional/ivy/experimental/linear_algebra.py783 # Khatri-rao of only one matrix: just return that matrixCOMMENT
LOWivy/functional/frontends/xgboost/sklearn.py273 # skip the validation, as for now we simply call the predict method ofCOMMENT
LOWivy/functional/frontends/paddle/func_wrapper.py33 # else just return xCOMMENT
LOWivy/functional/frontends/torch/func_wrapper.py123 # else just return xCOMMENT
LOW…est_ivy/test_functional/test_core/test_manipulation.py327 constant = float(value[0].flat[0]) # just use the first value as fill valueCODE
MEDIUM…s/test_ivy/helpers/hypothesis_helpers/array_helpers.py1866 # ValueError: `strides > 1` not supported in conjunction with `dilation_rate > 1`COMMENT
Cross-Language Confusion11 hits · 38 pts
SeverityFileLineSnippetContext
HIGH…er/control_flow_experimental/autograph_ivy/core/ops.py58 self.push(CODE
HIGH…_experimental/autograph_ivy/converters/control_flow.py161 return scope_vars, undefined, noutsCODE
HIGH…_experimental/autograph_ivy/converters/control_flow.py183 cond_vars, undefined, _ = self._get_block_vars(CODE
HIGH…_experimental/autograph_ivy/converters/control_flow.py187 undefined_assigns = self._create_undefined_assigns(undefined)CODE
HIGH…_experimental/autograph_ivy/converters/control_flow.py237 loop_vars, undefined, _ = self._get_block_vars(node, body_scope.bound)STRING
HIGH…_experimental/autograph_ivy/converters/control_flow.py239 undefined_assigns = self._create_undefined_assigns(undefined)STRING
HIGH…_experimental/autograph_ivy/converters/control_flow.py283 loop_vars, undefined, _ = self._get_block_vars(STRING
HIGH…_experimental/autograph_ivy/converters/control_flow.py287 undefined_assigns = self._create_undefined_assigns(undefined)STRING
HIGHivy/data_classes/array/experimental/statistical.py452 Treat the input as undefined, but it willSTRING
HIGHivy/data_classes/container/experimental/statistical.py1134 the contents of the input array.Treat the input as undefined,STRING
HIGHivy/functional/ivy/experimental/statistical.py521 Treat the input as undefined, but it will probably be fully or partially sorted.STRING
Docstring Block Structure7 hits · 35 pts
SeverityFileLineSnippetContext
HIGH…_flow_experimental/autograph_ivy/pyct/inspect_utils.py236Resolves a function's owner, e.g. a method's class. Note that this returns the object that the function was reSTRING
HIGH…ntrol_flow_experimental/autograph_ivy/pyct/ast_util.py278Walks two ASTs in parallel. The two trees must have identical structure. Args: node: Union[ast.AST, ItSTRING
HIGH…control_flow_experimental/autograph_ivy/pyct/parser.py362Returns the AST of given identifier. Args: src: A piece of code that represents a single Python expression STRING
HIGH…rol_flow_experimental/autograph_ivy/pyct/transpiler.py282Transforms a Python object. Users typically call this method. Args: obj: A Python object, STRING
HIGH…trol_flow_experimental/autograph_ivy/pyct/templates.py237Replaces placeholders in a Python template. AST Name and Tuple nodes always receive the context that inferred from STRING
HIGH…s/transformers/globals_transformer/base_transformer.py473 Process and add global variables to the transformer's global list. This method handles the complexitieSTRING
HIGHivy/transpiler/ast/analysis.py133 Analyze a collection of modules and gather information about their imports and internal definitions. This funcSTRING
Verbosity Indicators12 hits · 23 pts
SeverityFileLineSnippetContext
LOW…g_transformer/ivy_to_jax_postprocessing_transformer.py162 # Step 1: Modify the default value of keep_input_dtype to TrueCOMMENT
LOW…g_transformer/ivy_to_jax_postprocessing_transformer.py165 # Step 2: Modify assignment nodes to use val_native on the right-hand sideCOMMENT
LOW…g_transformer/ivy_to_jax_postprocessing_transformer.py168 # Step 3: Replace `if tensorflow_is_ivy_array_bknd(x)` with `x = x_native`COMMENT
LOW…transformer/ivy_to_numpy_postprocessing_transformer.py163 # Step 1: Modify the default value of keep_input_dtype to TrueCOMMENT
LOW…transformer/ivy_to_numpy_postprocessing_transformer.py166 # Step 2: Modify assignment nodes to use val_native on the right-hand sideCOMMENT
LOW…transformer/ivy_to_numpy_postprocessing_transformer.py169 # Step 3: Replace `if tensorflow_is_ivy_array_bknd(x)` with `x = x_native`COMMENT
LOW…ng_transformer/ivy_to_tf_postprocessing_transformer.py298 # Step 1: Modify the default value of keep_input_dtype to TrueCOMMENT
LOW…ng_transformer/ivy_to_tf_postprocessing_transformer.py301 # Step 2: Modify assignment nodes to use val_native on the right-hand sideCOMMENT
LOW…ng_transformer/ivy_to_tf_postprocessing_transformer.py304 # Step 3: Replace `if tensorflow_is_ivy_array_bknd(x)` with `x = x_native`COMMENT
LOWivy/functional/ivy/linear_algebra.py1888 The purpose of this function is to calculate the determinant more accuratelyCODE
LOWivy/functional/ivy/elementwise.py2526 The purpose of this function is to calculate ``exp(x)-1.0`` more accurately whenCODE
LOWivy/functional/ivy/elementwise.py4059 The purpose of this function is to calculate ``log(1+x)`` more accuratelyCODE
Structural Annotation Overuse9 hits · 20 pts
SeverityFileLineSnippetContext
LOW…g_transformer/ivy_to_jax_postprocessing_transformer.py162 # Step 1: Modify the default value of keep_input_dtype to TrueCOMMENT
LOW…g_transformer/ivy_to_jax_postprocessing_transformer.py165 # Step 2: Modify assignment nodes to use val_native on the right-hand sideCOMMENT
LOW…g_transformer/ivy_to_jax_postprocessing_transformer.py168 # Step 3: Replace `if tensorflow_is_ivy_array_bknd(x)` with `x = x_native`COMMENT
LOW…transformer/ivy_to_numpy_postprocessing_transformer.py163 # Step 1: Modify the default value of keep_input_dtype to TrueCOMMENT
LOW…transformer/ivy_to_numpy_postprocessing_transformer.py166 # Step 2: Modify assignment nodes to use val_native on the right-hand sideCOMMENT
LOW…transformer/ivy_to_numpy_postprocessing_transformer.py169 # Step 3: Replace `if tensorflow_is_ivy_array_bknd(x)` with `x = x_native`COMMENT
LOW…ng_transformer/ivy_to_tf_postprocessing_transformer.py298 # Step 1: Modify the default value of keep_input_dtype to TrueCOMMENT
LOW…ng_transformer/ivy_to_tf_postprocessing_transformer.py301 # Step 2: Modify assignment nodes to use val_native on the right-hand sideCOMMENT
LOW…ng_transformer/ivy_to_tf_postprocessing_transformer.py304 # Step 3: Replace `if tensorflow_is_ivy_array_bknd(x)` with `x = x_native`COMMENT
Modern Structural Boilerplate20 hits · 20 pts
SeverityFileLineSnippetContext
LOWivy/__init__.py1198def set_cython_wrappers_mode(flag=True) -> None:CODE
LOWivy/transpiler/core/__init__.py4__all__ = [CODE
LOW…piler/transformations/transformers/base_transformer.py4__all__ = []CODE
LOWivy/transpiler/utils/conversion_utils.py9__all__ = []CODE
LOWivy/transpiler/utils/logging_utils.py7__all__ = []CODE
LOWivy/utils/logging.py35__all__ = ["set_logging_mode", "unset_logging_mode"]CODE
LOWivy/functional/ivy/device.py287def set_soft_device_mode(mode: bool) -> None:CODE
LOWivy/functional/ivy/device.py839def set_default_device(device: Union[ivy.Device, ivy.NativeDevice], /) -> None:CODE
LOWivy/functional/ivy/__init__.py47__all__ = [CODE
LOWivy/functional/ivy/general.py101def set_precise_mode(mode: bool) -> None:CODE
LOWivy/functional/ivy/general.py417def set_array_mode(mode: bool) -> None:CODE
LOWivy/functional/ivy/general.py471def set_nestable_mode(mode: bool) -> None:CODE
LOWivy/functional/ivy/general.py523def set_exception_trace_mode(mode: Literal["ivy", "full", "frontend"]) -> None:CODE
LOWivy/functional/ivy/general.py581def set_show_func_wrapper_trace_mode(mode: bool) -> None:CODE
LOWivy/functional/ivy/general.py2089def set_min_denominator(val: float) -> None:CODE
LOWivy/functional/ivy/general.py2143def set_min_base(val: float) -> None:CODE
LOWivy/functional/ivy/general.py2534def set_tmp_dir(tmp_dr: str) -> None:CODE
LOWivy/functional/ivy/general.py3267def set_inplace_mode(mode: str = "lenient") -> None:CODE
LOWivy/functional/ivy/general.py3944def set_shape_array_mode(mode: bool) -> None:CODE
LOWivy/functional/ivy/experimental/__init__.py25__all__ = [CODE
Dead Code6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…ng_transformer/ivy_to_tf_postprocessing_transformer.py174CODE
MEDIUM…ng_transformer/ivy_to_tf_postprocessing_transformer.py177CODE
MEDIUM…ng_transformer/ivy_to_tf_postprocessing_transformer.py180CODE
MEDIUM…ng_transformer/ivy_to_tf_postprocessing_transformer.py184CODE
MEDIUM…ng_transformer/ivy_to_tf_postprocessing_transformer.py196CODE
MEDIUM…ng_transformer/ivy_to_tf_postprocessing_transformer.py197CODE
TODO Padding8 hits · 12 pts
SeverityFileLineSnippetContext
LOWivy/module/torch_module.py100 # TODO: implement dtype setting of the parameters hereCOMMENT
LOWivy/utils/backend/sub_backend_handler.py54 # TODO: add testsCOMMENT
LOWivy/utils/backend/sub_backend_handler.py104 # TODO: add testsCOMMENT
LOWivy/functional/ivy/nest.py1220 # TODO: add tests for thisCOMMENT
LOW…unctional/frontends/sklearn/metrics/_classification.py9 # TODO: implement sample_weightCOMMENT
LOW…functional/frontends/sklearn/model_selection/_split.py115 # TODO: implement stratifyCOMMENT
LOWivy/functional/frontends/jax/numpy/logic.py211 # TODO: implementCOMMENT
LOWivy/functional/frontends/pandas/generic.py55 pass # TODO: implement string seriesCODE
Overly Generic Function Names11 hits · 8 pts
SeverityFileLineSnippetContext
LOW…utograph_ivy/test_suite/loops_and_conditional_tests.py8def test_function(func, *args, backends=IVY_BACKENDS, **kwargs):CODE
LOW…tograph_ivy/test_suite/call_trees_and_returns_tests.py8def test_function(func, *args, backends=IVY_BACKENDS, **kwargs):CODE
LOW…/autograph_ivy/test_suite/breaks_and_continue_tests.py8def test_function(func, *args, backends=IVY_BACKENDS, **kwargs):CODE
LOW…aph_ivy/test_suite/neural_nets_dynamic_control_flow.py7def test_function(func_class, data, *constructor_args, backends=IVY_BACKENDS):CODE
LOWivy/transpiler/ast/analysis.py31 ... def my_function():STRING
LOWivy/transpiler/ast/analysis.py62 ... def my_function(a, b, *args, **kwargs):STRING
LOWivy/transpiler/ast/utils.py29 ... def my_method(self):STRING
LOWivy/transpiler/ast/utils.py32 ... def my_function():STRING
LOW…ions/name_canonicalize_transformers/examples/func_2.py5def process_data(data):CODE
LOWivy_tests/test_transpiler/sourcegen/test_sourcegen.py15 def test_function(tensorflow_param: tensorflow_param_type = tensorflow_default) -> tensorflow_return_type:STRING
LOWivy_tests/test_ivy/helpers/function_testing.py438def test_function(CODE