lyriccoder
lyriccoder
1) Script where RefMiner 2.0 will be executed for each folder in parallel 2) Code Similarity with the tests Do the similar thing: https://link.springer.com/article/10.1007/s11219-019-09442-9 ```The similarity between two code smells...
Script collects information about failed/wrong cases in synthetic dataset. Take csv file of dataset as input and folder to files of the dataset
#111 Fix issue. Soon I will add tests It depends on https://github.com/cqfn/veniq/pull/99
Enums and interfaces doesn't have `methods` fields. But they have have methods. Necessary to implement it.
If we have Inner class and it's function name matches the main class name, the line numbers are incorrect [PainlessParser.txt](https://github.com/cqfn/veniq/files/5672318/PainlessParser.txt) ```[('project', '/dataset/01/elastic/elasticsearch/modules/lang-painless/src/main/java/org/elasticsearch/painless/antlr/PainlessParser.java'), ('input_filename', 'data/full_dataset/input_files/PainlessParser_bd33bb08aa9a728098ee1dfb7f9677f9db75a6b3dfa38a21732fa1300b8a0ac4.java'), ('class_name', 'PainlessParser'), ('invocation_text_string', 'trailer()'), ('method_where_invocation_occurred', 'rstatement'),...
Finding opportunities takes too much time. It happens with large files: [files.zip](https://github.com/cqfn/veniq/files/5402693/files.zip) it takes from minute up to 4 minutes. It didn't even stop in 4 minutes
I had the error: Node Statement is not supported. File is attached below [HandleLayer.zip](https://github.com/cqfn/veniq/files/5501567/HandleLayer.zip) ``` File "D:\git\veniq\veniq\ast_framework\block_statement_graph\_block_extractors.py", line 15, in extract_blocks_from_statement return _block_extractors[statement.node_type](statement) KeyError: During handling of the above exception,...
If we pass a constructor to SEMI, it fails with the error: ``` Traceback (most recent call last): File "D:\git\veniq\veniq\dataset_collection\validation.py", line 88, in validate_row opport = _print_extraction_opportunities( File "D:\git\veniq\veniq\dataset_collection\validation.py", line...
SEMI algorithm chooses 1 line to extract. Seems we consider extracting more than 3 lines, don't we? ``` DocumentElement getDocumentElement(int startOffset, int endOffset) throws BadLocationException { readLock(); checkDocumentDirty(); try {...
Suppose, we have the following invocation: b'synchronized(getParent()) {' We need to inline `getParent`. It doesn't work properly. You can find the input on the server. data/full_dataset/output_files/PropertiesStructure_addItem_242.java