e67a589c4240fe0d422efeb09d5a91f26f8e624a,PyInstaller/utils/hooks/subproc/django_import_finder.py,,,#,29
Before Change
from PyInstaller.utils.hooks import collect_submodules
hiddenimports = list(settings.INSTALLED_APPS) + \
list(settings.TEMPLATE_CONTEXT_PROCESSORS) + \
list(settings.TEMPLATE_LOADERS) + \
[settings.ROOT_URLCONF]
After Change
from PyInstaller.utils.hooks import collect_submodules
hiddenimports = list(settings.INSTALLED_APPS)
// do not fail script when settings does not have such attributes
if hasattr(settings, "TEMPLATE_CONTEXT_PROCESSORS"):
hiddenimports += list(settings.TEMPLATE_CONTEXT_PROCESSORS)
if hasattr(settings, "TEMPLATE_LOADERS"):
hiddenimports += list(settings.TEMPLATE_LOADERS)
hiddenimports += [settings.ROOT_URLCONF]
def _remove_class(class_name):
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances Project Name: pyinstaller/pyinstaller
Commit Name: e67a589c4240fe0d422efeb09d5a91f26f8e624a
Time: 2020-11-10
Author: v0lt.lucas@gmail.com
File Name: PyInstaller/utils/hooks/subproc/django_import_finder.py
Class Name:
Method Name:
Project Name: janfreyberg/superintendent
Commit Name: cb266bbe1ce215ec56cc54ee009ea3a2a055b6d8
Time: 2018-05-31
Author: janfreyberg@users.noreply.github.com
File Name: superintendent/semisupervisor.py
Class Name: SemiSupervisor
Method Name: annotate
Project Name: WheatonCS/Lexos
Commit Name: 3227c2ed4ae92c6b9ecfc1b2c614ff4c36bd9fd0
Time: 2017-07-21
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/information.py
Class Name: FileInformation
Method Name: __init__
Project Name: EducationalTestingService/factor_analyzer
Commit Name: 0206d0263b016391fda2d4c980f7f06920bc65d4
Time: 2019-12-12
Author: keestimmulder@gmail.com
File Name: factor_analyzer/factor_analyzer.py
Class Name: FactorAnalyzer
Method Name: fit
Project Name: oddt/oddt
Commit Name: 62ae607594e946f3761497af63aba898629b3409
Time: 2017-04-26
Author: maciek@wojcikowski.pl
File Name: oddt/scoring/functions/NNScore.py
Class Name: nnscore
Method Name: train
Project Name: oddt/oddt
Commit Name: 62ae607594e946f3761497af63aba898629b3409
Time: 2017-04-26
Author: maciek@wojcikowski.pl
File Name: oddt/scoring/functions/RFScore.py
Class Name: rfscore
Method Name: train