Skip to content

Commit

Permalink
updated Readme.md and the group name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedfir committed Oct 31, 2022
1 parent 69fa98d commit 831d852
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Project exclude paths
/target/
/target/
/.idea/
47 changes: 47 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# n-gram Naturalness-based lines ranking

This is the implementation called by the python scripts under: https://github.com/Ahmedfir/ngramlineloc/settings/access

### Typical usage:
- input: List of java files from a project, whose lines will be ranked.
- training input: the rest of java files from that same project.
- output: ranked List of lines of the input files, by cross-entropy.

### Call:

You can download our latest released jar or recompile the sources yourself (next section).

- Launcher class:
`
Main.java`

- example params:

`
-repo=path/to/project/directory
-n=4
-out=csvOutputFile
-ex_w_in_path=example
-ex_w_in_path=test
-in=path/to/file/to/rank/f1.java
-in=path/to/file/to/rank/f2.java
`

- You can find an example of a request and the expected results in the tests folder:
- System test:
`
src/test/java/cli/CliRequestTest.java
`
- expected csv results:
`
fl/src/test/resources/expected/parse_args_test.csv`

### Compile:

The project depends on Tuna: https://github.com/electricalwind/tuna

You will need to download that repo and install it first (it's a maven project).

### License:
Apache 2.0

4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>
<groupId>lu.snt.serval.ak</groupId>
<artifactId>java-n-gram-line-level</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>


<dependencies>
Expand Down
Empty file removed src/Readme.md
Empty file.

0 comments on commit 831d852

Please sign in to comment.