mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
temporary fix to make jrpm extension compilable with my netbeans environment
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1151 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
8c0d982191
commit
ecf765ec33
BIN
libx/jrpm-SNAPSHOT.jar
Normal file
BIN
libx/jrpm-SNAPSHOT.jar
Normal file
Binary file not shown.
|
@ -207,7 +207,7 @@ public class plasmaRankingCRProcess {
|
||||||
|
|
||||||
public static int genrci(File cr_in, File rci_out) throws IOException {
|
public static int genrci(File cr_in, File rci_out) throws IOException {
|
||||||
if (!(cr_in.exists())) return 0;
|
if (!(cr_in.exists())) return 0;
|
||||||
final kelondroAttrSeq cr = new kelondroAttrSeq(cr_in, false);
|
kelondroAttrSeq cr = new kelondroAttrSeq(cr_in, false);
|
||||||
//if (rci_out.exists()) rci_out.delete(); // we want only fresh rci here (during testing)
|
//if (rci_out.exists()) rci_out.delete(); // we want only fresh rci here (during testing)
|
||||||
if (!(rci_out.exists())) {
|
if (!(rci_out.exists())) {
|
||||||
kelondroAttrSeq rcix = new kelondroAttrSeq("Global Ranking Reverse Citation Index",
|
kelondroAttrSeq rcix = new kelondroAttrSeq("Global Ranking Reverse Citation Index",
|
||||||
|
@ -258,9 +258,13 @@ public class plasmaRankingCRProcess {
|
||||||
l = java.lang.Math.max(1, (System.currentTimeMillis() - start) / 1000);
|
l = java.lang.Math.max(1, (System.currentTimeMillis() - start) / 1000);
|
||||||
System.out.println("processed " + count + " citations, " + (count / l) + " per second, rci.size = " + rci.size() + ", " + ((size - count) / (count / l)) + " seconds remaining; mem = " + Runtime.getRuntime().freeMemory());
|
System.out.println("processed " + count + " citations, " + (count / l) + " per second, rci.size = " + rci.size() + ", " + ((size - count) / (count / l)) + " seconds remaining; mem = " + Runtime.getRuntime().freeMemory());
|
||||||
}
|
}
|
||||||
|
i.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
// finished. write to file
|
// finished. write to file
|
||||||
|
cr = null;
|
||||||
|
cr_in = null;
|
||||||
|
System.gc();
|
||||||
rci.toFile(rci_out);
|
rci.toFile(rci_out);
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user