Repository Analysis

fastai/fastai

The fastai deep learning library

17.8 Moderate AI signal View on GitHub
17.8
Adjusted Score
17.8
Raw Score
100%
Time Factor
2026-05-20
Last Push
28,016
Stars
Jupyter Notebook
Language
19,996
Lines of Code
114
Files
381
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 5LOW 376

Pattern Findings

381 matches across 9 categories. Click a row to expand file-level details.

Unused Imports344 hits · 310 pts
SeverityFileLineSnippet
LOWnbs/dltest.py1
LOWnbs/dltest.py2
LOWnbs/examples/distrib.py1
LOWnbs/examples/distrib.py2
LOWnbs/examples/distrib.py3
LOWnbs/examples/dataloader_spawn.py4
LOWnbs/examples/train_imdbclassifier.py1
LOWnbs/examples/train_imdbclassifier.py2
LOWnbs/examples/train_imdbclassifier.py3
LOWnbs/examples/train_imdbclassifier.py5
LOWnbs/examples/train_imdbclassifier.py6
LOWnbs/examples/train_imdbclassifier.py7
LOWnbs/examples/train_imagenette.py1
LOWnbs/examples/train_imagenette.py2
LOWnbs/examples/train_imagenette.py3
LOWnbs/examples/train_imagenette.py4
LOWnbs/examples/train_imagenette.py6
LOWnbs/examples/train_imagenette.py7
LOWnbs/examples/train_imagenette.py8
LOWnbs/examples/train_imagenette.py9
LOWnbs/examples/mnist_items.py1
LOWnbs/examples/mnist_blocks.py1
LOWnbs/examples/train_wt2.py1
LOWnbs/examples/train_wt2.py2
LOWnbs/examples/train_wt2.py3
LOWnbs/examples/train_wt2.py4
LOWnbs/examples/distrib_pytorch.py1
LOWnbs/examples/distrib_pytorch.py2
LOWnbs/examples/train_tabular.py1
LOWnbs/examples/train_tabular.py2
LOWnbs/examples/train_tabular.py3
LOWnbs/examples/train_tabular.py4
LOWnbs/examples/train_tabular.py6
LOWnbs/examples/train_tabular.py7
LOWnbs/examples/migrating_fastai.py1
LOWfastai/torch_imports.py1
LOWfastai/torch_imports.py2
LOWfastai/torch_imports.py3
LOWfastai/torch_imports.py3
LOWfastai/torch_imports.py3
LOWfastai/torch_imports.py3
LOWfastai/torch_imports.py3
LOWfastai/torch_imports.py3
LOWfastai/torch_imports.py3
LOWfastai/torch_imports.py4
LOWfastai/torch_imports.py5
LOWfastai/torch_imports.py6
LOWfastai/torch_imports.py6
LOWfastai/torch_imports.py6
LOWfastai/torch_imports.py6
LOWfastai/torch_imports.py7
LOWfastai/torch_imports.py7
LOWfastai/torch_imports.py8
LOWfastai/torch_imports.py8
LOWfastai/metrics.py18
LOWfastai/metrics.py19
LOWfastai/metrics.py20
LOWfastai/test_utils.py12
LOWfastai/test_utils.py13
LOWfastai/test_utils.py14
284 more matches not shown…
Excessive Try-Catch Wrapping13 hits · 15 pts
SeverityFileLineSnippet
MEDIUMfastai/fp16_utils.py121 print("Error in prep_param_lists: model may contain a mixture of parameters "
LOWfastai/vision/utils.py37 except Exception as e: f"Couldn't download {url}."
LOWfastai/medical/imaging.py385 except Exception as e:
LOWfastai/callback/wandb.py70 except Exception as e:
LOWfastai/callback/wandb.py107 except Exception as e:
LOWfastai/callback/wandb.py130 except Exception as e:
MEDIUMfastai/callback/wandb.py124def log_predictions(self):
LOWfastai/callback/hook.py100 except Exception as e:
LOWfastai/callback/core.py65 except Exception as e: raise modify_exception(e, f'Exception occured in `{self.__class__.__name__}` when cal
LOWfastai/data/core.py107 except Exception as e:
LOWfastai/data/block.py182 except Exception as e:
LOWfastai/data/block.py236 except Exception as e:
LOWfastai/data/load.py183 except Exception as e:
Deep Nesting9 hits · 9 pts
SeverityFileLineSnippet
LOWnbs/examples/train_imagenette.py39
LOWfastai/metrics.py421
LOWfastai/torch_core.py531
LOWfastai/fp16_utils.py137
LOWfastai/learner.py451
LOWfastai/text/learner.py174
LOWfastai/callback/wandb.py53
LOWfastai/data/load.py71
LOWfastai/data/load.py158
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippet
LOWfastai/interpret.py164 def print_classification_report(self):
LOWfastai/fp16_utils.py137def model_grads_to_master_grads(model_params, master_params, flat_master=False):
LOWfastai/fp16_utils.py159def master_params_to_model_params(model_params, master_params, flat_master=False):
LOWfastai/vision/utils.py19def _get_downloaded_image_filename(dest, name, suffix):
LOWfastai/callback/tensorboard.py101def _write_projector_embedding(learn, writer, feat):
LOWfastai/callback/tensorboard.py137def projector_word_embeddings(learn=None, layer=None, vocab=None, limit=-1, start=0, log_dir=None):
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippet
LOWfastai/callback/wandb.py55 # Check if wandb.init has been called
LOWfastai/callback/wandb.py230 # Check if wandb.init has been called in case datasets are logged manually
LOWfastai/callback/fp16.py211 # Check if it's been long enough without overflow
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMfastai/tabular/data.py24 cat_names:list=None, # Column names pertaining to categorical variables
MEDIUMfastai/tabular/data.py25 cont_names:list=None, # Column names pertaining to continuous variables
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMfastai/interpret.py132 # This function is mainly copied from the sklearn docs
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippet
LOWfastai/vision/gan.py241 # "Show a sample image."
LOWfastai/callback/schedule.py21 def __init__(self, f, start, end): store_attr('f,start,end')
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippet
LOWfastai/data/block.py84 _msg = "If you wanted to compose several transforms in your getter don't forget to wrap them in a `Pipeline`."