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
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.Video; import org.eclipse.acceleo.tutorial.webapp.WebappPackage; import org.eclipse.emf.common.notify....
924
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.NamedElement; import org.eclipse.acceleo.tutorial.webapp.WebappPackage; import org.eclipse.emf.common....
1,014
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.Operation; import org.eclipse.acceleo.tutorial.webapp.WebappFactory; import org.eclipse.acceleo.tutorial...
1,060
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.FormWidget; import org.eclipse.acceleo.tutorial.webapp.WebappPackage; import org.eclipse.emf.common.no...
945
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.CheckBox; import org.eclipse.acceleo.tutorial.webapp.WebappPackage; import org.eclipse.emf.common.noti...
928
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.Parameter; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.N...
689
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.Table; import org.eclipse.acceleo.tutorial.webapp.WebappPackage; import org.eclipse.emf.common.notify....
1,398
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.ImagesBlock; import org.eclipse.acceleo.tutorial.webapp.WebappPackage; import org.eclipse.emf.common.n...
947
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.Reference; import org.eclipse.acceleo.tutorial.webapp.WebappPackage; import org.eclipse.emf.common.not...
869
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.WebappPackage; import org.eclipse.acceleo.tutorial.webapp.Widget; import org.eclipse.emf.common.notify...
934
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import java.util.Collection; import java.util.List; import org.eclipse.acceleo.tutorial.webapp.Router; import org.eclipse.acceleo.tutorial.webapp.WebappFactory; import org.eclipse.acceleo.tutorial.we...
1,065
github-java-corpus
2,012
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.acceleo.tutorial.webapp.provider; import org.eclipse.emf.common.EMFPlugin; import org.eclipse.emf.common.util.ResourceLocator; /** * This is the central singleton for the Webapp edit plugin. * <!-- begin-user-doc --> * <!-- end-u...
444
github-java-corpus
2,012
package org.eclipse.acceleo.tutorial; import org.eclipse.jetty.server.Handler; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.handler.DefaultHandler; import org.eclipse.jetty.server.handler.HandlerList; import org.eclipse.jetty.server.handler.ResourceHandler; import org.eclipse.jetty.server.ni...
207
github-java-corpus
2,012
package org.eclipse.acceleo.tutorial; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; /** * The activator class controls the plug-in life cycle */ public class Activator extends AbstractUIPlugin { // The plug-in ID public static final String PLUGIN_ID = "org.ecl...
249
github-java-corpus
2,012
package org.eclipse.acceleo.tutorial.wizard; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringReader; import java.lang.reflect...
2,266
github-java-corpus
2,012
package javabot; import java.io.Serializable; import java.text.DecimalFormat; import java.util.Date; public class Activity implements Serializable { private String channel; private Date start; private Date end; private long count; private long total; public Activity(String chan, long chanCoun...
213
github-java-corpus
2,012
package javabot; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; public class JavabotThreadFactory implements ThreadFactory { private final AtomicInteger threadNumber = new AtomicInteger(1); private final String namePrefix; private final boolean createDaemonThr...
160
github-java-corpus
2,012
package javabot; import com.rosaloves.bitlyj.Url; import static com.rosaloves.bitlyj.Bitly.as; import static com.rosaloves.bitlyj.Bitly.shorten; public class BitlyShortener { private String user; private String key; public BitlyShortener() { user = "bitlyapidemo"; key = "R_0da49e0a9118ff3...
146
github-java-corpus
2,012
package javabot; /** * Created Dec 15, 2008 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public class Action extends Message { public Action(String dest, IrcEvent evt, String value) { super(dest, evt, value); } @Override public void send(Javabot bot) { bot.postA...
94
github-java-corpus
2,012
package javabot.database; import java.io.IOException; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import com.antwerkz.maven.SPI; import javabot.Javabot; @SPI(UpgradeScript.class) public class RenamePrefixes extends UpgradeScript { @Override ...
183
github-java-corpus
2,012
package javabot.database; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.HashMap; import java.util.Map; import com....
407
github-java-corpus
2,012
package javabot.database; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import java.util.Comparator; import java.util.ServiceLoader; import java.util.Set; import java.util.TreeSet; import javax.sql.DataSource; import javabot.Javabot; import javabot.dao.ConfigDao; import javabot...
461
github-java-corpus
2,012
package javabot; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import javabot.dao.ChannelDao; import javabot....
938
github-java-corpus
2,012
package javabot; /** * Created Jun 27, 2005 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public class ApplicationException extends RuntimeException { public ApplicationException() { } public ApplicationException(final Throwable cause) { super(cause); } public Appli...
102
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; import com.antwerkz.maven.SPI; i...
475
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.util.Set; import java.util.TreeSet; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; impo...
731
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.NamedQuerie...
728
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; ...
379
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.util.Date; import javax.persistence.DiscriminatorColumn; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistenc...
587
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.Nam...
326
github-java-corpus
2,012
package javabot.model; import javax.persistence.Entity; import javabot.Javabot; @Entity public class OperationEvent extends AdminEvent { private String operation; public String getOperation() { return operation; } public void setOperation(String operation) { this.operation = operation; } @Over...
112
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.util.UUID; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javabot.IrcUser; @Entity @Table(name = "registrations") pub...
312
github-java-corpus
2,012
package javabot.model; /** * Created Jul 6, 2007 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public interface Persistent { Long getId(); void setId(Long id); }
55
github-java-corpus
2,012
package javabot.model; import org.apache.commons.lang.StringUtils; /** * Simple model for passing around Weather conditions * * @author Craig Tataryn &lt;craiger@tataryn.net&gt; */ public class Weather { // PIRCbot does not support unicode at this time // private static char C = '\u2103'; // private stat...
965
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; import com.antwerkz.maven.SPI; i...
589
github-java-corpus
2,012
package javabot.model; public enum EventType { ADD, DELETE, UPDATE }
20
github-java-corpus
2,012
package javabot.model; import java.io.StringWriter; import javax.persistence.Entity; import javabot.IrcEvent; import javabot.IrcUser; import javabot.Javabot; import javabot.Message; import javabot.dao.AdminDao; import javabot.dao.ApiDao; import javabot.javadoc.Api; import javabot.javadoc.JavadocParser; @Entity publi...
485
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.util.Date; import java.net.URLEncoder; import java.nio.charset.Charset; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; im...
1,332
github-java-corpus
2,012
package javabot.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Column; import javax.persistence.Temporal; ...
243
github-java-corpus
2,012
package javabot.model; import javax.persistence.Entity; import com.antwerkz.sofia.Sofia; import javabot.Javabot; import javabot.dao.ChannelDao; @Entity public class ChannelEvent extends AdminEvent { private String channel; private String key; private Boolean logged; protected ChannelEvent() { } ...
405
github-java-corpus
2,012
package javabot.irclib; import java.util.Date; import javabot.dao.LogsDao; import javabot.model.Logs.Type; import org.schwering.irc.lib.IRCEventListener; import org.schwering.irc.lib.IRCModeParser; import org.schwering.irc.lib.IRCUser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframewor...
871
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.dao.ChannelDao; import javabot.model.Channel; import org.springframework.beans.factory.annotation.Autowired; /** * Creat...
366
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.dao.ChannelDao; import javabot.dao.util.QueryParam; import javabot.model.Channel; import org.apache.commons.lang.StringUti...
310
github-java-corpus
2,012
package javabot.commands; import java.util.List; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import org.apache.commons.lang.StringUtils; /** * Created Jan 26, 2009 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public abstract class OperationsCommand extends AdminCo...
150
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.operations.BotOperation; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFacto...
279
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; /** * Created Jan 26, 2009 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ @SPI({AdminCommand.class}) public class ...
247
github-java-corpus
2,012
package javabot.commands; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.dao.ConfigDao; import javabot.model.C...
423
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.dao.AdminDao; import javabot.IrcUser; import org.springframework.beans.factory.annotation.Autowired; /** * Created Dec 1...
409
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.dao.ApiDao; import javabot.javadoc.Api; import org.springframework.beans.factory.annotation.Autowired; import org.springfr...
337
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; /** * Created Jan 26, 2009 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ @SPI({AdminCommand.class}) public class ...
229
github-java-corpus
2,012
package javabot.commands; import static java.lang.annotation.ElementType.FIELD; import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; @Retention(RUNTIME) @Target({FIELD}) public @interface Param { String name() default ""; boole...
81
github-java-corpus
2,012
package javabot.commands; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.operations.BotOperation; import org.apache.commons.cli.CommandLine; i...
1,202
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.dao.ApiDao; import javabot.javadoc.Api; import org.springframework.beans.factory.annotation.Autowired; import org.springfr...
378
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.dao.FactoidDao; import javabot.model.Factoid; import org.springframework.beans.factory.annotation.Autowired; /** * Creat...
322
github-java-corpus
2,012
package javabot.commands; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.dao.ChannelDao; import javabot.model.Channel; import org.springframework.beans.factory.annotation.Autowired; /** * Creat...
269
github-java-corpus
2,012
package javabot; public interface ChannelControl { void partChannel(String channel,String leaveMessage); void joinChannel(String channel); }
27
github-java-corpus
2,012
package javabot.javadoc; import java.io.File; import java.io.IOException; import java.io.Writer; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.BlockingQu...
1,154
github-java-corpus
2,012
package javabot.javadoc; /** * Created Jan 15, 2009 * * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> */ public class IrrelevantClassException extends RuntimeException { public IrrelevantClassException(final String s) { super(s); } }
68
github-java-corpus
2,012
package javabot.javadoc; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.Transient; import com.antwerkz.maven.SPI;...
698
github-java-corpus
2,012
package javabot.javadoc; import javax.persistence.Column; import javax.persistence.MappedSuperclass; import javax.persistence.Transient; import javabot.IsGdShortener; import javabot.dao.BaseDao; import javabot.model.Persistent; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.transa...
413
github-java-corpus
2,012
package javabot.javadoc; import javax.persistence.Transient; import javax.persistence.Id; import javax.persistence.GeneratedValue; import javax.persistence.Entity; import javax.persistence.Table; import javax.persistence.ManyToOne; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import com...
651
github-java-corpus
2,012
package javabot.javadoc; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOn...
1,026
github-java-corpus
2,012
package javabot.javadoc; import java.util.HashMap; import java.util.Map; import javabot.dao.ClazzDao; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.asm.FieldVisitor; import org.springframework.asm.MethodVisitor; import org.springframework.asm.Opcodes; import org.springframework.a...
1,385
github-java-corpus
2,012
package javabot.javadoc; import java.util.ArrayList; import java.util.List; import java.util.Arrays; import java.util.Set; import java.util.TreeSet; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import javax.persistence.CascadeType; import javax.persistence.Column; import java...
586
github-java-corpus
2,012
package javabot; public class IrcEvent { private final String channel; private final IrcUser sender; private String message; public IrcEvent(final String eventChannel, final IrcUser user, final String eventMessage) { channel = eventChannel; sender = user; message = eventMessage...
177
github-java-corpus
2,012
package javabot; public class TellMessage extends Message { public TellMessage(final IrcUser tell, final String dest, final IrcEvent evt, final String value) { super(dest, evt, value.contains(tell.getNick()) ? value : String.format("%s, %s", tell, value)); } }
68
github-java-corpus
2,012
package javabot; import java.util.Date; public class Seen { private String nick; private String channel; private String message; private Date updated; public Seen(final String channel, final String message, final String nick, final Date updated) { this.channel = channel; this.mess...
199
github-java-corpus
2,012
package javabot.operations; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.ServiceLoader; import javabot.IrcEvent; import javabot.IrcUser; import javabot.Javabot; import javabot.Message; import javabot.dao.AdminDao; import org.springframework.beans.factory.annotation...
352
github-java-corpus
2,012
package javabot.operations; import java.util.Comparator; public class OperationComparator implements Comparator<BotOperation> { @Override public int compare(final BotOperation botOperation, final BotOperation o) { return botOperation.getName().compareTo(o.getName()); } }
55
github-java-corpus
2,012
package javabot.operations; import javabot.operations.throttle.ThrottleItem; import javabot.IrcUser; public final class TellInfo implements ThrottleItem<TellInfo> { private final IrcUser user; private final String msg; public TellInfo(final IrcUser user, final String msg) { this.user = user; ...
173
github-java-corpus
2,012
package javabot.operations; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.ArrayList; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; import javabot.IrcUser; @SPI(BotOperatio...
495
github-java-corpus
2,012
package javabot.operations; import java.util.ArrayList; import java.util.Calendar; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; @SPI(BotOperation.class) public class TimeOperation extends BotOperation { @Override public List<Message> handleMessage(fin...
137
github-java-corpus
2,012
package javabot.operations; import java.util.List; import java.util.ArrayList; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; import javabot.operations.locator.JCPJSRLocator; import javabot.operations.locator.impl.JCPJSRLocatorImpl; @SPI(BotOperation.class) public class JSROperation ...
239
github-java-corpus
2,012
package javabot.operations; import com.antwerkz.maven.SPI; /** * @author ricky_clarkson */ @SPI(BotOperation.class) public class DictOperation extends UrlOperation { @Override protected String getBaseUrl() { return "http://dictionary.reference.com/browse/"; } @Override protected String ...
83
github-java-corpus
2,012
package javabot.operations; import javabot.IrcUser; public final class TellSubject { private final IrcUser target; private final String subject; public TellSubject(final IrcUser target, final String subject) { this.target = target; this.subject = subject; } public IrcUser getTarg...
157
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 javabot.model.Factoid; import org.springframework.beans.factory.annotation.Autowired; /** * @author ricky_clarkson */ ...
259
github-java-corpus
2,012
package javabot.operations.locator.impl; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringReader; import java.net.URL; import java.net.URLConnection; import java.util.HashMap; import java.util.Map; import javabot.operations.locator.JCPJSRLoca...
686
github-java-corpus
2,012
package javabot.operations.locator; import java.util.Map; public interface Locator { Map<String, String> locate(Map<String, String> inputs); }
31
github-java-corpus
2,012
package javabot.operations.locator; public interface JCPJSRLocator extends Locator { String findInformation(int jsr); }
26
github-java-corpus
2,012
package javabot.operations; import com.antwerkz.maven.SPI; @SPI(BotOperation.class) public class GoogleOperation extends UrlOperation { @Override protected String getBaseUrl() { return "http://letmegooglethatforyou.com/?q="; } @Override protected String getTrigger() { return "goog...
78
github-java-corpus
2,012
package javabot.operations; import java.util.ArrayList; import java.util.List; import java.util.ServiceLoader; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Javabot; import javabot.Message; import javabot.commands.AdminCommand; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * ...
370
github-java-corpus
2,012
package javabot.operations.throttle; public interface ThrottleItem<T extends ThrottleItem> { /** Check if this item matches the other item * @return true if t matches this item, false otherwise. */ boolean matches (T t); }
55
github-java-corpus
2,012
package javabot.operations.throttle; import java.util.ArrayList; import java.util.List; public class Throttler<T extends ThrottleItem> { /** * Maximum throttle items to keep in memory */ private final int maxThrottleItems; // 100; /** * Throttle time in millis */ private final int ...
424
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 SayOperation extends BotOperation { @Override public List<Message> handleMessage(final IrcEvent event) { ...
125
github-java-corpus
2,012
package javabot.operations; public abstract class StandardOperation extends BotOperation { }
16
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(StandardOperation.class) public class VersionOperation extends StandardOperation { @Override public List<Message> handleMessage(final IrcEvent ev...
136
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.IrcUser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SPI(BotOperation.class) public class LeaveOperation extends BotOperation { ...
299
github-java-corpus
2,012
package javabot.operations; import java.util.List; import java.util.Collections; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; @SPI(BotOperation.class) public class IgnoreOperation extends BotOperation { @Override public List<Message> handleMessage(final IrcEvent event) { //...
155
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; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SPI(BotOperation.class) pub...
468
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.Javabot; import javabot.Message; import javabot.dao.KarmaDao; import javabot.model.Karma; import javabot.operations.throttle.ThrottleItem; import javabot.operations.thr...
893
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.AdminDao; import javabot.dao.ConfigDao; import javabot.model.Config; import javabot.model.NickRegistration;...
290
github-java-corpus
2,012
package javabot.operations; import java.text.SimpleDateFormat; import java.util.List; import java.util.ArrayList; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; import javabot.model.Factoid; import javabot.dao.FactoidDao; import org.springframework.beans.factory.annotation.Autowired; ...
337
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.WeatherDao; import javabot.model.Weather; import org.springframework.beans.factory.annotation.Autowired; /** * Gets current weather cond...
268
github-java-corpus
2,012
package javabot.operations; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; import javabot.IrcEvent; import javabot.Message; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Created Dec 16, 200...
253
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.IrcUser; import javabot.Message; import javabot.dao.FactoidDao; import javabot.model.Factoid; import org.springframework.beans.factory.annotation.Autowired; @SPI(Stand...
415
github-java-corpus
2,012
package javabot.operations; import java.text.DateFormat; import java.util.ArrayList; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; import javabot.dao.LogsDao; import javabot.IrcUser; import org.springframework.beans.factory.annotation.Autowired; @SPI(BotOperat...
295
github-java-corpus
2,012
package javabot.operations; import java.util.Collections; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SPI(BotOperation.class) public class QuitOperation extends BotOperation { private static final...
153
github-java-corpus
2,012
package javabot.operations; import java.util.Calendar; import java.util.List; import java.util.ArrayList; import java.util.Date; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; @SPI(BotOperation.class) public class DaysToChristmasOperation extends BotOperation { @Override publ...
190
github-java-corpus
2,012
package javabot.operations; import java.util.Date; import java.util.List; import java.util.ArrayList; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.Message; import javabot.dao.ShunDao; import org.springframework.beans.factory.annotation.Autowired; /** * Causes the bot to disregard bot trigg...
458
github-java-corpus
2,012
package javabot.operations; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.antwerkz.maven.SPI; import javabot.IrcEvent; import javabot.IrcUser; import javabot.Message; import javabot.dao.FactoidDao; import javabot.dao.LogsDao; import javabot.model.Factoid; import javabot.model.Lo...
812