cps_spa_detection_tool's People
cps_spa_detection_tool's Issues
[P1] Antlr4 to detect keywords.
[P5] Improve detect encoding speed.
Improve detect encoding speed, for example by using python-magic.
[P4] Antlr4 map (or documentation) to symbol.type types (for example "type": 1 or "type": 132 is what type?)
[P5] Update README on usage.
[P3][RE] Detect mathematical statements.
[P1] Antlr4 to work together with search_current.py.
Linked to #2
[P3][RE] Use Antlr4 to detect risky types.
Requires #6 to be implemented first.
[P1] Use Antlr4 to follow variable assignment.
[P5] Add DocString for Antrl4 script.
[P1] Antlr4 to work together with search_current_history.py.
[P5] Typeset Antrl4 script.
[P5] Use keywords for hardware related method names.
[P2] Improve detecting encoding.
Issue with decoding has been solved with #19, though the detecting the encoding of the file could be more efficient. There is an odd issue between using with open()
to read files and using Antlr4's FileStream
. Where it seems that in some cases with open()
works with a specific encoding and FileStream
doesn't (or at least it throws an exception I cannot seem to catch, breaking the encoding check function).
Low priority as the fix in #19 seem to work for the cases checked so far.
[P2] Detect encoding file.
[P1][Docker] UID permission issue blocks history comparison by the script.
Doing a checkout of a file to a previous version, requires permissions to be set correctly. Currently a permission issue blocks changes in .git/index file.
[P4] Use Antlr4 with negative values.
Check for use-cases.
[P3][FCR] Detect communication rate settler.
- Check for keywords like: set, frequency, communication etc.
- Check the input argument.
[P1] Bug: "line 2:0 mismatched input"
After commit 6d2dc93 (which is linked to #3), this error appears (as shown it appears two times):
line 2:0 mismatched input '""' expecting {<EOF>, 'alignas', 'asm', 'auto', 'bool', 'char', 'char16_t', 'char32_t', 'class', 'const', 'constexpr', 'decltype', 'double', 'enum', 'explicit', 'extern', 'float', 'friend', 'inline', 'int', 'long', 'mutable', 'namespace', 'operator', 'register', 'short', 'signed', 'static', 'static_assert', 'struct', 'template', 'thread_local', 'typedef', 'typename', 'union', 'unsigned', 'using', 'virtual', 'void', 'volatile', 'wchar_t', '(', '[', '*', '&', '~', AndAnd, '::', ';', '...', Identifier}
line 2:0 mismatched input '""' expecting {<EOF>, 'alignas', 'asm', 'auto', 'bool', 'char', 'char16_t', 'char32_t', 'class', 'const', 'constexpr', 'decltype', 'double', 'enum', 'explicit', 'extern', 'float', 'friend', 'inline', 'int', 'long', 'mutable', 'namespace', 'operator', 'register', 'short', 'signed', 'static', 'static_assert', 'struct', 'template', 'thread_local', 'typedef', 'typename', 'union', 'unsigned', 'using', 'virtual', 'void', 'volatile', 'wchar_t', '(', '[', '*', '&', '~', AndAnd, '::', ';', '...', Identifier}
[P2] Update list of interesting keywords (different types of sleeps).
[P2][RE] Use Antlr4 for detection of types.
[P1] Blocking issue for qgroundcontrol project.
Traceback (most recent call last):
File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\main.py", line 56, in <module>
main()
File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\main.py", line 26, in main
search.main(patterns.MAGICAL_WAITING_NUMBER)
File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\search.py", line 267, in main
initial_search()
File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\search.py", line 87, in initial_search
count, results = process_file(relative_filename, file_encoding)
File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\search.py", line 108, in process_file
return ast_cpp_antlr.parse_file(abs_path, encoding, current_project.pattern_name)
File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\ast_cpp_antlr.py", line 58, in parse_file
result_interest, number_results = translation_unit.find_identifier(term)
File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\ast_impl\cpp\types.py", line 18, in find_identifier
for identifier in func_body.find_identifier(id_name):
AttributeError: 'tuple' object has no attribute 'find_identifier'
Process finished with exit code 1
[P3][FCR] Re-use implementation to do step 2,3,4 of the FCR procedure.
See document D5.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.