Source
stringclasses
1 value
Date
int32
2.01k
2.01k
Text
stringlengths
3
15.9M
Token_count
int32
1
2.44M
github-java-corpus
2,012
package javabot.operations; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; import javabot.dao.FactoidDao; import org.springframework.beans.factory.annotation.Autowired; @SPI(BotOperation.class) public class StatsOperation extends Bot...
235
github-java-corpus
2,012
package javabot.operations; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import com.antwerkz.maven.SPI; import javabot.Action; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.TellMessage; import javabot.dao.FactoidDao; impor...
1,545
github-java-corpus
2,012
package javabot.operations; import java.util.ArrayList; import java.util.List; import java.util.Random; import java.util.Set; import java.util.TreeSet; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; /** * @author ricky_clarkson */ @SPI(BotOperation.class) public class UnixCommandOp...
337
github-java-corpus
2,012
package javabot.operations; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import com.antwerkz.sofia.Sofia; import javabot.IrcEvent; import javabot.Message; import javabot.dao.ApiDao; import javabot.dao.ClazzDao; import javabot.javadoc.Api; import javabot.javadoc.Clazz; import javab...
1,178
github-java-corpus
2,012
package javabot.operations; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; @SPI(BotOperation.class) public class Magic8BallOperation extends BotOperation { String[] responses = { "Yes", "Definitely", "Abso...
310
github-java-corpus
2,012
package javabot.dao; import javabot.model.AdminEvent; import java.util.List; public interface EventDao extends BaseDao { String FIND_ALL = "Event.findAll"; List<AdminEvent> findUnprocessed(); }
47
github-java-corpus
2,012
package javabot.dao; import java.util.Date; import javabot.model.Shun; public interface ShunDao { String CLEANUP = "Shun.cleanup"; String BY_NAME = "Shun.byName"; void addShun(String nick, Date until); Shun getShun(String nick); boolean isShunned(String nick); }
75
github-java-corpus
2,012
package javabot.dao; import javax.persistence.EntityManager; import javabot.model.Persistent; /** * Created Jul 6, 2007 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public interface BaseDao { void save(Persistent persistent); void delete(Persistent persistent); void delete(Long ...
83
github-java-corpus
2,012
package javabot.dao.util; /* * Created by: Andrew Lombardi * Copyright 2006 Mystic Coders, LLC */ // // User: joed // Date: Apr 11, 2007 // Time: 2:39:43 PM // public class QueryParam { private int first; private int count; private String sort; private boolean sortAsc; /** * Set to ...
358
github-java-corpus
2,012
package javabot.dao.util; public class EntityNotFoundException extends javax.persistence.EntityNotFoundException { public EntityNotFoundException(Class clazz, Long id) { super("An object of type " + clazz + " with ID " + id + " does not exist."); } public EntityNotFoundException() { super(...
81
github-java-corpus
2,012
package javabot.dao.impl; import java.util.List; import java.util.Set; import java.util.TreeSet; import javabot.dao.AbstractDaoImpl; import javabot.dao.AdminDao; import javabot.dao.ChannelDao; import javabot.dao.ConfigDao; import javabot.model.Config; import javabot.operations.BotOperation; import org.springframework...
411
github-java-corpus
2,012
package javabot.dao.impl; import java.util.Date; import java.util.List; import javax.persistence.Query; import javabot.dao.AbstractDaoImpl; import javabot.dao.ChangeDao; import javabot.dao.util.QueryParam; import javabot.model.Change; import org.springframework.stereotype.Component; @Component public class ChangeDao...
707
github-java-corpus
2,012
package javabot.dao.impl; import javabot.dao.WeatherDao; import javabot.model.Weather; import org.springframework.stereotype.Component; import org.xml.sax.InputSource; import org.xml.sax.XMLReader; import org.xml.sax.helpers.XMLReaderFactory; import java.net.URL; import java.net.URLEncoder; /** * Implements a weath...
260
github-java-corpus
2,012
package javabot.dao.impl; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.List; import javax.persistence.NoResultException; import javabot.Seen; import javabot.dao.AbstractDaoImpl; import javabot.dao.ChannelDao; import javabot.dao.ConfigDao; import javabot.dao.Log...
768
github-java-corpus
2,012
package javabot.dao.impl; import java.util.Calendar; import java.util.Date; import java.util.List; import javax.persistence.Query; import javabot.dao.AbstractDaoImpl; import javabot.dao.ChangeDao; import javabot.dao.ConfigDao; import javabot.dao.FactoidDao; import javabot.dao.util.QueryParam; import javabot.model.Con...
1,442
github-java-corpus
2,012
package javabot.dao.impl; import java.util.Date; import java.util.List; import javax.persistence.EntityManager; import javabot.dao.AbstractDaoImpl; import javabot.dao.AdminDao; import javabot.model.Admin; import org.springframework.stereotype.Component; @Component public class AdminDaoImpl extends AbstractDaoImpl<Ad...
386
github-java-corpus
2,012
package javabot.dao.impl; import java.util.HashMap; import java.util.Map; import javabot.model.Weather; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; /** * SAX handler for Google's weather API * * @author Craig Tataryn &lt;craiger@tataryn.net&gt; */ pu...
397
github-java-corpus
2,012
package javabot.dao.impl; import java.util.Date; import javax.persistence.NoResultException; import javabot.dao.AbstractDaoImpl; import javabot.dao.ShunDao; import javabot.model.Shun; import org.springframework.stereotype.Component; @Component public class ShunDaoImpl extends AbstractDaoImpl<Shun> implements ShunDao...
302
github-java-corpus
2,012
package javabot.dao.impl; import javabot.dao.WeatherDao; import javabot.model.Weather; import org.springframework.stereotype.Component; import org.xml.sax.InputSource; import org.xml.sax.XMLReader; import org.xml.sax.helpers.XMLReaderFactory; import java.net.URL; import java.net.URLEncoder; import java.util.ArrayList...
409
github-java-corpus
2,012
package javabot.dao.impl; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.Query; import javabot.dao.AbstractDaoImpl; import javabot.dao.ClazzDao; import javabot.javadoc.Api; import javabot.javadoc.Clazz; import javabot.javado...
1,280
github-java-corpus
2,012
package javabot.dao.impl; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.persistence.PersistenceException; import javabot.Activity; import javabot.dao.AbstractDaoImpl; import javabot.dao.ChannelDao; import javabot.dao.util.QueryParam; import javabot.model.Ch...
723
github-java-corpus
2,012
package javabot.dao.impl; import java.net.URL; import java.net.URLEncoder; import javabot.dao.WeatherDao; import javabot.model.Weather; import org.springframework.stereotype.Component; import org.xml.sax.InputSource; import org.xml.sax.XMLReader; import org.xml.sax.helpers.XMLReaderFactory; /** * Implements a weath...
245
github-java-corpus
2,012
package javabot.dao.impl; import javabot.dao.AbstractDaoImpl; import javabot.dao.ApiDao; import javabot.javadoc.Api; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import javax.persistence.NoResultException; import java.util.List; /** * Created Oct 29, 2008...
262
github-java-corpus
2,012
package javabot.dao.impl; import java.util.Date; import java.util.List; import javax.persistence.NoResultException; import javabot.dao.AbstractDaoImpl; import javabot.dao.ChangeDao; import javabot.dao.KarmaDao; import javabot.dao.util.QueryParam; import javabot.model.Karma; import org.slf4j.Logger; import org.slf4j.L...
461
github-java-corpus
2,012
package javabot.dao.impl; import javabot.model.Weather; import org.apache.commons.lang.StringUtils; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * SAX han...
692
github-java-corpus
2,012
package javabot.dao.impl; import javabot.dao.AbstractDaoImpl; import javabot.dao.EventDao; import javabot.model.AdminEvent; import org.springframework.stereotype.Component; import java.util.List; @Component public class EventDaoImpl extends AbstractDaoImpl<AdminEvent> implements EventDao { protected EventDaoImpl...
123
github-java-corpus
2,012
package javabot.dao; import java.util.List; import javabot.dao.util.QueryParam; import javabot.model.Karma; import org.springframework.transaction.annotation.Transactional; public interface KarmaDao extends BaseDao { String ALL = "Karma.all"; String COUNT = "Karma.count"; String BY_NAME = "Karma.byName";...
124
github-java-corpus
2,012
package javabot.dao; import javabot.model.Config; /** * Created Jun 21, 2007 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public interface ConfigDao extends BaseDao { String GET_CONFIG = "Config.get"; Config get(); Config create(); }
73
github-java-corpus
2,012
package javabot.dao; import javabot.model.Weather; /** * Interface for getting Weather info from a service * * @author Craig Tataryn &lt;craiger@tataryn.net&gt; */ public interface WeatherDao { /** * Gets weather info, or null if none can be found * @return Current Weather information, null if not f...
92
github-java-corpus
2,012
package javabot.dao; import java.util.List; import javabot.javadoc.Api; import javabot.javadoc.Clazz; import javabot.javadoc.Field; import javabot.javadoc.Method; /** * Created Jul 27, 2007 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public interface ClazzDao extends BaseDao { String DELET...
341
github-java-corpus
2,012
package javabot.dao; import java.util.List; import javabot.dao.util.QueryParam; import javabot.model.Change; import org.springframework.transaction.annotation.Transactional; public interface ChangeDao extends BaseDao { @Transactional void logAdd(String sender, String key, String value); @Transactional ...
121
github-java-corpus
2,012
package javabot.dao; import java.util.Date; import java.util.List; import javabot.model.Logs; import javabot.Seen; import org.springframework.transaction.annotation.Transactional; public interface LogsDao extends BaseDao { String TODAY = "Logs.today"; String COUNT_LOGGED = "Logs.countLogged"; String SEEN...
136
github-java-corpus
2,012
package javabot.dao; import java.util.List; import javabot.dao.util.QueryParam; import javabot.model.Channel; import javabot.Activity; @SuppressWarnings({"ConstantNamingConvention"}) public interface ChannelDao extends BaseDao { String BY_NAME = "Channel.byName"; String ALL = "Channel.all"; String CONFIG...
167
github-java-corpus
2,012
package javabot.dao; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javabot.dao.util.EntityNotFoundException; import javabot.model.Persistent; import org.springframework.transaction.annotation.Transactional; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @Transa...
360
github-java-corpus
2,012
package javabot.dao; import java.util.List; import javabot.javadoc.Api; /** * Created Oct 29, 2008 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public interface ApiDao extends BaseDao { String FIND_BY_NAME = "Javadoc.findByName"; String FIND_ALL = "Javadoc.findAll"; Api find(Stri...
97
github-java-corpus
2,012
package javabot.dao; import java.util.List; import javabot.dao.util.QueryParam; import javabot.model.Factoid; import org.springframework.transaction.annotation.Transactional; @SuppressWarnings({"ConstantNamingConvention"}) public interface FactoidDao extends BaseDao { String ALL = "Factoid.all"; String COUNT...
218
github-java-corpus
2,012
package javabot.dao; import java.util.List; import javabot.model.Admin; public interface AdminDao extends BaseDao { String FIND = "Admin.find"; String FIND_WITH_HOST = "Admin.findWithHost"; String FIND_ALL = "Admin.findAll"; boolean isAdmin(String user, String hostname); Admin getAdmin(String u...
101
github-java-corpus
2,012
package javabot; public class Message { private final String destination; private String message; private IrcEvent event; public Message(final String dest, final IrcEvent evt, final String value) { destination = dest; message = value; event = evt; } public Message(fina...
234
github-java-corpus
2,012
package javabot; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEncoder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class IsGdShortener { private static final Logger log =...
358
github-java-corpus
2,012
package javabot; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Properti...
3,254
github-java-corpus
2,012
package javabot; public class IrcUser { private String nick; private String userName; private String host; public IrcUser(final String nick, final String userName, final String host) { this.host = host; this.nick = nick; this.userName = userName; } public IrcUser(final...
192
github-java-corpus
2,012
package javabot; import javabot.model.Channel; import javabot.model.Logs; import org.jibble.pircbot.PircBot; public class MyPircBot extends PircBot { private final Javabot javabot; public MyPircBot(final Javabot javabot) { this.javabot = javabot; setVersion(javabot.loadVersion()); set...
830
github-java-corpus
2,012
package javabot; import java.util.Comparator; import javabot.operations.BotOperation; public class BotOperationComparator implements Comparator<BotOperation> { @Override public int compare(final BotOperation o1, final BotOperation o2) { if ("GetFactoid".equals(o1.getName())) { return 1; ...
105
github-java-corpus
2,012
package quickstart; import org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.nio.SelectChannelConnector; import org.mortbay.jetty.webapp.WebAppContext; public class StartJavabot { public static void main(final String[] args) throws Exception { final Server server = new...
185
github-java-corpus
2,012
package javabot; import javabot.dao.AdminDao; import javabot.dao.ChannelDao; import javabot.model.Channel; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.testng.a...
814
github-java-corpus
2,012
/* * Copyright 2002-2006 the original author or authors. * * 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 ap...
2,780
github-java-corpus
2,012
/* * Copyright 2002-2006 the original author or authors. * * 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...
1,051
github-java-corpus
2,012
/* * Copyright 2002-2007 the original author or authors. * * 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 ap...
1,496
github-java-corpus
2,012
/* * Copyright 2002-2007 the original author or authors. * * 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 ap...
1,851
github-java-corpus
2,012
package javabot.model; import com.antwerkz.sofia.Sofia; import javabot.BaseTest; import javabot.dao.EventDao; import org.springframework.beans.factory.annotation.Autowired; import org.testng.Assert; import org.testng.annotations.Test; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; ...
639
github-java-corpus
2,012
package javabot; import javabot.database.UpgradeScript; import org.testng.annotations.Test; import java.util.Set; @Test public class UpgradeScriptTest { public void validateIDs() { final Set<UpgradeScript> scripts = UpgradeScript.loadScripts(); } }
57
github-java-corpus
2,012
package javabot.operations; import javabot.BaseTest; import javabot.dao.ApiDao; import javabot.dao.ClazzDao; import org.springframework.beans.factory.annotation.Autowired; import org.testng.annotations.Test; @Test//(dependsOnGroups = {"javadoc"}) public class JavadocOperationTest extends BaseOperationTest { @Auto...
425
github-java-corpus
2,012
package javabot.operations; import javabot.BaseTest; import javabot.dao.FactoidDao; import org.springframework.beans.factory.annotation.Autowired; import org.testng.annotations.Test; @Test public class TellOperationTest extends BaseOperationTest { @Autowired private FactoidDao dao; public void shortcut()...
237
github-java-corpus
2,012
package javabot.operations; import org.testng.annotations.Test; /** * Integration test for the Weather Operation, will actually attempt to contact the Google API for weather as * it's using the real Dao instead of a Mock/Stub * * @author Craig Tataryn &lt;craiger@tataryn.net&gt; */ public class WeatherOperationT...
331
github-java-corpus
2,012
package javabot.operations; import javabot.operations.locator.impl.JCPJSRLocatorImpl; import org.testng.Assert; import org.testng.annotations.Test; /** * Created Dec 11, 2008 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ @Test public class JCPJSFLocatorImplTest { public void jsr315() { ...
151
github-java-corpus
2,012
package javabot.operations; import java.util.Arrays; import java.util.List; import javabot.BaseTest; import javabot.IrcEvent; import javabot.IrcUser; import javabot.Message; import org.testng.Assert; import org.unitils.spring.annotation.SpringApplicationContext; @SpringApplicationContext("classpath:applicationContex...
658
github-java-corpus
2,012
package javabot.operations; import javabot.BaseTest; import org.testng.annotations.Test; @Test(enabled = false) public class SeenOperationTest extends BaseOperationTest { public void stringCase() { send("MixedCase"); send("lowercase"); send("UPPERCASE"); changeNick(BaseTest.TEST_US...
180
github-java-corpus
2,012
package javabot.operations; import java.util.Date; import javabot.BaseTest; import javabot.IrcUser; import javabot.dao.ChangeDao; import javabot.dao.KarmaDao; import javabot.model.Karma; import org.springframework.beans.factory.annotation.Autowired; import org.testng.Assert; import org.testng.annotations.Test; @Test...
723
github-java-corpus
2,012
package javabot.operations; import java.io.IOException; import javabot.BaseTest; import javabot.dao.ChangeDao; import javabot.dao.FactoidDao; import org.springframework.beans.factory.annotation.Autowired; import org.testng.Assert; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; @Test(...
602
github-java-corpus
2,012
package javabot.operations; import javabot.BaseTest; import javabot.dao.ChangeDao; import javabot.dao.FactoidDao; import org.springframework.beans.factory.annotation.Autowired; import org.testng.annotations.Test; @Test(groups = {"operations"}) public class ForgetFactoidOperationTest extends BaseOperationTest { @A...
202
github-java-corpus
2,012
package javabot.operations; import javabot.BaseTest; import org.testng.annotations.Test; /** * Created Feb 26, 2009 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ @Test public class ShunOperationTest extends BaseOperationTest { public void shunMe() throws InterruptedException { sendM...
175
github-java-corpus
2,012
package javabot.operations; import java.io.IOException; import java.util.Arrays; import javabot.BaseTest; import javabot.IrcUser; import javabot.dao.FactoidDao; import org.springframework.beans.factory.annotation.Autowired; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotati...
1,764
github-java-corpus
2,012
package javabot.mock; import javabot.operations.BaseOperationTest; import org.testng.annotations.Test; @Test(groups = {"operations"}) public class SayOperationsTest extends BaseOperationTest { public void testSay() { testMessage("~say MAGNIFICENT", "MAGNIFICENT"); } }
64
github-java-corpus
2,012
package javabot.dao; import org.springframework.beans.factory.annotation.Autowired; import org.testng.Assert; import org.testng.annotations.Test; import javabot.model.Factoid; public class FactoidDaoTest extends BaseServiceTest { @Autowired private FactoidDao factoidDao; @Test(groups = {"operations"}) ...
342
github-java-corpus
2,012
package javabot.dao; import javabot.BaseTest; public class BaseServiceTest extends BaseTest { }
23
github-java-corpus
2,012
package javabot.dao; import java.util.Calendar; import java.util.Date; import javabot.model.Config; import javabot.model.Logs; import javabot.model.Logs.Type; import org.springframework.beans.factory.annotation.Autowired; import org.testng.Assert; import org.testng.annotations.Test; @Test public class LogDaoTest ext...
404
github-java-corpus
2,012
package javabot.dao; import java.util.List; import javabot.Activity; import javabot.model.Channel; import org.springframework.beans.factory.annotation.Autowired; import org.testng.Assert; import org.testng.annotations.Test; public class ChannelDaoTest extends BaseServiceTest { @Autowired private ChannelDao c...
242
github-java-corpus
2,012
package javabot.dao; import javabot.BaseTest; import javabot.operations.BaseOperationTest; import javabot.operations.BotOperation; import javabot.operations.GetFactoidOperation; import org.springframework.beans.factory.annotation.Autowired; import org.testng.annotations.Test; @Test(groups = {"operations"}) public cla...
534
github-java-corpus
2,012
package javabot; /** * Created Jan 27, 2009 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public class Response { private final String channel; private final IrcUser sender; private final String message; public Response(final String target, final IrcUser user, final String msg) { ...
186
github-java-corpus
2,012
package javabot.admin; import javabot.IrcUser; import javabot.operations.BaseOperationTest; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; @Test public class LockFactoidTest extends BaseOperationTest { @DataProvider(name = "factoids") public String[][] names() { return...
329
github-java-corpus
2,012
package javabot.admin; import javabot.dao.ApiDao; import javabot.dao.ClazzDao; import javabot.javadoc.Api; import javabot.operations.BaseOperationTest; import org.springframework.beans.factory.annotation.Autowired; import org.testng.annotations.Test; @Test public class JavadocTest extends BaseOperationTest { @Aut...
365
github-java-corpus
2,012
package javabot.admin; import java.util.Iterator; import java.util.List; import javabot.Message; import javabot.commands.AdminCommand; import javabot.dao.ConfigDao; import javabot.operations.BaseOperationTest; import javabot.operations.BotOperation; import javabot.operations.StandardOperation; import org.springframew...
368
github-java-corpus
2,012
package javabot; /** * Created Jan 27, 2009 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public interface OnMessage { }
45
github-java-corpus
2,012
package javabot.wicket.core; import org.apache.wicket.Request; import org.apache.wicket.protocol.http.WebApplication; import org.apache.wicket.protocol.http.WebSession; public final class JavabotSession extends WebSession { protected JavabotSession(final WebApplication application, final Request request) { ...
73
github-java-corpus
2,012
package javabot.wicket.core; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.resources.StyleSheetReference; import org.apache.wicket.PageParameters; import javabot.wicket.panels.JavabotInfo; import javabot.wicket.panels.Credits; import javabot.wicket.panels.ChannelBox; // // User: jo...
246
github-java-corpus
2,012
package javabot.wicket.core; import javabot.wicket.pages.Activity; import javabot.wicket.pages.Factoids; import javabot.wicket.pages.Index; import javabot.wicket.pages.Karma; import org.apache.wicket.Request; import org.apache.wicket.Response; import org.apache.wicket.Session; import org.apache.wicket.markup.html.Ajax...
302
github-java-corpus
2,012
package javabot.wicket.pages; import javabot.wicket.core.JavabotPage; import javabot.wicket.panels.ActivityPanel; import org.apache.wicket.PageParameters; // User: joed // Date: May 17, 2007 // Time: 2:37:26 PM public class Activity extends JavabotPage { public Activity(PageParameters parameters) { super...
102
github-java-corpus
2,012
package javabot.wicket.pages; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import javabot.wicket.core.JavabotPage; import javabot.wicket.panels.ChannelLog; import javabot.wicket.panels.NavigationPanel; import javabot.wicket.panels.WelcomePanel; import org.apache.wicket.Pa...
302
github-java-corpus
2,012
package javabot.wicket.pages; import javabot.wicket.core.JavabotPage; import javabot.wicket.panels.KarmaPanel; import org.apache.wicket.PageParameters; public class Karma extends JavabotPage { public Karma(final PageParameters parameters) { super(parameters); add(new KarmaPanel("karmalist")); ...
77
github-java-corpus
2,012
package javabot.wicket.pages; import javabot.wicket.core.JavabotPage; import javabot.wicket.panels.ChangesPanel; import org.apache.wicket.PageParameters; public class ChangeLogs extends JavabotPage { public ChangeLogs(final PageParameters parameters) { super(parameters); add(new ChangesPanel("chan...
77
github-java-corpus
2,012
package javabot.wicket.pages; import javabot.wicket.core.JavabotPage; import javabot.wicket.panels.FactoidsPanel; import org.apache.wicket.PageParameters; public class Factoids extends JavabotPage { public Factoids(PageParameters parameters) { super(parameters); add(new FactoidsPanel("factoids"));...
79
github-java-corpus
2,012
package javabot.wicket.panels; import java.util.Date; import javabot.dao.LogsDao; import javabot.model.Logs; import org.apache.wicket.behavior.SimpleAttributeModifier; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.markup.repeater.Re...
325
github-java-corpus
2,012
package javabot.wicket.panels; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.IModel; import java.text.SimpleDateFormat; import javabot.model.Logs; /** * ActionMessagePanel * <p/> * Created by: Andrew Lombardi * Copyright 2006 M...
181
github-java-corpus
2,012
package javabot.wicket.panels; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.IModel; import java.text.SimpleDateFormat; import javabot.model.Logs; /** * ActionMessagePanel * <p/> * Created by: Andrew Lombardi * Copyright 2006 M...
179
github-java-corpus
2,012
package javabot.wicket.panels; import java.text.SimpleDateFormat; import java.util.Iterator; import javabot.dao.ChangeDao; import javabot.dao.util.QueryParam; import javabot.model.Change; import org.apache.wicket.Component; import org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable; import org.apac...
1,146
github-java-corpus
2,012
package javabot.wicket.panels; import javabot.dao.FactoidDao; import javabot.dao.util.QueryParam; import javabot.model.Factoid; import org.apache.wicket.Component; import org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable; import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersT...
1,214
github-java-corpus
2,012
package javabot.wicket.panels; import java.text.SimpleDateFormat; import java.util.Iterator; import javabot.dao.KarmaDao; import javabot.dao.util.QueryParam; import javabot.model.Karma; import org.apache.wicket.AttributeModifier; import org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder; import...
1,063
github-java-corpus
2,012
package javabot.wicket.panels; import org.apache.wicket.markup.html.panel.Panel; // Author: joed // Date : May 22, 2007 public class WelcomePanel extends Panel { public WelcomePanel(String id) { super(id); } }
61
github-java-corpus
2,012
package javabot.wicket.panels; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.IModel; import java.text.SimpleDateFormat; import javabot.model.Logs; /** * ServerMessagePanel * <p/> * Created by: Andrew Lombardi * Copyright 2006 M...
181
github-java-corpus
2,012
package javabot.wicket.panels; import org.apache.wicket.markup.html.panel.Panel; // Author: joed // Date : May 22, 2007 public class Credits extends Panel { public Credits(String id) { super(id); } }
58
github-java-corpus
2,012
package javabot.wicket.panels; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javabot.dao.ChannelDao; import org.apache.wicket.PageParameters; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.mark...
476
github-java-corpus
2,012
package javabot.wicket.panels; import javabot.dao.FactoidDao; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.AbstractReadOnlyModel; import org.apache.wicket.spring.injection.annot.SpringBean; // User: joed // Date: May 21, 2007 // Time: 1:14:08 PM // public class FactoidCount exten...
156
github-java-corpus
2,012
package javabot.wicket.panels; import javabot.model.Logs; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.model.IModel; import java.text.SimpleDateFormat; /** * NickMessagePanel * <p/> * Created by: Andrew Lombardi * Copyright 2006 Myst...
178
github-java-corpus
2,012
package javabot.wicket.panels; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Map; import org.apache.wicket.PageParameters; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.link.BookmarkablePageLink;...
439
github-java-corpus
2,012
package javabot.wicket.panels; import java.text.SimpleDateFormat; import java.util.Iterator; import javabot.Activity; import javabot.dao.ChannelDao; import org.apache.wicket.AttributeModifier; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.navigation.paging.PagingNavigator; imp...
470
github-java-corpus
2,012
package javabot.wicket.panels; import javabot.wicket.pages.Activity; import javabot.wicket.pages.ChangeLogs; import javabot.wicket.pages.Factoids; import javabot.wicket.pages.Karma; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.link.BookmarkablePageLink; import org.apache.wicke...
335
github-java-corpus
2,012
package javabot.maven; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import java.util.Map; import java.util.Map.Entry; import javax.annotation.processing.Filer; import javax.annotation.processing.Processor; import javax.annotation.processing.SupportedAnnotationTypes; import javax.annot...
706
github-java-corpus
2,012
package javabot.maven; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.annotation.processing.SupportedAnnotationTypes; import javax.annotation.processing.SupportedSourceVersion; import javax.lang.model.SourceVersion; import javax....
852
github-java-corpus
2,012
import org.junit.*; import java.util.*; import play.test.*; import models.*; public class BasicTest extends UnitTest { @Test public void aVeryImportantThingToTest() { assertEquals(2, 1 + 1); } }
52
github-java-corpus
2,012
import org.junit.*; import play.test.*; import play.mvc.*; import play.mvc.Http.*; import models.*; public class ApplicationTest extends FunctionalTest { @Test public void testThatIndexPageWorks() { Response response = GET("/"); assertIsOk(response); assertContentType("text/html", resp...
78