mast-group/codemining-core

missing codemining-utils dependency

stevenpjg opened this issue · 1 comments

When I installed this project via maven-install it throws me the following error:

[ERROR] Failed to execute goal on project codemining-core: Could not resolve dependencies for project codemining:codemining-core:jar:1.1-SNAPSHOT: Failure to find codemining:codemining-utils:jar:1.1-SNAPSHOT in https://github.com/mast-group/maven-repo/tree/master/repository was cached in the local repository, resolution will not be reattempted until the update interval of maven-repo has elapsed or updates are forced -> [Help 1]

Also, do you have any example code snippets for tokenizing and finding ASTs in python codes? Thanks.

Hi Steven,
The codemining-utils repository can be found here. I've made the projects as maven submodules that you can use in your own code, so you would need to include both in your project's module.

Regarding, code for tokenizing Python code, you can see the main in TokenizerTUI and use th appropriate tokenizer class from here.

Unfortunately, you cannot extract Python ASTs with the Java code. The best options include Python's ast module or astroid. The code here only supports Java and Javascript (through Eclipse's APIs).