repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tests/TestSpacePipe.java
/* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
46,823
591.708861
44,625
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/LexiconMembership.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
3,342
28.584071
106
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/TokenTextCharNGrams.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
2,732
25.278846
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/TokenText.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
1,955
24.076923
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/OffsetFeatureConjunction.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
6,608
29.040909
144
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/CountMatchesAlignedWithOffsets.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
2,480
27.517241
90
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/SequencePrintingPipe.java
/* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
2,527
32.263158
136
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/RegexMatches.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
2,309
25.551724
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/TrieLexiconMembership.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensource.org....
6,300
25.812766
105
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/OffsetPropertyConjunctions.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
7,873
34.468468
113
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/FeaturesInWindow.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
5,415
33.062893
116
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/FeaturesOfFirstMention.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
3,386
30.95283
97
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/CountMatches.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
2,135
26.384615
90
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/TokenTextNGrams.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
1,996
24.935065
106
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/TokenTextCharPrefix.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
1,796
24.309859
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/TokenFirstPosition.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
1,503
24.931034
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/Target2BIOFormat.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
2,822
27.806122
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/CountMatchesMatching.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
2,489
29.365854
101
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/OffsetConjunctions.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
8,906
32.996183
107
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/TokenTextCharSuffix.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
1,826
24.375
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/tests/TestOffsetFeatureConjunctions.java
/* Copyright (C) 2006 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
4,760
34.007353
92
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/tests/TestOffsetConjunctions.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
1,884
25.180556
91
java
twitter_nlp
twitter_nlp-master/mallet-2.0.6/src/cc/mallet/pipe/tsf/tests/TestSequencePrintingPipe.java
/* Copyright (C) 2003 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
3,260
28.116071
87
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/evaluation/Evaluator.java
package it.poliba.sisinflab.LODRec.evaluation; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Colle...
25,686
25.37269
87
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/learning/LibLinearLearner.java
package it.poliba.sisinflab.LODRec.learning; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.List; import java.util.Map; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import de.bwaldvogel.liblinear.FeatureNode; import d...
7,602
24.009868
87
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/learning/RankLibLearner.java
package it.poliba.sisinflab.LODRec.learning; import java.util.ArrayList; import java.util.List; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import ciir.umass.edu.features.FeatureManager; import ciir.umass.edu.learning.CoorAscent; import ciir.umass.edu.learning.RANKER_TYPE; import ciir.umass.e...
5,188
26.026042
85
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/tree/NNode.java
package it.poliba.sisinflab.LODRec.tree; import java.util.ArrayList; public class NNode { private String value; private ArrayList<NNode> childs; public NNode(){ this.value = null; this.childs = new ArrayList<NNode>(); } public NNode(String value){ this.value = value; this.childs = new ArrayList<NNo...
757
13.862745
48
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/tree/NTree.java
package it.poliba.sisinflab.LODRec.tree; public class NTree { private NNode root; public NTree(){ root = null; } public boolean isEmpty(){ if(root==null) return false; else return true; } public void addRoot(NNode root){ this.root = root; } public NNode getRoot(){ return root; } p...
781
14.959184
46
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sparqlDataExtractor/MultiPropQueryExecutor.java
package it.poliba.sisinflab.LODRec.sparqlDataExtractor; import gnu.trove.map.hash.THashMap; import gnu.trove.map.hash.TObjectCharHashMap; import gnu.trove.map.hash.TObjectIntHashMap; import it.poliba.sisinflab.LODRec.fileManager.ItemFileManager; import it.poliba.sisinflab.LODRec.fileManager.TextFileManager; import it....
11,374
25.392111
108
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sparqlDataExtractor/RDFTripleExtractor.java
package it.poliba.sisinflab.LODRec.sparqlDataExtractor; import gnu.trove.map.hash.TObjectIntHashMap; import it.poliba.sisinflab.LODRec.fileManager.ItemFileManager; import it.poliba.sisinflab.LODRec.fileManager.TextFileManager; import it.poliba.sisinflab.LODRec.tree.NTree; import it.poliba.sisinflab.LODRec.utils.Synchr...
8,315
26.812709
105
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sparqlDataExtractor/TreeQueryExecutor.java
package it.poliba.sisinflab.LODRec.sparqlDataExtractor; import gnu.trove.map.hash.TObjectCharHashMap; import gnu.trove.map.hash.TObjectIntHashMap; import it.poliba.sisinflab.LODRec.fileManager.ItemFileManager; import it.poliba.sisinflab.LODRec.fileManager.TextFileManager; import it.poliba.sisinflab.LODRec.itemManager....
10,480
25.534177
99
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sparqlDataExtractor/QueryExecutor.java
package it.poliba.sisinflab.LODRec.sparqlDataExtractor; import gnu.trove.map.hash.TObjectByteHashMap; import gnu.trove.map.hash.TObjectIntHashMap; import it.poliba.sisinflab.LODRec.fileManager.ItemFileManager; import it.poliba.sisinflab.LODRec.fileManager.TextFileManager; import it.poliba.sisinflab.LODRec.itemManager....
9,863
25.877384
91
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/fileManager/ItemFileManager.java
package it.poliba.sisinflab.LODRec.fileManager; import gnu.trove.map.hash.THashMap; import gnu.trove.map.hash.TIntObjectHashMap; import it.poliba.sisinflab.LODRec.itemManager.ItemTree; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOut...
2,429
23.795918
87
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/fileManager/StringFileManager.java
package it.poliba.sisinflab.LODRec.fileManager; import gnu.trove.map.hash.THashMap; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutput; import java.io.ObjectOutputStream; import java.util.Set; public class StringFileManager extends...
2,531
24.069307
87
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/fileManager/FileManager.java
package it.poliba.sisinflab.LODRec.fileManager; import gnu.trove.map.hash.THashMap; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.RandomAccessFile; import java.util.Set; public class ...
4,336
19.951691
92
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/fileManager/TextFileManager.java
package it.poliba.sisinflab.LODRec.fileManager; import java.io.BufferedWriter; import java.io.FileWriter; public class TextFileManager { private String filename; private BufferedWriter bw; private boolean append; public TextFileManager(String filename){ this.filename = filename; this.append = false; ...
1,019
12.246753
61
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/graphkernel/ItemPreProcessing.java
package it.poliba.sisinflab.LODRec.graphkernel; import gnu.trove.map.hash.TIntFloatHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.map.hash.TObjectIntHashMap; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.IOEx...
10,553
27.069149
110
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/graphkernel/graphEmbedding/Tokenizer.java
package it.poliba.sisinflab.LODRec.graphkernel.graphEmbedding; import gnu.trove.map.hash.THashMap; import gnu.trove.map.hash.TIntIntHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import it.poliba.sisinflab.LODRec.fileManager.ItemFileManager; import it.poliba.sisinflab.LODRec.itemManager.ItemTree; import it.poli...
3,402
23.134752
111
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/graphkernel/graphEmbedding/ItemGraphEmbedder.java
package it.poliba.sisinflab.LODRec.graphkernel.graphEmbedding; import gnu.trove.iterator.TIntIntIterator; import gnu.trove.map.hash.THashMap; import gnu.trove.map.hash.TIntIntHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.map.hash.TObjectFloatHashMap; import gnu.trove.map.hash.TObjectIntHashMap...
15,928
23.282012
91
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/graphkernel/heuristic/UserProfileSimilarityRecommender.java
package it.poliba.sisinflab.LODRec.graphkernel.heuristic; import gnu.trove.map.hash.TIntFloatHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.HashMap; i...
5,117
25.246154
110
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/graphkernel/heuristic/UserProfileSimilarityRecommenderWorker.java
package it.poliba.sisinflab.LODRec.graphkernel.heuristic; import gnu.trove.iterator.TIntIterator; import gnu.trove.map.hash.TIntFloatHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.set.hash.TIntHashSet; import java.io.BufferedWriter; import java.io.IOException; import java.util.ArrayList; import...
3,960
23.602484
73
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/graphkernel/model/UserModelRecommenderWorker.java
package it.poliba.sisinflab.LODRec.graphkernel.model; import gnu.trove.map.hash.TIntFloatHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.map.hash.TObjectFloatHashMap; import gnu.trove.set.hash.TIntHashSet; import it.poliba.sisinflab.LODRec.evaluation.Evaluator; import it.poliba.sisinflab.LODRec....
13,031
26.263598
85
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/graphkernel/model/UserModelRecommender.java
package it.poliba.sisinflab.LODRec.graphkernel.model; import gnu.trove.map.hash.TIntFloatHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import it.poliba.sisinflab.LODRec.evaluation.Evaluator; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; imp...
7,770
26.853047
110
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/itemManager/PropertyIndexedItemTree.java
package it.poliba.sisinflab.LODRec.itemManager; import gnu.trove.map.hash.THashMap; import gnu.trove.map.hash.TIntIntHashMap; import java.io.Serializable; public class PropertyIndexedItemTree implements ItemTree, Serializable { private static final long serialVersionUID = 1L; private int item_id; private THashM...
1,946
19.494737
77
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/itemManager/ItemTree.java
package it.poliba.sisinflab.LODRec.itemManager; import gnu.trove.map.hash.THashMap; import gnu.trove.map.hash.TIntIntHashMap; public interface ItemTree{ void setItemId(int value); int getItemId(); int size(); boolean isEmpty(); void addBranches(String key, int value); THashMap<String, TIntIntHashMap>...
395
15.5
48
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sprank/itemPathExtractor/ItemPathExtractorWorker.java
package it.poliba.sisinflab.LODRec.sprank.itemPathExtractor; import java.util.ArrayList; import gnu.trove.iterator.TIntIntIterator; import gnu.trove.iterator.TIntIterator; import gnu.trove.map.hash.THashMap; import gnu.trove.map.hash.TIntIntHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.map.ha...
9,018
23.98338
118
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sprank/itemPathExtractor/TopItemPathExtractor.java
package it.poliba.sisinflab.LODRec.sprank.itemPathExtractor; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.map.hash.TObjectIntHashMap; import gnu.trove.set.hash.TIntHashSet; import it.poliba.sisinflab.LODRec.fileManager.ItemFileManager; import it.poliba.sisinflab.LODRec.itemManager.ItemTree; import it....
4,423
26.308642
95
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sprank/itemPathExtractor/ItemPathExtractor.java
package it.poliba.sisinflab.LODRec.sprank.itemPathExtractor; import gnu.trove.map.hash.TIntIntHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.map.hash.TObjectIntHashMap; import gnu.trove.set.hash.THashSet; import gnu.trove.set.hash.TIntHashSet; import it.poliba.sisinflab.LODRec.fileManager.ItemF...
10,408
27.132432
102
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sprank/itemPathExtractor/TopItemPathExtractorWorker.java
package it.poliba.sisinflab.LODRec.sprank.itemPathExtractor; import java.util.ArrayList; import java.util.HashMap; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import gnu.trove.iterator.TIntIntIterator; import gnu.trove.iterator.TIntIterator; import gnu.trove.iterator.TObjectIntIterator; impor...
6,151
21.869888
97
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sprank/userPathExtractor/UserPathExtractorWorker.java
package it.poliba.sisinflab.LODRec.sprank.userPathExtractor; import java.io.BufferedWriter; import java.io.IOException; import java.math.RoundingMode; import java.text.DecimalFormat; import java.util.ArrayList; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import gnu.trove.iterator.TIntIterator...
10,472
30.077151
104
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/sprank/userPathExtractor/UserPathExtractor.java
package it.poliba.sisinflab.LODRec.sprank.userPathExtractor; import gnu.trove.iterator.TFloatIterator; import gnu.trove.iterator.TIntObjectIterator; import gnu.trove.map.hash.THashMap; import gnu.trove.map.hash.TIntFloatHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.map.hash.TObjectIntHashMap; ...
8,432
27.683673
88
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/BST.java
package it.poliba.sisinflab.LODRec.utils; import java.util.ArrayList; import java.util.List; public class BST { private Node root; private int numNodes = 0; private int maxSize = 0; private List<Double> sortedKeys; private List<Integer> sortedValues; public BST(int max) { this.maxSize = max; } public int ...
4,124
17.415179
55
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/PropertyFileReader.java
package it.poliba.sisinflab.LODRec.utils; import java.io.FileInputStream; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Properties; public class PropertyFileReader { public static Map<String, String> loadProperties(String fileName) throws IOException{ Properties p...
10,829
48.907834
95
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/FileInputConversion.java
package it.poliba.sisinflab.LODRec.utils; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; public class FileInputConversion { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try{ Bu...
808
19.74359
99
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/StringUtils.java
package it.poliba.sisinflab.LODRec.utils; import gnu.trove.map.hash.TIntObjectHashMap; import java.util.Arrays; import java.util.Collections; public class StringUtils { public static String extractRate(float rate, float ratesThreshold){ if(rate > ratesThreshold) return "r1"; else return "r0"; } ...
1,170
17.296875
88
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/ItemUtils.java
package it.poliba.sisinflab.LODRec.utils; import java.util.Collections; import java.util.Comparator; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Map.Entry; public class ItemUtils { /* * Java method to sort Map in Java by value ...
1,545
27.62963
98
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/SynchronizedCounter.java
package it.poliba.sisinflab.LODRec.utils; public class SynchronizedCounter { private int c = 0; public SynchronizedCounter(int value) { this.c=value; } public SynchronizedCounter() { } public synchronized void increment() { c++; } public synchronized void decrement() { c-...
416
15.68
43
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/TrainValidationDataSplitter.java
package it.poliba.sisinflab.LODRec.utils; import gnu.trove.iterator.TIntIterator; import gnu.trove.list.array.TIntArrayList; import gnu.trove.map.hash.TIntFloatHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.set.TIntSet; import gnu.trove.set.hash.TIntHashSet; import java.io.BufferedReader; impo...
9,690
25.550685
252
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/TextFileUtils.java
package it.poliba.sisinflab.LODRec.utils; import gnu.trove.iterator.TIntIterator; import gnu.trove.iterator.TIntObjectIterator; import gnu.trove.list.array.TIntArrayList; import gnu.trove.map.hash.THashMap; import gnu.trove.map.hash.TIntFloatHashMap; import gnu.trove.map.hash.TIntIntHashMap; import gnu.trove.map.hash....
10,861
20.855131
102
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/MemoryMonitor.java
package it.poliba.sisinflab.LODRec.utils; public class MemoryMonitor { public static void stats(){ Runtime runtime = Runtime.getRuntime(); long maxMemory = runtime.maxMemory(); long allocatedMemory = runtime.totalMemory(); long freeMemory = runtime.freeMemory(); long usedMemory = allocatedMemory - fre...
714
23.655172
60
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/utils/XMLUtils.java
package it.poliba.sisinflab.LODRec.utils; import gnu.trove.map.hash.TObjectIntHashMap; import it.poliba.sisinflab.LODRec.tree.NNode; import it.poliba.sisinflab.LODRec.tree.NTree; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import javax.xml.parsers.DocumentBu...
2,979
24.689655
102
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/main/Main.java
package it.poliba.sisinflab.LODRec.main; import java.io.IOException; import java.util.Map; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import org.apache.log4j.PropertyConfigurator; import it.poliba.sisinflab.LODRec.evaluation.Evaluator; import it.poliba.sisinflab.LODRec.graphkernel.graphEmbed...
33,091
33.760504
89
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/recommender/RecommenderWorker.java
package it.poliba.sisinflab.LODRec.recommender; import it.poliba.sisinflab.LODRec.utils.BST; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.math.RoundingMode; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.Collections; import java.uti...
4,393
21.191919
84
java
lodreclib
lodreclib-master/src/main/java/it/poliba/sisinflab/LODRec/recommender/Recommender.java
package it.poliba.sisinflab.LODRec.recommender; import it.poliba.sisinflab.LODRec.main.Main; import it.poliba.sisinflab.LODRec.utils.BST; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.Exe...
4,623
21.891089
84
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/features/FeatureManager.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
19,369
29.697306
135
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/features/LinearNormalizer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
2,230
27.974026
88
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/features/ZScoreNormalizor.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
2,810
24.788991
105
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/features/Normalizer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
1,517
24.728814
82
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/features/SumNormalizor.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
2,375
27.285714
85
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/DCGScorer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
3,276
24.403101
96
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/ReciprocalRankScorer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
2,857
25.71028
121
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/ERRScorer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
2,987
24.109244
132
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/PrecisionScorer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
1,833
20.833333
97
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/NDCGScorer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
4,607
26.105882
82
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/MetricScorer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
1,581
18.060241
82
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/METRIC.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
576
37.466667
82
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/APScorer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
4,496
25.928144
134
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/MetricScorerFactory.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
2,313
29.853333
201
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/metric/BestAtKScorer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
2,952
22.624
121
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/LinearRegRank.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
6,969
26.65873
112
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/CoorAscent.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
12,474
29.802469
130
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/SparseDataPoint.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
4,028
26.040268
104
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/DataPoint.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
9,196
24.907042
82
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/Ranker.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
4,153
21.333333
82
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/DenseDataPoint.java
package ciir.umass.edu.learning; public class DenseDataPoint extends DataPoint { public DenseDataPoint(String text) { super(text); } public DenseDataPoint(DenseDataPoint dp) { label = dp.label; this.user_id = dp.user_id; description = dp.description; cached = dp.cached; fVals = new float[dp.fVals.le...
1,270
21.696429
107
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/RankerTrainer.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
1,961
28.727273
84
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/RankerFactory.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
4,073
35.702703
161
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/Combiner.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
1,596
30.313725
95
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/RANKER_TYPE.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
620
40.4
86
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/RankList.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
2,214
21.602041
89
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/Sampler.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
1,907
27.909091
107
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/tree/Ensemble.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
4,546
26.065476
112
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/tree/MART.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
1,749
25.515152
93
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/tree/LambdaMART.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
19,317
30.36039
157
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/tree/Split.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
4,587
21.600985
91
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/tree/RegressionTree.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
3,706
22.314465
135
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/tree/FeatureHistogram.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
12,766
25.54262
130
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/tree/RFRanker.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
7,014
32.564593
170
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/boosting/WeakRanker.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
1,254
23.607843
82
java
lodreclib
lodreclib-master/src/main/java/ciir/umass/edu/learning/boosting/RankBoost.java
/*=============================================================================== * Copyright (c) 2010-2012 University of Massachusetts. All Rights Reserved. * * Use of the RankLib package is subject to the terms of the software license set * forth in the LICENSE file included with this software, and also availab...
13,906
30.042411
140
java