Skip to content

Conversation

@xrenegade100
Copy link

With this PR we want to extend the work done on IDEAL.
List of implemented features:

  1. Support for Python code analysis with a custom deep learning (transformers) text model. The model is able to detect the following linguistic antipatterns in Python source code:
    • Not implemented condition (B.1)
    • Method signature and comment are opposite (C.2)
    • Attribute signature and comment are opposite (F.2)
  2. The tool can now be run using Docker. All the necessary tools and libraries are automatically installed.
  3. Source code was mostly refactored to improve maintainability and reliability; it was also cleaned up by removing unused methods and classes.
  4. Added a test suite with an 80% branch coverage over these packages:
    • src.common
    • src.service
    • src.nlp

Authors

BraindeadHermit and others added 30 commits August 14, 2023 10:51
- add autopep8 formatter for vscode
- add pytest dep
- add pytest configuration
add unit tests as defined in TP document for src.nlp.related_terms
- pos_tag.py
- splitter.py
- added PATH constant for temp files
add unit tests as defined in TP document for src.service.factory
add unit tests as defined in TP document for src.service.parser
fix the mock used in the the test case
- add missing tests from pos_tag, term_property
- add missing documentation to test_splitter
move unit tests to `test/unit`
- remove test cases with no mocks appliable
resolve code smells in test/unit/nlp and test/unit/service
- fix some code smells
- remove misplaced integration tests
- translate documentation
fix typo for test TC-CMM-8.1
TC-NLP-1.x/2.x/3.x/4.x/6.x
update dockerfile to run tests
BraindeadHermit and others added 30 commits October 4, 2023 12:20
- add PythonParser class to parser.py

Co-authored-by: BraindeadHermit <scorziello.giovanni00@gmail.com>
implement analysis logic for python files

Close #60

Co-authored-by: BraindeadHermit <scorziello.giovanni00@gmail.com>
Co-authored-by: antgioia <antgioia10@gmail.com>
add dockerfile for run analysis
update README.md
fix size of model downloading
Co-authored-by: antgioia <antgioia10@gmail.com>
Co-authored-by: Antonio Scognamiglio <antonio.scognamiglio12@outlook.it>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants