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 |
|---|---|---|---|---|---|---|
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/DictTest.java | package net.zuckerfrei.jcfd;
import junit.framework.TestCase;
/**
* DOCUMENT ME!
*
* @author Davor Cengija
* @version $Revision: 1.1.1.1 $
*/
public class DictTest
extends TestCase
{
//~ Instance variables ====================================================
/**
* DOCUMENT ME!
*/
M... | 6,242 | 19.468852 | 195 | java |
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/MatchListTest.java | package net.zuckerfrei.jcfd;
import junit.framework.TestCase;
/**
* @author Davor Cengija
* @version $Revision: 1.1.1.1 $
*/
public class MatchListTest extends TestCase {
MatchList list;
/**
* Constructor for MatchListTest.
* @param arg0
*/
public MatchListTest(String arg0) {
... | 3,060 | 22.366412 | 57 | java |
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/MockBufferedReader.java | package net.zuckerfrei.jcfd;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
/**
* DOCUMENT ME!
*
* @author Davor Cengija
* @version $Revision: 1.1.1.1 $
*/
public class MockBufferedReader
extends BufferedReader
{
//~ Instance variables ===... | 1,468 | 17.3625 | 79 | java |
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/MockDataOutputStream.java | package net.zuckerfrei.jcfd;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.OutputStream;
/**
* DOCUMENT ME!
*
* @author administrator To change this generated comment edit the template
* variable "typecomment": Window>Preferences>Java>Templates. To
* enabl... | 763 | 23.645161 | 79 | java |
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/MockDefinition.java | package net.zuckerfrei.jcfd;
/**
* DOCUMENT ME!
*
* @author Davor Cengija
* @version $Revision: 1.1.1.1 $
*/
public class MockDefinition
implements Definition
{
//~ Constructors ==========================================================
/**
* Constructor for MockDefinition.
*/
public M... | 974 | 17.055556 | 79 | java |
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/MockDict.java | package net.zuckerfrei.jcfd;
/**
* DOCUMENT ME!
*
* @author Davor Cengija
* @version $Revision: 1.1.1.1 $
*/
public class MockDict
extends DictImpl
{
//~ Constructors ==========================================================
/**
* Constructor for MockDict.
*
* @param host
* @par... | 1,066 | 19.519231 | 79 | java |
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/MockResourceBundle.java | package net.zuckerfrei.jcfd;
import java.util.Enumeration;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
/**
* @author Davor Cengija
* @version $Revision: 1.1.1.1 $
*/
public class MockResourceBundle extends ResourceBundle {
String hostname;
String port;
String client... | 1,496 | 24.372881 | 109 | java |
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/ResponseTest.java | package net.zuckerfrei.jcfd;
import junit.framework.TestCase;
/**
* DOCUMENT ME!
*
* @author Davor Cengija
* @version $Revision: 1.1.1.1 $
*/
public class ResponseTest
extends TestCase
{
//~ Constructors ==========================================================
/**
* Constructor for Response... | 3,138 | 18.024242 | 87 | java |
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/simple/MockSimpleDict.java | package net.zuckerfrei.jcfd.simple;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import net.zuckerfrei.jcfd.DictException;
/**
* DOCUMENT ME!
*
* @author Davor Cengija
* @version $Revision: 1.1.1.1 $
*/
public class MockSimpleDict
extends SimpleDict
{
//~... | 1,774 | 18.722222 | 79 | java |
wikokit | wikokit-master/jcfd/test/net/zuckerfrei/jcfd/simple/SimpleDictTest.java | package net.zuckerfrei.jcfd.simple;
import junit.framework.TestCase;
import net.zuckerfrei.jcfd.*;
import net.zuckerfrei.jcfd.DictImpl;
import net.zuckerfrei.jcfd.MockBufferedReader;
import net.zuckerfrei.jcfd.MockDataOutputStream;
/**
* DOCUMENT ME!
*
* @author Davor Cengija
* @version $Revision: 1.1.1.1 $
*/... | 5,283 | 18.939623 | 211 | java |
wikokit | wikokit-master/wigraph/src/wigraph/DistanceData.java | /* DistanceData.java - distance data storage.
*
* Copyright (c) 2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wigraph;
/** Distance data storage
*/
public class DistanceData {
public float average;
public float min;
public float max;
... | 454 | 17.958333 | 76 | java |
wikokit | wikokit-master/wigraph/src/wigraph/GraphCreator.java | /* TGraphCreator.java - Creates graph from Wiktionary parsed database.
*
* Copyright (c) 2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wigraph;
import wikipedia.sql.Connect;
import wikt.sql.TRelation;
import edu.uci.ics.jung.algorithms.layout.Abstr... | 5,075 | 34.006897 | 116 | java |
wikokit | wikokit-master/wigraph/src/wigraph/LoadRelations.java | /* LoadRelations.java - loads a set of semantic relations
* (extracted from a parsed Wiktionary database) from a file.
*
* Copyright (c) 2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wigraph;
import wikt.sql.TPage;
import wikt.sql.TLang;
import wik... | 6,324 | 42.923611 | 187 | java |
wikokit | wikokit-master/wigraph/src/wigraph/PathSearcher.java | /* PathSearcher.java - searches path on a graph.
*
* Copyright (c) 2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wigraph;
import java.util.List;
import edu.uci.ics.jung.algorithms.layout.AbstractLayout;
import edu.uci.ics.jung.algorithms.layout.FRL... | 4,117 | 33.605042 | 140 | java |
wikokit | wikokit-master/wigraph/src/wigraph/SaveRelations.java | /* SaveRelations.java - stores a set of semantic relations
* (extracted from a parsed Wiktionary database) to a file.
*
* Copyright (c) 2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wigraph;
import wikt.sql.TLang;
import wikt.sql.TPOS;
import wikt.... | 3,231 | 36.149425 | 161 | java |
wikokit | wikokit-master/wigraph/src/wigraph/ShortestPathRelation.java | /* ShortestPathRelation.java - visualization of semantic relations in Wiktionary parsed database.
*
* Copyright (c) 2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wigraph;
import wikt.sql.TPage;
import wikt.sql.TLang;
import wikt.sql.TPOS;
import wik... | 17,991 | 32.567164 | 135 | java |
wikokit | wikokit-master/wigraph/src/wigraph/experiment/ShortestPathEnViaRu353.java | /* ShortestPathRelation.java - Distance calculations.
*
* Copyright (c) 2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wigraph.experiment;
import wigraph.PathSearcher;
import wigraph.DistanceData;
import wigraph.LoadRelations;
import wikipedia.sql.C... | 4,843 | 35.149254 | 120 | java |
wikokit | wikokit-master/wigraph/src/wigraph/experiment/Valuer.java | /*
* Valuer.java - evaluates and calculates words similarity.
*
* Copyright (c) 2005-2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wigraph.experiment;
import wigraph.PathSearcher;
import wigraph.DistanceData;
import wikipedia.sql.Connect;
import w... | 4,245 | 36.575221 | 109 | java |
wikokit | wikokit-master/wigraph/src/wigraph/experiment/WordSim.java | /*
* WordSim.java - words similarity data object. calculator.
*
* Copyright (c) 2005-2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wigraph.experiment;
/**
* Words similarity object constructor used for
* "The WordSimilarity-353 Test Collection"... | 675 | 21.533333 | 81 | java |
wikokit | wikokit-master/wigraph/src/wigraph/experiment/WordSim353.java | /*
* WordSim353.java - "The WordSimilarity-353 Test Collection"
* was taken from (thanks to Evgeniy Gabrilovich):
* http://www.cs.technion.ac.il/~gabr/resources/data/wordsim353/wordsim353.html
*
* Copyright (c) 2005-2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License... | 22,358 | 56.478149 | 81 | java |
wikokit | wikokit-master/wigraph/test/wigraph/GraphCreatorTest.java |
package wigraph;
import wikt.sql.TRelation;
import wikt.sql.TLang;
import wikt.sql.TPOS;
import wikipedia.sql.Connect;
import edu.uci.ics.jung.graph.Graph;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import org.junit.After;
import org.junit.AfterClass;
import o... | 3,563 | 31.697248 | 118 | java |
wikokit | wikokit-master/wigraph/test/wigraph/PathSearcherTest.java |
package wigraph;
import edu.uci.ics.jung.graph.Graph;
import edu.uci.ics.jung.algorithms.shortestpath.DijkstraShortestPath;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
public class PathSearcherTe... | 3,243 | 31.767677 | 101 | java |
wikokit | wikokit-master/wikidf/src/wikidf/DictLanguage.java | /*
* DictLanguage.java
*
* Copyright (c) 2005-2007 Andrew Krizhanovsky /aka at mail.iias.spb.su/
* Distributed under GNU Public License.
*/
package wikidf;
/** Languages of dictionary for lemmatizing (at LemServer in RuPOSTagger)<br>
* ENGLISH<br>
* RUSSIAN<br>
* GERMAN
*
* See more in: Effective Java. Prog... | 1,353 | 27.808511 | 78 | java |
wikokit | wikokit-master/wikidf/src/wikidf/ExampleAPI.java | /* ExampleAPI.java - example of work with index wiki database through API.
*
* Copyright (c) 2005-2008 Andrew Krizhanovsky /aka at mail.iias.spb.su/
* Distributed under GNU Public License.
*/
package wikidf;
import wikipedia.sql_idf.*;
import wikipedia.sql.Connect;
import java.util.*;
/** Example of work with ... | 3,941 | 33.278261 | 130 | java |
wikokit | wikokit-master/wikidf/src/wikidf/Keeper.java | /* Keeper.java - interface between GATE's Lemmatizer and WikIDF database.
*
* Copyright (c) 2005-2008 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU General Public License.
*/
package wikidf;
import wikipedia.language.LanguageType;
import wikipedia.sql.*;
import wikipedia.sql_idf.... | 11,272 | 40.142336 | 405 | java |
wikokit | wikokit-master/wikidf/src/wikidf/PageTableAll.java | /*
* PageTableAll.java - worker with all pages in the WP table 'page'.
*
* Copyright (c) 2005-2008 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU General Public License.
*/
package wikidf;
import wikipedia.language.LanguageType;
import wikipedia.language.Encodings;
import wikipedi... | 4,582 | 40.663636 | 104 | java |
wikokit | wikokit-master/wikidf/src/wikidf/StandAloneAnnie.java | /*
* StandAloneAnnie.java
*/
package wikidf;
import java.util.*;
import java.io.*;
import java.net.*;
import gate.*;
import gate.creole.*;
import gate.util.*;
import gate.corpora.RepositioningInfo;
/**
* This class illustrates how to use ANNIE as a sausage machine
* in another application - put ingredients in on... | 11,310 | 38.827465 | 123 | java |
wikokit | wikokit-master/wikidf/src/wikidf/StandAloneRussianPOSTagger.java | package wikidf;
import java.util.*;
import java.io.*;
import java.net.*;
import gate.*;
import gate.creole.*;
import gate.util.*;
import gate.corpora.RepositioningInfo;
/**
* This class illustrates how to use RussianPOSTagger
* in another application - put ingredients in one end (URLs pointing
* to documents) and ... | 15,249 | 39.343915 | 123 | java |
wikokit | wikokit-master/wikidf/src/wikidf/WikIDF.java | /* WikIDF.java - main file for WP parsing.
*
* Copyright (c) 2005-2008 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU General Public License.
*/
package wikidf;
//import wikidf.db.Term;
import wikipedia.sql.Connect;
import wikipedia.category.CategoryHyponyms;
import wiki... | 9,964 | 37.326923 | 149 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/parser/Main.java | /* Main.java - main file for Wiktionary parsing.
*
* Copyright (c) 2008-2013 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.parser;
import wikokit.base.wikipedia.sql.Connect;
import wikokit.base.wikipedia.language.LanguageType;
/** ... | 4,333 | 38.4 | 138 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/parser/PageTableAll.java | /* PageTableAll.java - parses all pages in the Wiktionary table 'page' (source database).
*
* Copyright (c) 2005-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.parser;
import wikokit.base.wikipedia.sql.Statistics;
import wikokit.b... | 10,586 | 45.845133 | 234 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/parser/WiktParser.java | /* WiktParser.java - second main file for Wiktionary parsing.
*
* Copyright (c) 2008-2013 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.parser;
import java.util.*;
import wikokit.base.wikt.word.WordBase;
import wikokit.base.wikipedi... | 9,920 | 39.165992 | 115 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/LabelTableAll.java | /* LabelTableAll.java - context labels statistics in the database of the parsed Wiktionary.
*
* Copyright (c) 2013-2014 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.stat;
import java.sql.ResultSet;
import java.sql.SQLException;
import... | 35,873 | 44.583227 | 238 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/POSAndPolysemyTableAll.java | /* POSAndPolysemyTableAll.java - Parts of speech statistics and data about
* polysemy in the database of the parsed Wiktionary.
*
* Copyright (c) 2011-2012 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.stat;
import wikokit.base.wikt.... | 21,575 | 45.102564 | 280 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/ParsedDB.java | /* ParsedDB.java - Statistics of the database of the parsed Wiktionary.
*
* Copyright (c) 2010-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.stat;
import wikokit.base.wikt.sql.TLang;
import wikokit.base.wikt.sql.TPOS;
import wiko... | 7,116 | 52.916667 | 211 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/QuoteTableAll.java | /* QuoteTableAll.java - quotes' statistics in the database of the parsed Wiktionary.
*
* Copyright (c) 2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.stat;
import wikokit.base.wikt.sql.quote.TQuotRef;
import wikokit.base.wikt.sql.... | 21,271 | 40.065637 | 238 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/QuoteYears.java | /* QuoteYears.java - statistics of quotes' years
* in the database of the parsed Wiktionary.
*
* Copyright (c) 2012 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.stat;
import java.sql.ResultSet;
import java.sql.SQLException;
import j... | 13,026 | 41.158576 | 238 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/RelationTableAll.java | /* RelationTableAll.java - relations' statistics in the database of the parsed Wiktionary.
*
* Copyright (c) 2005-2013 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.stat;
import wikokit.base.wikt.sql.TLang;
import wikokit.base.wikt.sq... | 18,848 | 44.639225 | 139 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/TranslationTableAll.java | /* TranslationTableAll.java - translations' statistics in the database of the parsed Wiktionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.stat;
import wikokit.base.wikt.sql.TLang;
import wikokit.base.w... | 8,441 | 43.198953 | 189 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/WTStatisticsGoogleWiki.java | /* WTStatistics.java - Statistics of the database of the parsed Wiktionary.
* Wiki format defined by code.google.com
*
* Copyright (c) 2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU Public License.
*/
package wikt.stat;
//import wikipedia.sql.Connect;
import wikokit.base.wikt... | 3,464 | 34.357143 | 106 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/printer/CommonPrinter.java | /* WikiPrinterStat.java - Printer (in wiki format) of statistics
* of the newly created (parsed) database of the Wiktionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.stat.printer;
//i... | 14,547 | 41.788235 | 250 | java |
wikokit | wikokit-master/wikt_parser/src/wikt/stat/printer/POSAndPolysemyPrinter.java | /* POSAndPolysemyPrinter.java - Print (in wiki format)
* parts of speech statistics and data about polysemy
* in the database of the parsed Wiktionary.
*
* Copyright (c) 2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikt.stat.printe... | 9,655 | 40.264957 | 211 | java |
wikokit | wikokit-master/wikt_parser/src/wiktparsed/mean_semrel/parser/Main.java | /* Main.java - main file for Wiktionary (Meaning + Semantic relations) parsing.
*
* Copyright (c) 2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiktparsed.mean_semrel.parser;
//import wikt.parser.*;
import wikokit.base.wikipedia.sql.... | 4,602 | 40.845455 | 140 | java |
wikokit | wikokit-master/wikt_parser/src/wiktparsed/mean_semrel/parser/PageWithSemrel.java | /* PageTableAll.java - parses all pages in the Wiktionary table 'page' (source database).
*
* Copyright (c) 2005-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiktparsed.mean_semrel.parser;
//import wikt.parser.*;
import wikokit.base.... | 9,307 | 38.948498 | 134 | java |
wikokit | wikokit-master/wikt_parser/src/wiktparsed/mean_semrel/parser/SemrelParser.java | /* WiktParser.java - second main file for Wiktionary parsing.
*
* Copyright (c) 2008-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiktparsed.mean_semrel.parser;
import wiktparsed.mean_semrel.parser.sql.*;
import wikokit.base.wikipe... | 1,506 | 30.395833 | 102 | java |
wikokit | wikokit-master/wikt_parser/src/wiktparsed/mean_semrel/parser/sql/MSRLang.java | /* MSRLang.java - SQL operations with the table 'lang' in the database
* (wikt_mean_semrel) wich contains only word's meanings and semantic relations.
* It is simplified Wiktionary parsed database based on wikt_parsed database.
*
* Copyright (c) 2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distri... | 17,898 | 36.92161 | 165 | java |
wikokit | wikokit-master/wikt_parser/src/wiktparsed/mean_semrel/parser/sql/MSRMeanSemrelXX.java | /* MSRMeanSemrelXX.java - SQL operations with the tables 'mean_semrel_XX'
* in the database (wikt_mean_semrel) wich contains only word's meanings
* and semantic relations.
* It is simplified Wiktionary parsed database based on wikt_parsed database.
* XX is a language code.
*
* Copyright (c) 2011 Andrew Krizhano... | 15,632 | 44.182081 | 189 | java |
wikokit | wikokit-master/wikt_parser/src/wiktparsed/yarn/DefQuoteSynExporter.java | /* DefQuoteSynExporter.java - exports definition, quotations and synonyms
* from the database of the parsed Wiktionary in YARN format.
*
* Copyright (c) 2013-2014 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiktparsed.yarn;
import java.s... | 19,764 | 40.091476 | 165 | java |
wikokit | wikokit-master/wikt_parser/src/wiktparsed/yarn/DefQuoteSynExporterWordlist.java | /* DefQuoteSynExporterWordlist.java - exports definition, quotations and synonyms
* from the database of the parsed Wiktionary in YARN format.
*
* Copyright (c) 2013 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiktparsed.yarn;
import jav... | 10,956 | 40.191729 | 139 | java |
wikokit | wikokit-master/wikt_parser/test/wiktparsed/mean_semrel/parser/sql/MSRLangTest.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wiktparsed.mean_semrel.parser.sql;
//import java.util.Map;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.jun... | 3,240 | 27.429825 | 121 | java |
wikokit | wikokit-master/wikt_parser/test/wiktparsed/mean_semrel/parser/sql/MSRMeanSemrelXXTest.java | package wiktparsed.mean_semrel.parser.sql;
import java.util.HashMap;
import java.util.Map;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import wikokit.base.wikipedia.language.LanguageType;
import wik... | 3,229 | 29.471698 | 121 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/Main.java | /* Main.fx - visualization of parsed Wiktionary database (wikt_parsed).
*
* Copyright (c) 2008-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik;
// import wiwordik.search_window.*;
import javafx.application.Application;
import ... | 12,244 | 34.909091 | 156 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/WConstants.java | /* WConstants.fx - Constants and global variables used in Wiwordik.
*
* Copyright (c) 2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik;
import wikokit.base.wikipedia.language.LanguageType;
public class WConstants {
// GU... | 1,833 | 29.065574 | 80 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/search_window/DebugPanel.java | /* DebugPanel.fx - Tools (now only one Debug chechbox) which helps to track
* the database of the machine-readable dictionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.search_window... | 1,944 | 29.390625 | 85 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/search_window/FilterMeanSemRelTrans.java | /* FilterMeanSemRelTrans.java - Words filter by a presence of meaning,
* semantic relations, translations.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.search_window;
import javafx.beans.value.ChangeL... | 5,045 | 36.377778 | 121 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/search_window/LangChoice.java | /* LangChoice.java - Selection of source and target (destination) languages.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.search_window;
import javafx.beans.value.ChangeListener;
import javafx.beans.va... | 11,778 | 36.393651 | 139 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/search_window/LangChoiceBox.java | /* LangChoiceBox.java - Dropdown list of source languages.
*
* Copyright (c) 2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.search_window;
import java.util.*;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.... | 12,296 | 38.796117 | 154 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/search_window/QueryTextString.java | /* QueryTextString.fx - Words filter by a presence of meaning,
* semantic relations, translations.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.search_window;
//import wiwordik.word_card.WC;
import jav... | 6,148 | 37.672956 | 147 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/search_window/WordCell.java | /*
*/
package wiwordik.search_window;
import javafx.scene.control.ListCell;
import javafx.scene.text.Text;
/** Word item for the list of words, list of entries.
*/
public class WordCell extends ListCell<String> {
Text text;
@Override
public void updateItem(String item, ... | 470 | 20.409091 | 60 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/search_window/WordList.java | /* WordList.java - main list of words in the dictionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.search_window;
import wikokit.base.wikt.sql.TLang;
import wikokit.base.wikt.sql.TPage;
import javaf... | 14,544 | 37.683511 | 154 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/util/TipsTeapot.java | /* TipsTeapot.fx - a place where a tips for the reader are prepared.
*
* Copyright (c) 2009 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under GNU General Public License.
*/
package wiwordik.util;
import java.util.List;
import java.util.ArrayList;
import java.util.Random;
/** Tips for the... | 1,856 | 30.474576 | 87 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/TranslationCell.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wiwordik.word_card;
import javafx.scene.Node;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene.text.Text;
/** Word item for the list of translations.
*/
publ... | 1,418 | 30.533333 | 96 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/TranslationEntryItem.java | /* WCTranslationEntryItem.java - A part of the word card corresponds
* to a translation of one meaning to one language in Wiktionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.word_card;
import ja... | 3,279 | 26.79661 | 112 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/WC.java | /* WC.fx - Word card corresponds to a page (entry) in Wiktionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.word_card;
import wikokit.base.wikt.constant.Relation;
import wikokit.base.wikt.constant.P... | 19,255 | 34.527675 | 139 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/WCLanguage.java | /* WCLanguage.fx - A part of word card corresponds to a language part
* of a page (entry) in Wiktionary. It contains POS's sub-parts.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.word_card;
import wik... | 3,552 | 31.009009 | 106 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/WCMeaning.java | /* WCMeaning.java - A part of word card corresponds to a Definition (meaning) part
* of a page (entry) in Wiktionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.word_card;
import wikokit.base.wikt.... | 6,540 | 34.166667 | 110 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/WCPOS.java | /* WCLangPOS.java - A part of word card corresponds to a language-POS part
* of a page (entry) in Wiktionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.word_card;
import wikokit.base.wikt.sql.TMean... | 4,015 | 32.466667 | 176 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/WCQuote.java | /* WCQuote.java - A part of word card corresponds to quotations part
* of a page (entry) in Wiktionary.
*
* Copyright (c) 2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.word_card;
import wikokit.base.wikt.sql.TMeaning;
impor... | 1,571 | 27.071429 | 83 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/WCQuoteOneSentence.java | /* WCQuoteOneSentence.java - A part of word card corresponds to one quotation
* of a page (entry) in Wiktionary.
*
* Copyright (c) 2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.word_card;
import wikokit.base.wikt.sql.quote.... | 7,240 | 34.669951 | 104 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/WCRelation.java | /* WCRelation.java - A part of word card corresponds to a semantic relations part
* of a page (entry) in Wiktionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.word_card;
import wikokit.base.wikt.sq... | 3,741 | 29.672131 | 92 | java |
wikokit | wikokit-master/wiwordik/src/wiwordik/word_card/WCTranslation.java | /* WCTranslation.java - A part of word card corresponds to a translation part
* of a page (entry) in Wiktionary.
*
* Copyright (c) 2009-2011 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wiwordik.word_card;
import wikokit.base.wikt.sql.TT... | 5,653 | 36.443709 | 156 | java |
libsvm | libsvm-master/java/svm_predict.java | import libsvm.*;
import java.io.*;
import java.util.*;
class svm_predict {
private static svm_print_interface svm_print_null = new svm_print_interface()
{
public void print(String s) {}
};
private static svm_print_interface svm_print_stdout = new svm_print_interface()
{
public void print(String s)
{
Sys... | 5,358 | 25.661692 | 183 | java |
libsvm | libsvm-master/java/svm_scale.java | import libsvm.*;
import java.io.*;
import java.util.*;
import java.text.DecimalFormat;
class svm_scale
{
private String line = null;
private double lower = -1.0;
private double upper = 1.0;
private double y_lower;
private double y_upper;
private boolean y_scaling = false;
private double[] feature_max;
private ... | 8,937 | 24.464387 | 85 | java |
libsvm | libsvm-master/java/svm_toy.java | import libsvm.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import java.io.*;
public class svm_toy {
public static void main(String[] args) {
svm_toy_frame frame = new svm_toy_frame("svm_toy", 500, 500+50);
}
}
class svm_toy_frame extends Frame {
static final String DEFAULT_PARAM="-... | 11,955 | 23.550308 | 104 | java |
libsvm | libsvm-master/java/svm_train.java | import libsvm.*;
import java.io.*;
import java.util.*;
class svm_train {
private svm_parameter param; // set by parse_command_line
private svm_problem prob; // set by read_problem
private svm_model model;
private String input_file_name; // set by parse_command_line
private String model_file_name; // set by pa... | 8,354 | 25.191223 | 115 | java |
libsvm | libsvm-master/java/libsvm/svm.java |
package libsvm;
import java.io.*;
import java.util.*;
//
// Kernel Cache
//
// l is the number of total data items
// size is the cache size limit in bytes
//
class Cache {
private final int l;
private long size;
private final class head_t
{
head_t prev, next; // a cicular list
float[] data;
int len; /... | 67,726 | 21.780693 | 145 | java |
libsvm | libsvm-master/java/libsvm/svm_model.java | //
// svm_model
//
package libsvm;
public class svm_model implements java.io.Serializable
{
public svm_parameter param; // parameter
public int nr_class; // number of classes, = 2 in regression/one class svm
public int l; // total #SV
public svm_node[][] SV; // SVs (SV[l])
public double[][] sv_coef; // coeffici... | 946 | 38.458333 | 133 | java |
libsvm | libsvm-master/java/libsvm/svm_node.java | package libsvm;
public class svm_node implements java.io.Serializable
{
public int index;
public double value;
}
| 115 | 15.571429 | 53 | java |
libsvm | libsvm-master/java/libsvm/svm_parameter.java | package libsvm;
public class svm_parameter implements Cloneable,java.io.Serializable
{
/* svm_type */
public static final int C_SVC = 0;
public static final int NU_SVC = 1;
public static final int ONE_CLASS = 2;
public static final int EPSILON_SVR = 3;
public static final int NU_SVR = 4;
/* kernel_type */
publ... | 1,285 | 25.791667 | 68 | java |
libsvm | libsvm-master/java/libsvm/svm_print_interface.java | package libsvm;
public interface svm_print_interface
{
public void print(String s);
}
| 87 | 13.666667 | 36 | java |
libsvm | libsvm-master/java/libsvm/svm_problem.java | package libsvm;
public class svm_problem implements java.io.Serializable
{
public int l;
public double[] y;
public svm_node[][] x;
}
| 136 | 16.125 | 56 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/BasicWalkThrough.java | /*
Copyright (c) 2014-2023 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 4,266 | 31.082707 | 94 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/BoostFromPrediction.java | /*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 2,172 | 33.492063 | 87 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/CrossValidation.java | /*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 1,648 | 28.446429 | 94 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/CustomObjective.java | /*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 5,112 | 29.254438 | 100 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/EarlyStopping.java | /*
Copyright (c) 2021 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 2,515 | 36 | 88 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/ExternalMemory.java | /*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 2,144 | 33.596774 | 100 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/GeneralizedLinearModel.java | /*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 2,616 | 35.859155 | 87 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/PredictFirstNtree.java | /*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 2,232 | 32.328358 | 87 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/PredictLeafIndices.java | /*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 2,108 | 30.477612 | 87 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/flink/DistTrainWithFlinkExample.java | /*
Copyright (c) 2014-2021 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 4,343 | 39.222222 | 99 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/util/CustomEval.java | /*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 1,634 | 25.370968 | 73 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/util/DataLoader.java | /*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 3,635 | 28.322581 | 92 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-flink/src/main/java/ml/dmlc/xgboost4j/java/flink/XGBoost.java | /*
Copyright (c) 2014-2023 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 6,367 | 32.87234 | 99 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-flink/src/main/java/ml/dmlc/xgboost4j/java/flink/XGBoostModel.java | /*
Copyright (c) 2014-2023 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 4,346 | 30.729927 | 95 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-gpu/src/main/java/ml/dmlc/xgboost4j/gpu/java/CudfColumn.java | /*
Copyright (c) 2021 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 3,395 | 29.594595 | 91 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-gpu/src/main/java/ml/dmlc/xgboost4j/gpu/java/CudfColumnBatch.java | /*
Copyright (c) 2021 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 2,380 | 25.752809 | 89 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-gpu/src/main/java/ml/dmlc/xgboost4j/gpu/java/CudfUtils.java | /*
Copyright (c) 2021-2022 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 3,380 | 33.151515 | 93 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-gpu/src/test/java/ml/dmlc/xgboost4j/gpu/java/BoosterTest.java | /*
Copyright (c) 2021 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 4,077 | 30.612403 | 100 | java |
xgboost | xgboost-master/jvm-packages/xgboost4j-gpu/src/test/java/ml/dmlc/xgboost4j/gpu/java/DMatrixTest.java | /*
Copyright (c) 2021-2022 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 5,003 | 35.794118 | 108 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.