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 | //This class contains the main method and ties everything together and packs it up.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Snake extends JFrame {
public Snake() {
SnakePanel panel = new SnakePanel();
add(panel);
// Moves menu bar to the mac ... | 162 |
github-java-corpus | 2,012 | // Main UI and gameplay area
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.LinkedList;
import java.util.Queue;
public class SnakePanel extends JPanel implements ActionListener {
private GridLayout gridLayout;
private Rectangle[][] squareGrid = new Rectangle[30][30];
... | 2,158 |
github-java-corpus | 2,012 | // Represents the MenuBar and it's functionaltiy
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class MenuBar implements ActionListener {
private JMenuBar menuBar;
private JMenu file, /*options, */help;
private JMenuItem exit, about;
// Creates the menu bar for the fr... | 307 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 388 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 239 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 1,358 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 229 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 212 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 221 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 231 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 229 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 317 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 1,940 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 2,253 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 1,670 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 272 |
github-java-corpus | 2,012 | /*
* Copyright 2002-2009 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 requi... | 386 |
github-java-corpus | 2,012 | package net.ikishik.RsdnAndroid;
import net.ikishik.RsdnAndroid.RsdnAndroidDBStatic.Forums;
import android.app.ListActivity;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView... | 469 |
github-java-corpus | 2,012 | package net.ikishik.RsdnAndroid;
import net.ikishik.RsdnAndroid.RsdnAndroidDBStatic.Forums;
import android.database.Cursor;
import android.os.Bundle;
import android.preference.PreferenceActivity;
public class PreferencesActivity extends PreferenceActivity {
@Override
public void onCreate(Bundle saved... | 362 |
github-java-corpus | 2,012 | package net.ikishik.RsdnAndroid;
import net.ikishik.RsdnAndroid.RsdnAndroidDBStatic.ForumGroups;
import net.ikishik.RsdnAndroid.RsdnAndroidDBStatic.Forums;
import net.ikishik.RsdnAndroid.RsdnAndroidDBStatic.Users;
import net.ikishik.RsdnAndroid.RsdnAndroidDBStatic.Messages;
import net.ikishik.RsdnAndroid.RsdnAnd... | 11,351 |
github-java-corpus | 2,012 | package net.ikishik.RsdnAndroid;
import android.net.Uri;
import android.provider.BaseColumns;
/**
* Convenience definitions for NotePadProvider
*/
public final class RsdnAndroidDBStatic
{
public static final String AUTHORITY = "net.ikishik.provider.RsdnAndroid";
// This class cannot be insta... | 5,463 |
github-java-corpus | 2,012 | package net.ikishik.RsdnAndroid;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.preference.ListPreference;
import android.preference.Preference;
import android.util.AttributeSet;
/**
* A {@link Preference} that displays a list of entrie... | 790 |
github-java-corpus | 2,012 |
package net.ikishik.RsdnAndroid;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
//import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
public class RsdnDbHelper extends SQLiteOpenHelper {
private static final int DB... | 1,800 |
github-java-corpus | 2,012 | package net.ikishik.RsdnAndroid;
import android.app.ListActivity;
import android.content.ContentUris;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.os.Bundle;
import androi... | 771 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class JanusRatingInfo extends WSObject
{
private Integer _messageId;
public Integer getmessageId(){
return _messageId;
}
public void setmessageId(Integer value){
_messageId = value;
}
private Integer _topicId;
... | 574 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import java.util.Date;
import java.util.Vector;
import net.ikishik.RsdnAndroid.ListPreferenceMultiSelect;
import net.ikishik.RsdnAndroid.RsdnAndroidDBStatic.ForumGroups;
import net.ikishik.RsdnAndroid.RsdnAndroidDBStatic.Forums;
import net.ikishik.RsdnAndroid.RsdnAndroidDBStati... | 2,622 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class PostRequest extends WSObject
{
private String _userName;
public String getuserName(){
return _userName;
}
public void setuserName(String value){
_userName = value;
}
private String _password;
public Stri... | 785 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class PostRatingInfo extends WSObject
{
private Integer _localRatingId;
public Integer getlocalRatingId(){
return _localRatingId;
}
public void setlocalRatingId(Integer value){
_localRatingId = value;
}
private... | 366 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class JanusForumInfo extends WSObject
{
private Integer _forumId;
public Integer getforumId(){
return _forumId;
}
public void setforumId(Integer value){
_forumId = value;
}
private Integer _forumGroupId;
publi... | 672 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class RequestForumInfo extends WSObject
{
private Integer _forumId;
public Integer getforumId(){
return _forumId;
}
public void setforumId(Integer value){
_forumId = value;
}
private Boolean _isFirstRequest;
p... | 308 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class PostResponse extends WSObject
{
private java.util.Vector<Integer> _commitedIds = new java.util.Vector<Integer>();
public java.util.Vector<Integer> getcommitedIds(){
return _commitedIds;
}
public void setcommi... | 1,143 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class ForumRequest extends WSObject
{
private String _userName;
public String getuserName(){
return _userName;
}
public void setuserName(String value){
_userName = value;
}
private String _password;
public Str... | 377 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class PostMessageInfo extends WSObject
{
private Integer _localMessageId;
public Integer getlocalMessageId(){
return _localMessageId;
}
public void setlocalMessageId(Integer value){
_localMessageId = value;
}
p... | 505 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class PostExceptionInfo extends WSObject
{
private String _exception;
public String getexception(){
return _exception;
}
public void setexception(String value){
_exception = value;
}
private Integer _localMessa... | 371 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class TopicResponse extends WSObject
{
private java.util.Vector<JanusMessageInfo> _Messages = new java.util.Vector<JanusMessageInfo>();
public java.util.Vector<JanusMessageInfo> getMessages(){
return _Messages;
}
p... | 640 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class UserResponse extends WSObject
{
private String _lastRowVersion;
public String getlastRowVersion(){
return _lastRowVersion;
}
public void setlastRowVersion(String value){
_lastRowVersion = value;
}
private... | 394 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class ForumResponse extends WSObject
{
private java.util.Vector<JanusForumInfo> _forumList = new java.util.Vector<JanusForumInfo>();
public java.util.Vector<JanusForumInfo> getforumList(){
return _forumList;
}
publ... | 580 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class JanusAT extends SoapWebService{
public JanusAT(){
//this.setUrl("/ws/janusAT.asmx");
this.setUrl("http://www.rsdn.ru/ws/janusAT.asmx");
}
public TopicResponse GetTopicByMessage(TopicRequest topicReques... | 571 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class ChangeResponse extends WSObject
{
private java.util.Vector<JanusMessageInfo> _newMessages = new java.util.Vector<JanusMessageInfo>();
public java.util.Vector<JanusMessageInfo> getnewMessages(){
return _newMessa... | 1,034 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
import org.apache.commons.codec.binary.Base64;
public class UserRequest extends WSObject
{
private String _userName;
public String getuserName(){
return _userName;
}
public void setuserName(String value){
_userName = v... | 490 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class PostModerateInfo extends WSObject
{
private Integer _LocalModerateId;
public Integer getLocalModerateId(){
return _LocalModerateId;
}
public void setLocalModerateId(Integer value){
_LocalModerateId = value;... | 655 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import org.apache.commons.codec.binary.Base64;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class ChangeRequest extends WSObject
{
private String _userName;
public String getuserName(){
return _userName;
}
public void setuserName(String value){
_userName = ... | 1,252 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class JanusUserInfo extends WSObject
{
private Integer _userId;
public Integer getuserId(){
return _userId;
}
public void setuserId(Integer value){
_userId = value;
}
private String _userName;
public String ge... | 900 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class TopicRequest extends WSObject
{
private String _userName;
public String getuserName(){
return _userName;
}
public void setuserName(String value){
_userName = value;
}
private String _password;
public Str... | 444 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class ModerateExceptionInfo extends WSObject
{
private String _ExceptionMessage;
public String getExceptionMessage(){
return _ExceptionMessage;
}
public void setExceptionMessage(String value){
_ExceptionMessage =... | 391 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class JanusMessageInfo extends WSObject
{
private Integer _messageId;
public Integer getmessageId(){
return _messageId;
}
public void setmessageId(Integer value){
_messageId = value;
}
private Integer _topicId;... | 1,414 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class JanusModerateInfo extends WSObject
{
private Integer _messageId;
public Integer getmessageId(){
return _messageId;
}
public void setmessageId(Integer value){
_messageId = value;
}
private Integer _topicId... | 508 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class RatingExceptionInfo extends WSObject
{
private String _exception;
public String getexception(){
return _exception;
}
public void setexception(String value){
_exception = value;
}
private Integer _localRat... | 371 |
github-java-corpus | 2,012 | package net.ikishik.rsdnClient;
import com.neurospeech.wsclient.*;
import org.w3c.dom.*;
public class JanusForumGroupInfo extends WSObject
{
private Integer _forumGroupId;
public Integer getforumGroupId(){
return _forumGroupId;
}
public void setforumGroupId(Integer value){
_forumGroupId = value;
}
private... | 383 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
public class Soap12WebService extends SoapWebService {
@Override
protected String getSoapEnvelopeNS() {
return "http://www.w3.org/2003/05/soap-envelope";
}
@Override
protected String getContentType(String action) {
if(action!=null)
return "application/soap+... | 121 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
public class VoidResultHandler extends ResultHandler {
@Override
protected void onServiceResult(){
onResult();
}
protected void onResult() {
}
}
| 43 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import java.io.StringWriter;
import java.util.Date;
import java.util.Vector;
import org.w3c.dom.*;
public class WSHelper {
static String getString(Document doc)
{
StringWriter sw = new StringWriter();
Element e = doc.getDocumentElement();
... | 2,117 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
public class SoapFaultException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
public SoapFaultException(String code, String text, String response)
{
super(code);
faultCode = code;
faultString = text;
httpResponse = resp... | 132 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import java.util.concurrent.Executors;
public class ServiceRequest implements Runnable {
private ResultHandler handler = null;
public ServiceRequest(ResultHandler h){
handler = h;
}
protected Object __result = null;
public final void run() {
// TODO Aut... | 145 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import org.w3c.dom.Element;
public abstract class WSObject {
public abstract void fillXML(Element root);
public abstract Element toXMLElement(Element root);
}
| 39 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import javax.xml.parsers.*;
import java.io.*;
import java.util.Date;
import java.util.HashMap;
import java.util.concurrent.Executors;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpUriReques... | 1,727 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import android.os.Handler;
public class ServiceResponseHandler<T>{
private Handler currentHandler;
private Exception error;
private T result;
public ServiceResponseHandler(){
currentHandler = new Handler();
}
public final void onExecuteStart(){
curre... | 243 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
public class XmlDOMHelper {
public static void registerNamespace(Document d, String targetNamespace){
if(targetNamespace == null || targetNamespace.le... | 455 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import java.util.Vector;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@SuppressWarnings({ "serial"})
public class WSNodeList extends Vector<Node> implements NodeList
{
public int getLength() {
return this.size();
}
public Node item(int index) {
retu... | 79 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import java.security.MessageDigest;
public class MD5 {
public static String doMD5(String text)
{
try{
MessageDigest md5 = MessageDigest.getInstance("MD5");
StringBuilder sb = new StringBuilder();
byte[] bytes = md5.digest(text.getBytes("UTF-8"));
for(byte... | 120 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
public class WSMimeEntity {
public String contentID;
public String contentType;
public String utf8Content;
public String contentTransferEncoding;
}
| 37 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import java.io.*;
import java.util.*;
import javax.xml.parsers.DocumentBuilderFactory;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.xml.sax.InputSource;
public class SoapResp... | 1,052 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
public class SoapParseException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
private String responseText;
public String getResponseText() {
return responseText;
}
public SoapParseException(String text, Exception innerE... | 84 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
public interface UINotifyListener {
void showBusy(boolean busy);
}
| 22 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class SoapRequest {
public Document document;
//public Element body;
public Element header;
public Element method;
public String methodName;
public String soapAction;
public String rawHttpRequest... | 65 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import android.os.Handler;
public class ResultHandler {
private Exception error;
private Handler handler;
public ResultHandler(){
handler = new Handler();
}
void onExecuteStart()
{
handler.post(
new Runnable()
{
public void run()
... | 243 |
github-java-corpus | 2,012 | package com.neurospeech.wsclient;
import java.util.Calendar;
import java.util.Date;
public class WSDateParser {
public static Date parse(String val){
//yyyy-MM-dd'T'HH:mm:ss'Z'
// remove z...
if(val.endsWith("z") || val.endsWith("Z"))
val = val.substring(0,val.length()-1);
if(va... | 424 |
github-java-corpus | 2,012 | package org.gwtmpv;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/** Marks a class as a specification for {@code XxxAction} and {@code XxxResult} classes. */
@Target({ ElementType.TYPE })
public @interface GenDispatch {
String baseAction() default "";
String baseResult() default "";... | 67 |
github-java-corpus | 2,012 | package org.gwtmpv.processor;
public class InvalidTypeElementException extends Exception {
private static final long serialVersionUID = 1L;
}
| 27 |
github-java-corpus | 2,012 | package org.gwtmpv.processor;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.Modifier;
import javax.lang.model.element.TypeElement;
import javax.lang.model.element.VariableE... | 1,846 |
github-java-corpus | 2,012 | package org.gwtmpv.processor;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.lang.model.element.VariableElement;
import org.exigencecorp.aptutil.Prop;
public class MpvUtil {
public static List<Prop> toProperties(Collection<VariableElement> fields) {
List<Prop> props... | 112 |
github-java-corpus | 2,012 | package org.gwtmpv.processor;
import static javax.lang.model.util.ElementFilter.methodsIn;
import static javax.lang.model.util.ElementFilter.typesIn;
import java.util.Set;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.Sup... | 396 |
github-java-corpus | 2,012 | package org.gwtmpv.processor;
import static joist.sourcegen.Argument.arg;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.PackageElement;
import javax.lang.model.element.TypeElement;
import javax.lang.mod... | 1,528 |
github-java-corpus | 2,012 | package org.gwtmpv.processor;
import static joist.sourcegen.Argument.arg;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.TypeElement;
import javax... | 1,528 |
github-java-corpus | 2,012 | package org.gwtmpv;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/** Marks a method as an entry point for a place. */
@Target({ ElementType.METHOD })
public @interface GenPlace {
String name();
boolean async() default true;
String[] params() default {};
}
| 62 |
github-java-corpus | 2,012 | package org.gwtmpv;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/** Marks a class as a specification for GWT event classes. */
@Target({ ElementType.TYPE })
public @interface GenEvent {
String methodName() default "";
boolean gwtEvent() default false;
}
| 60 |
github-java-corpus | 2,012 | package org.gwtmpv;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/** Marks the order of fields in {@link GenEvent} specs. */
@Target({ ElementType.FIELD })
public @interface Param {
int value();
}
| 50 |
github-java-corpus | 2,012 | package org.gwtmpv;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/** Marks the order of fields in {@link GenEvent} specs. */
@Target({ ElementType.FIELD })
public @interface Out {
int value();
}
| 50 |
github-java-corpus | 2,012 | package org.gwtmpv;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/** Marks the order of fields in {@link GenEvent} specs. */
@Target({ ElementType.FIELD })
public @interface In {
int value();
}
| 50 |
github-java-corpus | 2,012 | package com.foo.client.event;
import com.google.gwt.event.shared.HandlerManager;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.SimpleEventBus;
public class Events {
public static class Foo implements FooChangedHandler {
@Override
public void onFooChanged(FooChan... | 410 |
github-java-corpus | 2,012 | package com.foo.client.dispatch.other;
import com.foo.client.dispatch.NoArgAction;
import com.foo.client.dispatch.NoArgResult;
public class NoArgClient {
public NoArgAction a = new NoArgAction();
public NoArgResult r = new NoArgResult();
}
| 55 |
github-java-corpus | 2,012 | package com.foo.client.dispatch;
public class Dispatches {
public static void main(String[] args) {
new BarAction(1);
new BarResult("foo", 2);
// i really need junit
System.out.println(new BarAction(1).hashCode() == new BarAction(1).hashCode());
System.out.println(new ZazAction(1, 2, new String[] {"a"})... | 320 |
github-java-corpus | 2,012 | package com.foo.client;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
/** The client side stub for the RPC service. */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
String greetServer(String name);
... | 81 |
github-java-corpus | 2,012 | package com.foo.client.place;
import org.gwtmpv.GenPlace;
import org.gwtmpv.place.PlaceRequest;
import org.gwtmpv.util.FailureCallback;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
public class ZazPresenter {
@GenPlace(name = "zaz")
public static void onRequest(E... | 116 |
github-java-corpus | 2,012 | package com.foo.client.place;
import org.gwtmpv.GenPlace;
import org.gwtmpv.util.FailureCallback;
public class FooPresenter {
@GenPlace(name = "foo")
public static void onRequest() {
}
public static void test() {
FailureCallback failureCallback = null;
new FooPlace(failureCallback);
}
}
| 73 |
github-java-corpus | 2,012 | package com.foo.client.place;
import org.gwtmpv.GenPlace;
import org.gwtmpv.place.PlaceRequest;
import org.gwtmpv.util.FailureCallback;
public class BarPresenter {
@GenPlace(name = "bar", params = { "p1", "p2" })
public static void onRequest(PlaceRequest request) {
}
public static void test() {
FailureCallbac... | 239 |
github-java-corpus | 2,012 | package com.foo.client.place;
import org.gwtmpv.GenPlace;
import org.gwtmpv.place.PlaceRequest;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
public class WozPresenter {
@GenPlace(name = "woz", async = false)
public static void onRequest(EventBus bus, PlaceRequest... | 115 |
github-java-corpus | 2,012 | package com.foo.client.event;
import org.gwtmpv.GenEvent;
import org.gwtmpv.Param;
@GenEvent
public class GenericChangedEventSpec<T> {
@Param(1)
T t;
} | 46 |
github-java-corpus | 2,012 | package com.foo.client.event;
import org.gwtmpv.GenEvent;
import org.gwtmpv.Param;
@GenEvent
public class BoundsChangedEventSpec<T extends Number, U extends Number> {
@Param(1)
T t;
@Param(2)
U u;
}
| 61 |
github-java-corpus | 2,012 | package com.foo.client.event;
import org.gwtmpv.GenEvent;
import org.gwtmpv.Param;
@GenEvent
public class FooChangedEventSpec {
@Param(1)
Integer fooId;
}
| 45 |
github-java-corpus | 2,012 | package com.foo.client.event;
import org.gwtmpv.GenEvent;
import org.gwtmpv.Param;
@GenEvent(methodName = "onBarDone")
public class BarChangedEventSpec {
@Param(1)
Integer fooId;
}
| 52 |
github-java-corpus | 2,012 | package com.foo.client.event;
import org.gwtmpv.GenEvent;
import org.gwtmpv.Param;
@GenEvent(gwtEvent = true)
public class OldSchoolEventSpec {
@Param(1)
Integer fooId;
}
| 50 |
github-java-corpus | 2,012 | package com.foo.client.dispatch.base;
import org.gwtmpv.dispatch.shared.Action;
import org.gwtmpv.dispatch.shared.Result;
public abstract class BaseAction<R extends Result> implements Action<R> {
public static final String NAME = "com.foo.client.dispatch.base.BaseAction";
private static final long serialVersionUI... | 76 |
github-java-corpus | 2,012 | package com.foo.client.dispatch.base;
import org.gwtmpv.dispatch.shared.Result;
public class BaseResult implements Result {
public static final String NAME = "com.foo.client.dispatch.base.BaseResult";
private static final long serialVersionUID = 1L;
public void inBaseResult() {
}
}
| 59 |
github-java-corpus | 2,012 | package com.foo.client.dispatch.base;
import org.gwtmpv.GenDispatch;
import org.gwtmpv.In;
import org.gwtmpv.Out;
@GenDispatch(baseAction = BaseAction.NAME, baseResult = BaseResult.NAME)
public class BaseFooSpec {
@In(1)
Integer integer;
@Out(1)
String foo;
// Shouldn't really put stuff here, but checking comp... | 122 |
github-java-corpus | 2,012 | package com.foo.client.dispatch;
import org.gwtmpv.GenDispatch;
import org.gwtmpv.In;
import org.gwtmpv.Out;
@GenDispatch
public class FooSpec {
@In(1)
Integer integer;
@Out(1)
String foo;
@Out(2)
Integer bar;
// Shouldn't really put stuff here, but checking compile time order
public void foo() {
new FooR... | 101 |
github-java-corpus | 2,012 | package com.foo.client.dispatch;
import org.gwtmpv.GenDispatch;
@GenDispatch
public class NoArgSpec {
}
| 26 |
github-java-corpus | 2,012 | package com.foo.client.dispatch;
import org.gwtmpv.GenDispatch;
import org.gwtmpv.In;
import org.gwtmpv.Out;
@GenDispatch
public class ZazSpec {
@In(1)
Integer integer;
@In(2)
int pint;
@In(3)
String[] strings;
@Out(1)
Integer bar;
}
| 79 |
github-java-corpus | 2,012 | package com.foo.client.dispatch;
import org.gwtmpv.GenDispatch;
import org.gwtmpv.In;
import org.gwtmpv.Out;
@GenDispatch
public class GenericSpec<T, U extends Number> {
@In(1)
T t;
@In(2)
U u;
@Out(1)
T t2;
@Out(2)
U u2;
}
| 85 |
github-java-corpus | 2,012 | package com.foo.client.dispatch;
import org.gwtmpv.GenDispatch;
import org.gwtmpv.In;
import org.gwtmpv.Out;
@GenDispatch
public class BarSpec {
@In(1)
Integer integer;
@Out(1)
String foo;
@Out(2)
Integer bar;
// Shouldn't really put stuff here, but checking compile time order
public void foo() {
new BarR... | 101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.