Repository Analysis

recommenders-team/recommenders

Best Practices on Recommendation Systems

14.6 Low AI signal View on GitHub
14.6
Adjusted Score
14.6
Raw Score
100%
Time Factor
2026-05-26
Last Push
21,721
Stars
Python
Language
52,430
Lines of Code
337
Files
472
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 8HIGH 14MEDIUM 51LOW 399

Pattern Findings

472 matches across 14 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers216 hits · 222 pts
SeverityFileLineSnippet
LOWtools/databricks_install.py133def prepare_for_operationalization(
LOWtests/conftest.py133def train_test_dummy_timestamp(pandas_dummy_timestamp):
LOWtests/conftest.py435def dataset_ncf_files_unsorted(data_paths, dataset_ncf_files):
LOWtests/conftest.py462def dataset_ncf_files_missing_column(data_paths, dataset_ncf_files):
LOWtests/README.md168def test_sar_single_node_runs(notebooks, output_notebook, kernel_name):
LOWtests/README.md203def test_sar_single_node_smoke(notebooks, output_notebook, kernel_name):
LOWtests/smoke/examples/test_notebooks_python.py15def test_sar_single_node_smoke(notebooks, output_notebook, kernel_name):
LOWtests/smoke/examples/test_notebooks_python.py32def test_baseline_deep_dive_smoke(notebooks, output_notebook, kernel_name):
LOWtests/smoke/examples/test_notebooks_python.py97def test_lightgbm_quickstart_smoke(notebooks, output_notebook, kernel_name):
LOWtests/smoke/examples/test_notebooks_python.py121def test_lightgbm_movielens_smoke(notebooks, output_notebook, kernel_name):
LOWtests/smoke/examples/test_notebooks_pyspark.py45def test_mmlspark_lightgbm_criteo_smoke(notebooks, output_notebook, kernel_name):
LOW…sts/unit/recommenders/datasets/test_python_splitter.py350def test_int_numpy_stratified_splitter(test_specs, python_int_dataset):
LOW…sts/unit/recommenders/datasets/test_python_splitter.py394def test_float_numpy_stratified_splitter(test_specs, python_float_dataset):
LOWtests/unit/recommenders/datasets/test_download_utils.py37def test_maybe_download_wrong_bytes(caplog, files_fixtures):
LOWtests/unit/recommenders/datasets/test_download_utils.py50def test_maybe_download_maybe(caplog, files_fixtures):
LOWtests/unit/recommenders/datasets/test_download_utils.py64def test_maybe_download_retry(caplog):
LOWtests/unit/recommenders/datasets/test_download_utils.py74def test_maybe_download_sets_default_timeout(tmp_path, monkeypatch):
LOWtests/unit/recommenders/datasets/test_download_utils.py112def test_maybe_download_redownloads_corrupt_zip(tmp, caplog):
LOW…sts/unit/recommenders/datasets/test_pandas_df_utils.py34def test_negative_feedback_sampler():
LOWtests/unit/recommenders/utils/test_gpu_utils.py24def test_get_number_gpus_without_torch(monkeypatch):
LOWtests/unit/recommenders/utils/test_gpu_utils.py53def test_clear_memory_all_gpus():
LOWtests/unit/recommenders/utils/test_python_utils.py98def test_get_top_k_scored_items(scores):
LOWtests/unit/recommenders/utils/test_notebook_utils.py120def test_notebook_execution_with_parameters(
LOWtests/unit/recommenders/utils/test_notebook_utils.py141def test_notebook_execution_value_error_fails(
LOWtests/unit/recommenders/utils/test_general_utils.py14def test_get_number_processors():
LOWtests/unit/recommenders/utils/test_timer.py29def test_interval_before_stop(t):
LOWtests/unit/recommenders/models/test_sar_singlenode.py302def test_get_popularity_based_topk(header):
LOWtests/unit/recommenders/models/test_sar_singlenode.py324def test_get_normalized_scores(header):
LOWtests/unit/recommenders/models/test_sar_singlenode.py383def test_match_similarity_type_from_json_file(header):
LOWtests/unit/recommenders/models/test_sar_singlenode.py406def test_dataset_with_duplicates(header):
LOWtests/unit/recommenders/models/test_sar_singlenode.py419def test_get_topk_most_similar_users(header):
LOWtests/unit/recommenders/models/test_ncf_dataset.py79def test_datafile_init_unsorted(dataset_ncf_files_unsorted):
LOWtests/unit/recommenders/models/test_ncf_dataset.py107def test_datafile_missing_column(dataset_ncf_files_missing_column):
LOWtests/unit/recommenders/models/test_tfidf_utils.py111def test_recommend_top_k_items(model_fit, df_clean):
LOWtests/unit/recommenders/models/test_tfidf_utils.py116def test_get_top_k_recommendations(model_fit, df_clean):
LOWtests/unit/recommenders/models/test_deeprec_model.py117def test_xdeepfm_component_definition(deeprec_resource_path):
LOWtests/unit/recommenders/models/test_deeprec_model.py144def test_dkn_component_definition(dkn_files):
LOWtests/unit/recommenders/models/test_deeprec_model.py227def test_slirec_component_definition(sequential_files, deeprec_config_path):
LOWtests/unit/recommenders/models/test_deeprec_model.py264def test_nextitnet_component_definition(sequential_files, deeprec_config_path):
LOWtests/unit/recommenders/models/test_deeprec_model.py302def test_sum_component_definition(sequential_files, deeprec_config_path):
LOWtests/unit/recommenders/models/test_deeprec_model.py340def test_lightgcn_component_definition():
LOWtests/unit/recommenders/models/test_sasrec_model.py178def test_split_default_parameters(temp_data_file):
LOWtests/unit/recommenders/models/test_sasrec_model.py241def test_split_invalid_min_interactions(temp_data_file):
LOWtests/unit/recommenders/models/test_newsrec_model.py21def test_nrms_component_definition(mind_resource_path):
LOWtests/unit/recommenders/models/test_newsrec_model.py51def test_naml_component_definition(mind_resource_path):
LOWtests/unit/recommenders/models/test_newsrec_model.py85def test_npa_component_definition(mind_resource_path):
LOWtests/unit/recommenders/models/test_newsrec_model.py115def test_lstur_component_definition(mind_resource_path):
LOWtests/unit/recommenders/models/test_embdotbias_model.py56def test_embedding_dot_bias_weight_method(sample_classes):
LOWtests/unit/recommenders/models/test_embdotbias_model.py72def test_embedding_dot_bias_from_classes(sample_classes):
LOWtests/unit/recommenders/models/test_embdotbias_model.py86def test_embedding_dot_bias_init(sample_model_params):
LOWtests/unit/recommenders/models/test_embdotbias_model.py98def test_embedding_dot_bias_forward(sample_model_params):
LOWtests/unit/recommenders/models/test_embdotbias_utils.py33def test_cartesian_product_two_arrays():
LOWtests/unit/recommenders/models/test_embdotbias_utils.py41def test_cartesian_product_three_arrays():
LOWtests/unit/recommenders/models/test_embdotbias_utils.py61def test_cartesian_product_single_array():
LOWtests/unit/recommenders/models/test_embdotbias_utils.py68def test_cartesian_product_empty_array():
LOWtests/unit/recommenders/models/test_wide_deep_utils.py178def test_wide_deep_model_with_item_features(pd_df):
LOWtests/unit/recommenders/models/test_wide_deep_utils.py235def test_recommend_k_items_with_item_features(pd_df):
LOWtests/unit/recommenders/models/test_wide_deep_utils.py296def test_seed_reproducibility(pd_df):
LOWtests/unit/recommenders/tuning/test_nni_utils.py58def test_get_experiment_status():
LOWtests/unit/recommenders/tuning/test_nni_utils.py71def test_check_experiment_status_done():
156 more matches not shown…
Decorative Section Separators36 hits · 140 pts
SeverityFileLineSnippet
MEDIUM…models/deeprec/models/sequential/rnn_cell_implement.py14# ==============================================================================
MEDIUMrecommenders/models/wide_deep/wide_deep_utils.py184 # ------------------------------------------------------------------
MEDIUMrecommenders/models/wide_deep/wide_deep_utils.py186 # ------------------------------------------------------------------
MEDIUMrecommenders/models/wide_deep/wide_deep_utils.py427# ---------------------------------------------------------------------------
MEDIUMrecommenders/models/wide_deep/wide_deep_utils.py429# ---------------------------------------------------------------------------
MEDIUM.github/workflows/self-hosted-runner.yml1# ---------------------------------------------------------
MEDIUM.github/workflows/self-hosted-runner.yml4# ---------------------------------------------------------
MEDIUM.github/workflows/compshare-vm.yml1# ---------------------------------------------------------
MEDIUM.github/workflows/compshare-vm.yml4# ---------------------------------------------------------
MEDIUM.github/workflows/unit-tests.yml1# ---------------------------------------------------------
MEDIUM.github/workflows/unit-tests.yml4# ---------------------------------------------------------
MEDIUM.github/workflows/sarplus.yml1# ---------------------------------------------------------
MEDIUM.github/workflows/sarplus.yml4# ---------------------------------------------------------
MEDIUM.github/workflows/spark-nightly.yml1# ---------------------------------------------------------
MEDIUM.github/workflows/spark-nightly.yml4# ---------------------------------------------------------
MEDIUM.github/workflows/spark-nightly.yml9 # ┌───────────── minute (0 - 59)
MEDIUM.github/workflows/spark-nightly.yml10 # │ ┌───────────── hour (0 - 23)
MEDIUM.github/workflows/spark-nightly.yml11 # │ │ ┌───────────── day of the month (1 - 31)
MEDIUM.github/workflows/spark-nightly.yml12 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
MEDIUM.github/workflows/spark-nightly.yml13 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
MEDIUM.github/workflows/gpu-nightly.yml1# ---------------------------------------------------------
MEDIUM.github/workflows/gpu-nightly.yml4# ---------------------------------------------------------
MEDIUM.github/workflows/gpu-nightly.yml9 # ┌───────────── minute (0 - 59)
MEDIUM.github/workflows/gpu-nightly.yml10 # │ ┌───────────── hour (0 - 23)
MEDIUM.github/workflows/gpu-nightly.yml11 # │ │ ┌───────────── day of the month (1 - 31)
MEDIUM.github/workflows/gpu-nightly.yml12 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
MEDIUM.github/workflows/gpu-nightly.yml13 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
MEDIUM.github/workflows/cpu-nightly.yml1# ---------------------------------------------------------
MEDIUM.github/workflows/cpu-nightly.yml4# ---------------------------------------------------------
MEDIUM.github/workflows/cpu-nightly.yml9 # ┌───────────── minute (0 - 59)
MEDIUM.github/workflows/cpu-nightly.yml10 # │ ┌───────────── hour (0 - 23)
MEDIUM.github/workflows/cpu-nightly.yml11 # │ │ ┌───────────── day of the month (1 - 31)
MEDIUM.github/workflows/cpu-nightly.yml12 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
MEDIUM.github/workflows/cpu-nightly.yml13 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
MEDIUM.github/workflows/update_documentation.yml1# ---------------------------------------------------------
MEDIUM.github/workflows/update_documentation.yml4# ---------------------------------------------------------
Hallucination Indicators8 hits · 100 pts
SeverityFileLineSnippet
CRITICALrecommenders/utils/tf_utils.py272 self.summary_writer = tf.compat.v1.summary.FileWriterCache.get(
CRITICALrecommenders/models/newsrec/models/base_model.py68 tf.compat.v1.keras.backend.set_session(sess)
CRITICALrecommenders/models/deeprec/models/dkn.py402 initializer=tf.compat.v1.keras.initializers.VarianceScaling(
CRITICALrecommenders/models/deeprec/models/dkn_item2item.py77 initializer=tf.compat.v1.keras.initializers.VarianceScaling(
CRITICALrecommenders/models/deeprec/models/base_model.py183 return tf.compat.v1.keras.initializers.VarianceScaling(
CRITICALrecommenders/models/deeprec/models/base_model.py190 return tf.compat.v1.keras.initializers.VarianceScaling(
CRITICALrecommenders/models/deeprec/models/base_model.py197 return tf.compat.v1.keras.initializers.VarianceScaling(
CRITICALrecommenders/models/deeprec/models/base_model.py204 return tf.compat.v1.keras.initializers.VarianceScaling(
Over-Commented Block61 hits · 61 pts
SeverityFileLineSnippet
LOWtools/ci/compshare/utils.sh1#! /bin/bash -
LOWtools/ci/compshare/utils.sh21 # "GPUType": "P40",
LOWtools/ci/compshare/utils.sh121
LOWtools/ci/compshare/setup_vm.sh1#! /bin/bash -
LOWtools/ci/compshare/install_docker.sh1#! /bin/bash -
LOWtools/ci/compshare/delete_vm.sh1#! /bin/bash -
LOWtests/test_groups.yml1# Copyright (c) Recommenders contributors.
LOWtests/__init__.py1# Needed to execute the AzureML tests
LOWtests/smoke/__init__.py1# Needed to execute the AzureML tests
LOWtests/smoke/recommenders/__init__.py1# Needed to execute the AzureML tests
LOWtests/smoke/recommenders/models/__init__.py1# Needed to execute the AzureML tests
LOWtests/smoke/examples/__init__.py1# Needed to execute the AzureML tests
LOWtests/unit/__init__.py1# Needed to execute the AzureML tests
LOWtests/unit/recommenders/__init__.py1# Needed to execute the AzureML tests
LOWtests/unit/recommenders/datasets/__init__.py1# Needed to execute the AzureML tests
LOWtests/unit/recommenders/utils/__init__.py1# Needed to execute the AzureML tests
LOWtests/unit/recommenders/models/__init__.py1# Needed to execute the AzureML tests
LOWtests/unit/recommenders/tuning/__init__.py1# Needed to execute the AzureML tests
LOWtests/unit/recommenders/evaluation/__init__.py1# Needed to execute the AzureML tests
LOWtests/unit/examples/__init__.py1# Needed to execute the AzureML tests
LOWtests/responsible_ai/__init__.py1# Needed to execute the AzureML tests
LOWtests/responsible_ai/recommenders/__init__.py1# Needed to execute the AzureML tests
LOWtests/responsible_ai/recommenders/datasets/__init__.py1# Needed to execute the AzureML tests
LOWtests/security/__init__.py1# Needed to execute the AzureML tests
LOWtests/integration/__init__.py1# Needed to execute the AzureML tests
LOWtests/integration/recommenders/__init__.py1# Needed to execute the AzureML tests
LOWtests/integration/recommenders/utils/__init__.py1# Needed to execute the AzureML tests
LOWtests/data_validation/__init__.py1# Needed to execute the AzureML tests
LOWtests/data_validation/recommenders/__init__.py1# Needed to execute the AzureML tests
LOWtests/data_validation/recommenders/datasets/__init__.py1# Needed to execute the AzureML tests
LOWtests/data_validation/examples/__init__.py1# Needed to execute the AzureML tests
LOWtests/regression/__init__.py1# Needed to execute the AzureML tests
LOWtests/performance/__init__.py1# Needed to execute the AzureML tests
LOWtests/performance/recommenders/__init__.py1# Needed to execute the AzureML tests
LOWtests/performance/recommenders/evaluation/__init__.py1# Needed to execute the AzureML tests
LOWtests/functional/__init__.py1# Needed to execute the AzureML tests
LOWtests/functional/examples/__init__.py1# Needed to execute the AzureML tests
LOWcontrib/sarplus/README.md81)
LOWcontrib/sarplus/README.md101# ```python
LOWcontrib/sarplus/README.md121# col_rating="rating",
LOWcontrib/sarplus/python/src/pysarplus.cpp1/*
LOWrecommenders/utils/notebook_memory_management.py1# Original code: https://raw.githubusercontent.com/miguelgfierro/codebase/master/python/system/notebook_memory_managemen
LOW…models/deeprec/models/sequential/rnn_cell_implement.py1# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
LOW…amples/07_tutorials/KDD2020-tutorial/reco_gpu_kdd.yaml1#
LOW…amples/07_tutorials/KDD2020-tutorial/reco_cpu_kdd.yaml1#
LOW…les/07_tutorials/KDD2020-tutorial/utils/data_helper.py61# Returns:
LOW.github/workflows/self-hosted-runner.yml1# ---------------------------------------------------------
LOW.github/workflows/compshare-vm.yml1# ---------------------------------------------------------
LOW.github/workflows/sarplus.yml1# ---------------------------------------------------------
LOW.github/workflows/spark-nightly.yml1# ---------------------------------------------------------
LOW.github/workflows/gpu-nightly.yml1# ---------------------------------------------------------
LOW.github/workflows/cpu-nightly.yml1# ---------------------------------------------------------
LOW.github/workflows/tools/compshare/utils.sh1#! /bin/bash -
LOW.github/workflows/tools/compshare/utils.sh21 # "GPUType": "P40",
LOW.github/workflows/tools/compshare/utils.sh181 response="$(curl -sSf "${request_url}")"
LOW.github/workflows/tools/compshare/utils.sh361 | .[0] | [path(..)]
LOW.github/workflows/tools/compshare/setup_vm.sh1#! /bin/bash -
LOW.github/workflows/tools/compshare/setup_vm.sh21#
LOW.github/workflows/tools/compshare/install_docker.sh1#! /bin/bash -
LOW.github/workflows/tools/compshare/delete_vm.sh1#! /bin/bash -
1 more matches not shown…
Deep Nesting51 hits · 51 pts
SeverityFileLineSnippet
LOWtests/unit/recommenders/utils/test_tf_utils.py41
LOWtests/unit/recommenders/models/test_sasrec_model.py40
LOWrecommenders/datasets/mind.py274
LOWrecommenders/datasets/mind.py409
LOWrecommenders/datasets/pandas_df_utils.py182
LOWrecommenders/datasets/download_utils.py20
LOWrecommenders/datasets/wikidata.py263
LOWrecommenders/datasets/amazon_reviews.py192
LOWrecommenders/datasets/amazon_reviews.py266
LOWrecommenders/datasets/amazon_reviews.py459
LOWrecommenders/utils/gpu_utils.py101
LOWrecommenders/utils/gpu_utils.py108
LOWrecommenders/utils/tf_utils.py25
LOWrecommenders/utils/tf_utils.py40
LOWrecommenders/utils/notebook_utils.py130
LOWrecommenders/models/newsrec/newsrec_utils.py82
LOWrecommenders/models/deeprec/deeprec_utils.py134
LOWrecommenders/models/deeprec/deeprec_utils.py514
LOWrecommenders/models/deeprec/io/nextitnet_iterator.py72
LOWrecommenders/models/deeprec/io/sequential_iterator.py277
LOWrecommenders/models/deeprec/models/dkn.py349
LOWrecommenders/models/deeprec/models/base_model.py169
LOWrecommenders/models/deeprec/models/base_model.py215
LOWrecommenders/models/deeprec/models/base_model.py274
LOWrecommenders/models/deeprec/models/base_model.py339
LOWrecommenders/models/deeprec/models/base_model.py652
LOWrecommenders/models/deeprec/models/xDeepFM.py161
LOWrecommenders/models/deeprec/models/xDeepFM.py295
LOW…els/deeprec/models/sequential/sequential_base_model.py76
LOW…models/deeprec/models/sequential/rnn_cell_implement.py128
LOW…models/deeprec/models/sequential/rnn_cell_implement.py393
LOW…models/deeprec/models/sequential/rnn_cell_implement.py594
LOWrecommenders/models/deeprec/models/graphrec/lightgcn.py372
LOWrecommenders/models/rlrmc/conjugate_gradient_ms.py56
LOWrecommenders/models/sar/sar_singlenode.py226
LOWrecommenders/models/ncf/ncf_singlenode.py180
LOWrecommenders/models/ncf/dataset.py142
LOWrecommenders/models/ncf/dataset.py404
LOWrecommenders/models/wide_deep/wide_deep_utils.py509
LOWrecommenders/models/sasrec/model.py461
LOWrecommenders/models/sasrec/model.py657
LOWrecommenders/models/sasrec/model.py784
LOWrecommenders/models/sasrec/model.py881
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py22
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py236
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py293
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py356
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py487
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py552
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py635
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py742
Self-Referential Comments14 hits · 40 pts
SeverityFileLineSnippet
MEDIUMtools/databricks_install.py238 # Create a cluster if flagged
MEDIUMtools/ci/compshare/utils.sh127 # Create a VM instance
MEDIUMtools/ci/compshare/utils.sh243 # Create a VM with random names and password from available types
MEDIUMtools/ci/compshare/setup_vm.sh7# Create a CompShare VM and prepare the environment for testing
MEDIUMtests/unit/recommenders/models/test_embdotbias_utils.py79 # Create a dummy model
MEDIUMrecommenders/utils/notebook_utils.py59 # Define a regular expression pattern to match parameter assignments and ignore comments
MEDIUMrecommenders/utils/notebook_utils.py98 # Create an execution preprocessor
MEDIUMrecommenders/models/deeprec/models/dkn.py385 # Create a convolution + maxpool layer for each filter size
MEDIUMrecommenders/models/embdotbias/model.py99 # Create a mapping from entity ID (user or item) to its integer index in the embedding matrix
MEDIUMrecommenders/models/tfidf/tfidf_utils.py37 # Initialize other variables used in this class
MEDIUMrecommenders/models/rbm/rbm.py451 # Create the data pipeline for faster training
MEDIUM.github/workflows/tools/compshare/utils.sh192 # Create a VM instance
MEDIUM.github/workflows/tools/compshare/utils.sh369 # Create a VM with random names and password from available types
MEDIUM.github/workflows/tools/compshare/setup_vm.sh7# Create a CompShare VM and prepare the environment for testing
Cross-File Repetition7 hits · 35 pts
SeverityFileLineSnippet
HIGHtests/conftest.py0helper function to generate random timestamps. reference: https://stackoverflow.com/questions/41006182/generate-random-d
HIGH…sts/unit/recommenders/datasets/test_python_splitter.py0helper function to generate random timestamps. reference: https://stackoverflow.com/questions/41006182/generate-random-d
HIGHtests/unit/recommenders/datasets/test_sparse.py0helper function to generate random timestamps. reference: https://stackoverflow.com/questions/41006182/generate-random-d
HIGHrecommenders/models/deeprec/io/iterator.py0construct a dictionary that maps graph elements to values. args: data_dict (dict): a dictionary that maps string name to
HIGHrecommenders/models/deeprec/io/dkn_iterator.py0construct a dictionary that maps graph elements to values. args: data_dict (dict): a dictionary that maps string name to
HIGHrecommenders/models/deeprec/io/dkn_iterator.py0construct a dictionary that maps graph elements to values. args: data_dict (dict): a dictionary that maps string name to
HIGHrecommenders/models/deeprec/io/sequential_iterator.py0construct a dictionary that maps graph elements to values. args: data_dict (dict): a dictionary that maps string name to
Unused Imports30 hits · 30 pts
SeverityFileLineSnippet
LOWtests/unit/recommenders/models/test_sar_singlenode.py5
LOWtests/unit/recommenders/models/test_embdotbias_model.py7
LOWtests/unit/examples/test_notebooks_python.py5
LOWtests/regression/test_compatibility_tf.py13
LOWtests/regression/test_compatibility_tf.py14
LOWcontrib/sarplus/python/pysarplus/__init__.py6
LOWcontrib/sarplus/python/pysarplus/__init__.py7
LOWrecommenders/datasets/python_splitters.py4
LOWrecommenders/utils/notebook_memory_management.py14
LOWrecommenders/utils/notebook_memory_management.py15
LOWrecommenders/utils/notebook_memory_management.py16
LOWrecommenders/utils/notebook_memory_management.py17
LOWrecommenders/utils/spark_utils.py8
LOW…models/deeprec/models/sequential/rnn_cell_implement.py23
LOW…models/deeprec/models/sequential/rnn_cell_implement.py24
LOW…models/deeprec/models/sequential/rnn_cell_implement.py25
LOWrecommenders/models/deeprec/models/graphrec/lightgcn.py4
LOWrecommenders/models/rlrmc/conjugate_gradient_ms.py6
LOWrecommenders/models/rlrmc/conjugate_gradient_ms.py6
LOWrecommenders/models/embdotbias/training_utils.py9
LOWrecommenders/models/embdotbias/training_utils.py9
LOWrecommenders/models/embdotbias/training_utils.py9
LOWrecommenders/models/embdotbias/training_utils.py9
LOWrecommenders/models/embdotbias/training_utils.py9
LOWrecommenders/models/sar/__init__.py4
LOW…odel_select_and_optimize/train_scripts/svd_training.py17
LOW…les/07_tutorials/KDD2020-tutorial/utils/data_helper.py8
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py12
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py18
LOW…les/07_tutorials/KDD2020-tutorial/utils/task_helper.py19
Redundant / Tautological Comments16 hits · 27 pts
SeverityFileLineSnippet
LOWtools/ci/compshare/utils.sh361 # Set timeout to (5 + 5) * 18 = 180 seconds
LOW…sts/unit/recommenders/datasets/test_pandas_df_utils.py173 # Check if the dim is the same.
LOW…sts/unit/recommenders/datasets/test_pandas_df_utils.py176 # Check if the columns are converted successfully.
LOW…sts/unit/recommenders/datasets/test_pandas_df_utils.py185 # Check if the duplicated column entries are indexed correctly.
LOW…sts/unit/recommenders/datasets/test_pandas_df_utils.py195 # Check if the file is written successfully.
LOWtests/unit/recommenders/models/test_sar_singlenode.py178 # Set time_now to 60 days later
LOW…unit/recommenders/evaluation/test_python_evaluation.py71 # Check if _check_column_dtypes wraps the input function (i.e. returns the same output as the input function's)
LOWcontrib/sarplus/python/tests/test_pyspark_sar.py323 # Set time_now to 60 days later
LOWrecommenders/utils/notebook_utils.py56 # Check if the new value is a string and surround it with quotes if necessary
LOWrecommenders/models/tfidf/tfidf_utils.py104 # Check if for BERT tokenization
LOWrecommenders/evaluation/spark_evaluation.py65 # Check if inputs are Spark DataFrames.
LOWrecommenders/evaluation/spark_evaluation.py76 # Check if columns exist.
LOWrecommenders/evaluation/spark_evaluation.py217 # Check if inputs are Spark DataFrames.
LOWrecommenders/evaluation/spark_evaluation.py228 # Check if columns exist.
LOW.github/workflows/tools/compshare/utils.sh322 # Check if the VM specification match the requirements.
LOW.github/workflows/tools/compshare/utils.sh521 # Set timeout to (5 + 5) * 30 = 300 seconds
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippet
HIGHrecommenders/datasets/pandas_df_utils.py87Converts an input dataframe to another dataframe in libffm format. A text file of the converted Dataframe is optiona
HIGHrecommenders/datasets/pandas_df_utils.py279Utility function to sample negative feedback from user-item interaction dataset. This negative sampling function wil
HIGHrecommenders/datasets/download_utils.py95Return a path to download data. If `path=None`, then it yields a temporal path that is eventually deleted, otherwise
HIGHrecommenders/datasets/movielens.py610Generate a fake movielens DataFrame with all columns. Args: size (int): number of rows to generate.
HIGHrecommenders/models/sasrec/util.py48 Split user interactions into train/valid/test sets using leave-k-out strategy. For each user with enou
Excessive Try-Catch Wrapping24 hits · 22 pts
SeverityFileLineSnippet
LOWtools/databricks_install.py106 except Exception:
LOWrecommenders/datasets/criteo.py118 except Exception:
LOWrecommenders/datasets/wikidata.py41 except Exception as e:
LOWrecommenders/datasets/wikidata.py105 except Exception as e:
LOWrecommenders/datasets/wikidata.py126 except Exception as e:
LOWrecommenders/datasets/wikidata.py190 except Exception as e:
LOWrecommenders/datasets/wikidata.py257 except Exception as e:
LOWrecommenders/datasets/wikidata.py280 except Exception as e:
LOWrecommenders/datasets/wikidata.py291 except Exception as e:
MEDIUMrecommenders/datasets/wikidata.py38def wrapper(*args, **kwargs):
LOWrecommenders/datasets/covid_utils.py137 except Exception:
LOWrecommenders/utils/general_utils.py42 except Exception:
LOWrecommenders/utils/notebook_memory_management.py35except Exception:
LOWrecommenders/utils/gpu_utils.py31 except Exception: # numba.cuda.cudadrv.error.CudaSupportError:
LOWrecommenders/models/deeprec/deeprec_utils.py301 except Exception: # for other exceptions
LOWrecommenders/models/deeprec/models/base_model.py433 except Exception:
LOWrecommenders/models/deeprec/models/graphrec/lightgcn.py367 except Exception:
LOWrecommenders/models/embdotbias/training_utils.py136 except Exception as e:
LOWrecommenders/models/tfidf/tfidf_utils.py82 except Exception:
LOWrecommenders/models/tfidf/tfidf_utils.py218 except Exception:
LOWrecommenders/models/tfidf/tfidf_utils.py230 except Exception:
LOWrecommenders/tuning/nni/ncf_training.py171 except Exception as exception:
LOWrecommenders/tuning/nni/nni_utils.py70 except Exception:
LOWrecommenders/tuning/nni/svd_training.py183 except Exception as exception:
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippet
HIGHtests/unit/recommenders/models/test_ncf_dataset.py66 assert train.equals(datafile_df)
HIGHtests/unit/recommenders/models/test_ncf_dataset.py201 assert train_file_data.equals(train_loader_df)
Slop Phrases1 hit · 0 pts
SeverityFileLineSnippet
LOWtools/databricks_install.py235 # first make sure you are using the correct profile and connecting to the intended workspace
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippet
LOWrecommenders/datasets/wikidata.py34 def my_function():