a2i2 / mining-data-science-repositories Goto Github PK
View Code? Open in Web Editor NEWA large-scale comparative analysis of Coding Standard conformance in Open-Source Data Science projects
Home Page: https://arxiv.org/abs/2007.08978
A large-scale comparative analysis of Coding Standard conformance in Open-Source Data Science projects
Home Page: https://arxiv.org/abs/2007.08978
task_analyse_pylint
executes Pylint
as a subprocess and checks stderr for errors. However, if Pylint fails in an unexpected way (e.g. the task is killed) the stderr may be empty, thus causing the script to incorrectly assume Pylint
completed successfully.
We should check the process exit status as an additional safegaurd against the possibility of missing warnings (a threat to the internal validity of the study).
hi sir, i prepare a study (master degree) ((deep reinforcement learning approach based on dynamic path planning for mobile robot)
and i found research close to my study
https://github.com/dranaju/project
Due to i am new in programming i couldn't run the code there were some error as you could see in attached file, sir could you help me with that (run the code) it will be a great favor.
Expected Behaviour:
Actual behaviour:
Example:
39565135
contains a file called appdirs.py
. When a Pylint dependency tries to import the appdir
package, it mistakenly imports the local appdirs.py
file instead.INFO:root:../input/39565135
ERROR:root:['Traceback (most recent call last):', ' File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main', ' "__main__", mod_spec)', ' File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code', ' exec(code, run_globals)', ' File "/app/clean_env_py3/lib/python3.6/site-packages/pylint/__main__.py", line 7, in <module>', ' pylint.run_pylint()', ' File "/app/clean_env_py3/lib/python3.6/site-packages/pylint/__init__.py", line 23, in run_pylint', ' PylintRun(sys.argv[1:])', ' File "/app/clean_env_py3/lib/python3.6/site-packages/pylint/lint.py", line 1637, in __init__', ' linter.load_default_plugins()', ' File "/app/clean_env_py3/lib/python3.6/site-packages/pylint/lint.py", line 645, in load_default_plugins', ' checkers.initialize(self)', ' File "/app/clean_env_py3/lib/python3.6/site-packages/pylint/checkers/__init__.py", line 61, in initialize', ' register_plugins(linter, __path__[0])', ' File "/app/clean_env_py3/lib/python3.6/site-packages/pylint/utils/utils.py", line 218, in register_plugins', ' module = modutils.load_module_from_file(join(directory, filename))', ' File "/app/clean_env_py3/lib/python3.6/site-packages/astroid/modutils.py", line 280, in load_module_from_file', ' return load_module_from_modpath(modpath, path, use_sys)', ' File "/app/clean_env_py3/lib/python3.6/site-packages/astroid/modutils.py", line 241, in load_module_from_modpath', ' module = imp.load_module(curname, mp_file, mp_filename, mp_desc)', ' File "/usr/local/lib/python3.6/imp.py", line 235, in load_module', ' return load_source(name, filename, file)', ' File "/usr/local/lib/python3.6/imp.py", line 172, in load_source', ' module = _load(spec)', ' File "<frozen importlib._bootstrap>", line 684, in _load', ' File "<frozen importlib._bootstrap>", line 665, in _load_unlocked', ' File "<frozen importlib._bootstrap_external>", line 678, in exec_module', ' File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed', ' File "/app/clean_env_py3/lib/python3.6/site-packages/pylint/checkers/imports.py", line 40, in <module>', ' import isort', ' File "/app/clean_env_py3/lib/python3.6/site-packages/isort/__init__.py", line 25, in <module>', ' from . import settings # noqa: F401', ' File "/app/clean_env_py3/lib/python3.6/site-packages/isort/settings.py", line 52, in <module>', " if appdirs.system == 'darwin':", "AttributeError: module 'appdirs' has no attribute 'system'"]
Details:
https://github.com/PyCQA/pylint/blob/pylint-2.4.4/pylint/checkers/imports.py#L40
import isort
https://github.com/timothycrosley/isort/blob/4.3.21/isort/settings.py#L45
try:
import appdirs
if appdirs.system == 'darwin':
appdirs.system = 'linux2'
except ImportError:
appdirs = None
As appdirs
package is not installed, the code is meant to catch an ImportError
. Instead, it loads the local appdirs.py
, which results in AttributeError: module 'appdirs' has no attribute 'system'"
as it is a different module to what it expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.