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 | // SMSLib for Java v3
// A Java API library for sending and receiving SMS via a GSM modem
// or other supported gateways.
// Web Site: http://www.smslib.org
//
// Copyright (C) 2002-2008, Thanasis Delenikas, Athens/GREECE.
// SMSLib is distributed under the terms of the Apache License version 2.0
//
// Licensed... | 344 |
github-java-corpus | 2,012 | package net.christopherbaker.utils.filesystem;
import java.io.File;
import net.christopherbaker.utils.filesystem.DirWatcher.WatcherAction;
public interface DirWatcherListener {
public void onChange(File file, WatcherAction action);
} | 51 |
github-java-corpus | 2,012 | package net.christopherbaker.utils.filesystem;
import java.io.File;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.Timer;
import java.util.TimerTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class DirWatcher extends TimerTa... | 653 |
github-java-corpus | 2,012 | package net.christopherbaker.utils.filesystem;
import java.io.File;
import java.io.FilenameFilter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class EasyFilenameFilter implements FilenameFilter {
public enum MatchType {
BEGINNING, END, ANYWHERE
}
MatchType matchType = MatchT... | 482 |
github-java-corpus | 2,012 | package net.christopherbaker.utils.filesystem;
/* http://www.rgagnon.com/javadetails/java-0490.html */
import java.io.File;
import java.util.TimerTask;
public class FileWatcher extends TimerTask {
private long timeStamp;
private File file;
private FileChangedListener callback;
public FileWatcher(Fil... | 161 |
github-java-corpus | 2,012 | package net.christopherbaker.utils.filesystem;
import java.awt.FileDialog;
import java.awt.Frame;
import java.io.File;
//http://www.java-forums.org/java-tips/6330-example-file-dialog.html
public final class EasyFileDialog {
public static File loadFolder(Frame f, String title, String defDir) {
return loa... | 645 |
github-java-corpus | 2,012 | package net.christopherbaker.utils.filesystem;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Date;
import java.util.Timer;
public class PlainTextFileListWatcher implements FileWatcher.FileChangedListener {
File file;
FileWatcher fw;
Timer timer;
public PlainTextFileList... | 175 |
github-java-corpus | 2,012 | /* NonValidator.java NanoXML/Java
*
* $Revision: 1.4 $
* $Date: 2002/02/03 21:19:38 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 3,719 |
github-java-corpus | 2,012 | package net.christopherbaker.xml;
public class AsyncXMLElement implements Runnable {
XMLElement xml;
String url;
AsyncXMLLoadedListener listener;
public AsyncXMLElement(String url, AsyncXMLLoadedListener listener) {
this.url = url;
this.listener = listener;
Thread t = new Thre... | 119 |
github-java-corpus | 2,012 | /* XMLParseException.java NanoXML/Java
*
* $Revision: 1.3 $
* $Date: 2002/01/04 21:03:29 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 489 |
github-java-corpus | 2,012 | /* XMLElement.java NanoXML/Java
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held l... | 12,831 |
github-java-corpus | 2,012 | /* ContentReader.java NanoXML/Java
*
* $Revision: 1.4 $
* $Date: 2002/01/04 21:03:28 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 1,205 |
github-java-corpus | 2,012 | /* XMLException.java NanoXML/Java
*
* $Revision: 1.4 $
* $Date: 2002/01/04 21:03:29 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 1,609 |
github-java-corpus | 2,012 | /* XMLUtil.java NanoXML/Java
*
* $Revision: 1.5 $
* $Date: 2002/02/03 21:19:38 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 4,744 |
github-java-corpus | 2,012 | /* XMLValidationException.java NanoXML/Java
*
* $Revision: 1.3 $
* $Date: 2002/01/04 21:03:29 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 1,092 |
github-java-corpus | 2,012 | /* CDATAReader.java NanoXML/Java
*
* $Revision: 1.3 $
* $Date: 2002/01/04 21:03:28 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 1,058 |
github-java-corpus | 2,012 | /* StdXMLBuilder.java NanoXML/Java
*
* $Revision: 1.3 $
* $Date: 2002/01/04 21:03:28 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 2,319 |
github-java-corpus | 2,012 | /* XMLEntityResolver.java NanoXML/Java
*
* $Revision: 1.4 $
* $Date: 2002/01/04 21:03:29 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 1,071 |
github-java-corpus | 2,012 | /* StdXMLReader.java NanoXML/Java
*
* $Revision: 1.4 $
* $Date: 2002/01/04 21:03:28 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 3,691 |
github-java-corpus | 2,012 | /* XMLWriter.java NanoXML/Java
*
* $Revision: 1.4 $
* $Date: 2002/03/24 11:37:51 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 1,702 |
github-java-corpus | 2,012 | /* StdXMLParser.java NanoXML/Java
*
* $Revision: 1.5 $
* $Date: 2002/03/24 11:37:00 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 3,904 |
github-java-corpus | 2,012 | /* XMLAttribute.java NanoXML/Java
*
* $Revision: 1.4 $
* $Date: 2002/01/04 21:03:29 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 755 |
github-java-corpus | 2,012 | /* PIReader.java NanoXML/Java
*
* $Revision: 1.3 $
* $Date: 2002/01/04 21:03:28 $
* $Name: RELEASE_2_2_1 $
*
* This file is part of NanoXML 2 for Java.
* Copyright (C) 2000-2002 Marc De Scheemaecker, All Rights Reserved.
*
* This software is provided 'as-is', w... | 874 |
github-java-corpus | 2,012 | package org.smslib.modem;
import java.io.IOException;
import java.io.OutputStream;
public class MaxSerialOutputStream extends OutputStream {
MaxSerialWritable mop;
public MaxSerialOutputStream(MaxSerialWritable mop) {
this.mop = mop;
}
@Override
public void write(int b) throws IOException {
mop.writeSeria... | 99 |
github-java-corpus | 2,012 | package org.smslib.modem;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
public class MaxSerialInputStream extends InputStream {
ArrayList<Integer> buffer = new ArrayList<Integer>();
// slow as shit, but this ain't a quick system
MaxSerialReadable msr;
public MaxSerialInpu... | 258 |
github-java-corpus | 2,012 | package org.smslib.modem;
public interface MaxSerialInputStreamListener {
public void newDataAvailable();
} | 20 |
github-java-corpus | 2,012 | package org.smslib.modem;
import maw.mobile.sms;
import org.smslib.modem.ModemGateway;
/**
* Gateway representing a Phone connected via a Max serial port.
*/
public class MaxSerialModemGateway extends ModemGateway {
public MaxSerialModemGateway(sms parent) {
super(parent.getGatewayName(), "", -1, pare... | 139 |
github-java-corpus | 2,012 | package org.smslib.modem;
import java.io.IOException;
import maw.mobile.sms;
import org.smslib.AGateway;
import org.smslib.GatewayException;
class MaxSerialModemDriver extends AModemDriver {
private sms parent;
private MaxSerialInputStream in;
private MaxSerialOutputStream out;
private ThreadReade... | 770 |
github-java-corpus | 2,012 | package org.smslib.modem;
public interface MaxSerialReadable {
public void readSerialIn();
} | 20 |
github-java-corpus | 2,012 | package org.smslib.modem;
public interface MaxSerialWritable {
public void writeSerialOut(int b);
} | 22 |
github-java-corpus | 2,012 | package maw.data.twitter;
import java.util.List;
import javax.swing.JOptionPane;
import twitter4j.AsyncTwitter;
import twitter4j.AsyncTwitterFactory;
import twitter4j.Category;
import twitter4j.DirectMessage;
import twitter4j.IDs;
import twitter4j.Location;
import twitter4j.PagableResponseList;
import twitter4j.Plac... | 3,824 |
github-java-corpus | 2,012 | package maw.data.twitter;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import twitter4j.http.AccessToken;
import twitter4j.http.RequestToken;
public class test {
public stati... | 423 |
github-java-corpus | 2,012 | package maw.data.twitter;
import net.christopherbaker.data.Twitter.TwitterFormatFilter;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
import com.cycling74.max.MaxSystem;
public class cleaner extends MaxObject {
boolean debug = true;
boolean newlines = false;
boolean directmess... | 320 |
github-java-corpus | 2,012 | package maw.data.google;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import net.christopherbaker.google.voice.async.GVException;
import net.christopherbaker.google.voice.async.GVMethod;
import net.christopherbaker.google.voice.enums.GVCallType;
import net.christopherbaker.google.voi... | 3,481 |
github-java-corpus | 2,012 | package maw.data.google;
import com.cycling74.max.MaxObject;
public class tts extends MaxObject {
} | 24 |
github-java-corpus | 2,012 | package maw.data.google;
/**
* Provides a method to encode any string into a URL-safe
* form.
* Non-ASCII characters are first encoded as sequences of
* two or three bytes, using the UTF-8 algorithm, before being
* encoded as %HH escapes.
*
* Created: 17 April 1997
* Author: Bert Bos <bert@w3.org>
*
* URLUTF8... | 1,828 |
github-java-corpus | 2,012 | package maw.data.google;
import com.cycling74.max.MaxObject;
public class translate extends MaxObject {
} | 24 |
github-java-corpus | 2,012 | package maw.net;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import com.apple.dnssd.BrowseListener;
import com.apple.dnssd.DNSRecord;
import com.apple.dnssd.DNSSD;
import com.apple.dnssd.DNSSDException;
import co... | 3,963 |
github-java-corpus | 2,012 | package maw.util;
import java.net.URL;
import net.christopherbaker.xml.AsyncXMLElement;
import net.christopherbaker.xml.XMLElement;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
import com.cycling74.max.MaxSystem;
/* ali's mod */
public class xmlparser extends MaxObject implements AsyncXM... | 487 |
github-java-corpus | 2,012 | package maw.util;
import com.cycling74.max.Atom;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
public class length extends MaxObject {
public length(Atom[] args) { // service type should always be in here
declareInlets(new int[] { DataTypes.MESSAGE });
declareOutlets(new... | 193 |
github-java-corpus | 2,012 | package maw.util;
import java.util.prefs.NodeChangeEvent;
import java.util.prefs.NodeChangeListener;
import java.util.prefs.Preferences;
import com.cycling74.max.Atom;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
public class sharedpreferences extends MaxObject implements NodeChangeListene... | 737 |
github-java-corpus | 2,012 | package maw.util;
import java.io.File;
import java.io.IOException;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
import com.cycling74.max.MaxSystem;
public class showfolder extends MaxObject {
Runtime runtime = Runtime.getRuntime();
public showfolder() {
declareInlets(new... | 266 |
github-java-corpus | 2,012 | package maw.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.cycling74.max.Atom;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
/* more info here
* http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
*/
public... | 414 |
github-java-corpus | 2,012 | package maw.util;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
import com.cycling74.max.MaxSystem;
public class locate extends MaxObject {
public locate() {
declareInlets(new int[] { DataTypes.ANYTHING });
declareOutlets(new int[] { DataTypes.ANYTHING });
setI... | 277 |
github-java-corpus | 2,012 | package maw.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.cycling74.max.Atom;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
public class messagestocellblock extends MaxObject {
static final Logger logger = LoggerFactory.getLogger(messagestocellblock.class);
... | 509 |
github-java-corpus | 2,012 | package maw.animation.box2d;
import java.io.File;
import java.util.HashMap;
import maw.jit.JitterImage;
import maw.util.locate;
import net.christopherbaker.xml.AsyncXMLElement;
import net.christopherbaker.xml.XMLElement;
import com.cycling74.jitter.JitterMatrix;
import com.cycling74.jitter.JitterObject;
import com.c... | 1,370 |
github-java-corpus | 2,012 | package maw.meta;
import com.cycling74.max.Atom;
import com.cycling74.max.MaxBox;
import com.cycling74.max.MaxObject;
import com.cycling74.max.MaxPatcher;
public class testMawLib extends MaxObject {
public testMawLib(Atom[] args) {
post("loaded");
MaxPatcher mp = this.getParentPatcher();
... | 480 |
github-java-corpus | 2,012 | package maw.meta;
import java.util.ArrayList;
import java.util.Iterator;
import net.christopherbaker.xml.XMLElement;
public class mawLibObject {
public String name = null;
public String group = null;
public String type = null;
public String[] tags = null;
public String url = null;
public Str... | 1,326 |
github-java-corpus | 2,012 | package maw.meta;
import java.io.File;
import java.util.prefs.Preferences;
import net.christopherbaker.utils.filesystem.EasyFilenameFilter;
import net.christopherbaker.xml.AsyncXMLElement;
import net.christopherbaker.xml.XMLElement;
import net.christopherbaker.xml.AsyncXMLElement.AsyncXMLLoadedListener;
import com.c... | 3,301 |
github-java-corpus | 2,012 | package maw.mobile;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.smslib.AGateway;
import org.smslib.GatewayException;
import org.smslib.ICallNotification;
import org.smslib.IGatewayStatusNotification;
import or... | 2,528 |
github-java-corpus | 2,012 | package maw.jit.ipcam;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
public class BasicHTTPAuthenticator extends Authenticator {
private String username, password;
public BasicHTTPAuthenticator(String user, String pass) {
username = user;
password = pass;
}
p... | 204 |
github-java-corpus | 2,012 | package maw.jit.ipcam;
import java.net.URI;
import java.net.URISyntaxException;
import com.cycling74.max.Atom;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
public class control extends MaxObject {
BasicHTTPAuthenticator auth = null;
String username;
String password;
PTZC... | 5,710 |
github-java-corpus | 2,012 | package maw.jit.ipcam;
import java.net.URI;
import java.net.URISyntaxException;
import com.cycling74.jitter.JitterMatrix;
import com.cycling74.max.Atom;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
public class streamer extends MaxObject {
MJPEGStreamerRunnable streamer;
Thread t... | 532 |
github-java-corpus | 2,012 | package maw.jit.ipcam;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.Authenticator;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URI;
impo... | 8,749 |
github-java-corpus | 2,012 | package maw.jit.ipcam;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.net.Authenticator;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URI;
import javax.imageio.ImageIO;
import com.cycling74.jitter.JitterMa... | 733 |
github-java-corpus | 2,012 | package maw.jit.ipcam;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.Authenticator;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.logging.Level;
import jav... | 1,152 |
github-java-corpus | 2,012 | package maw.jit;
import com.cycling74.jitter.JitterMatrix;
import com.cycling74.max.Atom;
import com.cycling74.max.DataTypes;
import com.cycling74.max.MaxObject;
import com.cycling74.max.MaxSystem;
public class ImageLoader extends MaxObject {
JitterMatrix matrix;
String url;
/* clean up stuff here */
... | 379 |
github-java-corpus | 2,012 | package maw.jit;
import maw.util.locate;
import com.cycling74.jitter.JitterMatrix;
import com.cycling74.jitter.JitterObject;
import com.cycling74.max.Atom;
import com.cycling74.max.MaxObject;
public class JitterImage {
String openGLContext;
String filename;
float x, y;
float screenWidth, screenHeig... | 789 |
github-java-corpus | 2,012 | import java_cup.runtime.*; // defines the Symbol class
// The generated scanner will return a Symbol for each token that it finds.
// A Symbol contains an Object field named value; that field will be of type
// TokenVal, defined below.
//
// A TokenVal object contains the line number on which the token occurs as
// wel... | 2,661 |
github-java-corpus | 2,012 | /*
sample simple scanner
Compile with:
java -classpath /afs/ir/class/cs143/cool/sp12/lib/jlex.jar JLex.Main sample.jlex
javac sample.jlex.java
Run with:
java Sample < input
*/
import java.lang.System;
class Sample {
public static void main(String argv[]) throws java.io.IOException {
Yylex yy = new Yylex(System... | 3,357 |
github-java-corpus | 2,012 |
Pckage Example;
public class sym {
/* terminals */
public static final int RPAREN = 6;
public static final int error = 1;
public static final int PLUS = 3;
public static final int NUMBER = 7;
public static final int SEMI = 2;
public static final int LPAREN = 5;
public static final int TIMES = 4;
publ... | 110 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 313 |
github-java-corpus | 2,012 |
//----------------------------------------------------
// The following code was generated by CUP v0.10k
// Tue Apr 24 05:09:00 PDT 2012
//----------------------------------------------------
/** CUP generated class containing symbol constants. */
public class TokenConstants {
/* terminals */
public static final ... | 528 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 1,087 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 4,843 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 648 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 823 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 656 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 592 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 421 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 280 |
github-java-corpus | 2,012 | /*
* The scanner definition for COOL.
*/
import java_cup.runtime.Symbol;
import java_cup.runtime.Scanner;
class CoolLexer implements java_cup.runtime.Scanner {
private final int YY_BUFFER_SIZE = 512;
private final int YY_F = -1;
private final int YY_NO_STATE = -1;
private final int YY_NOT_ACCEPT = 0;
private ... | 14,341 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 1,713 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 421 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 1,881 |
github-java-corpus | 2,012 | /*
Copyright (c) 2000 The Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software for any
purpose, without fee, and without written agreement is hereby granted,
provided that the above copyright notice and the following two
paragraphs appear in all co... | 441 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.test;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import edu.berkeley.cs164.boiler.activity.BoilerActivity;
public class MainActivity extends BoilerActivity {
@Override
public void on... | 456 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.test;
import java.util.HashMap;
import java.util.Map;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.widget.ListView;
import android.widget.Toast;
import edu.berkeley.cs164.boiler.activity.BoilerListActivity;
public class TestListActivity extends Boiler... | 489 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.test;
import android.os.Bundle;
import edu.berkeley.cs164.boiler.$;
import edu.berkeley.cs164.boiler.activity.BoilerActivity;
public class TestActivityActivity extends BoilerActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | 152 |
github-java-corpus | 2,012 | package edu.berkeley.cs164;
import android.os.Bundle;
import edu.berkeley.cs164.boiler.activity.BoilerActivity;
import edu.berkeley.cs164.boiler.util.$Tag;
public class BoilerdroidActivity extends BoilerActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstance... | 133 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.util;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.app.Activity;
import android.graphics.Color;
import android.view.View;
import android.view.ViewGroup;
import edu.berkeley.cs164.boiler.iter.$FilterGenerator;
import edu.berkeley.... | 852 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.util;
public interface EachCallback<T> {
void $(int index, T object);
} | 27 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.util;
import java.util.HashSet;
import java.util.Set;
import android.view.View;
public class $Tag {
public static $Tag fromSelector(String filter) {
$Tag tag = new $Tag(null, null, null);
String selectors = filter;
if (selectors == null || (selectors = selectors.trim()).lengt... | 621 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.util;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.view.LayoutInflater;
import andr... | 748 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.util;
import java.util.Iterator;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent... | 1,438 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.WeakHashMap;
import andr... | 4,514 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.iter;
import java.util.LinkedList;
import java.util.Queue;
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import edu.berkeley.cs164.boiler.util.$Utils;
import edu.berkeley.cs164.boiler.util.Generator;
public class $LayoutGenerator extends Gener... | 233 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.iter;
public interface $ResettableIterable<T> extends Iterable<T> {
$ResettableIterable<T> reset();
}
| 34 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.iter;
import edu.berkeley.cs164.boiler.util.Generator;
public class $FilterGenerator<T> extends Generator<T> implements
$ResettableIterable<T> {
protected $ResettableIterable<T> items;
protected $Filter<T> filter;
public $FilterGenerator($ResettableIterable<T> items, $Filter<T>... | 179 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.iter;
import edu.berkeley.cs164.boiler.util.Generator;
public class $SingleGenerator<T> extends Generator<T> implements
$ResettableIterable<T> {
T item;
public $SingleGenerator(T item) {
this.item = item;
}
@Override
protected void run() throws Exception {
yield(item);
... | 107 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.activity;
import android.app.Activity;
import android.view.View;
import edu.berkeley.cs164.boiler.$;
public interface $able {
public $ $(int id);
public $ $(String filter);
public $ $(View wrap);
public $ $(Activity wrap);
public $ $(Class<?> wrap);
}
| 69 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.activity;
import java.util.Set;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import edu.berkeley.cs164.boiler.$;
/*
* $-sign madness!!!
*/
public class BoilerActivity extends Activity implements $able {
public $ $(int id) {
return $.from(this... | 238 |
github-java-corpus | 2,012 | package edu.berkeley.cs164.boiler.activity;
import java.util.Set;
import android.app.Activity;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import edu.berkeley.cs164.boiler.$;
public class BoilerListActivity extends ListActivity implements $able {
public $ $(int id) {
retur... | 238 |
github-java-corpus | 2,012 | package com.nomura.cims2;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.ss.usermodel.*;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import ja... | 617 |
github-java-corpus | 2,012 | package hudson.plugins.build_timeout;
import hudson.Extension;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.BuildListener;
import hudson.model.Descriptor;
import hudson.model.Executor;
import hudson.model.Queue;
import hudson.model.Result;
import h... | 2,163 |
github-java-corpus | 2,012 | package hudson.plugins.build_timeout;
import hudson.model.FreeStyleBuild;
import hudson.model.FreeStyleProject;
import hudson.model.Result;
import hudson.tasks.BuildWrapper;
import hudson.tasks.test.AbstractTestResultAction;
import org.jvnet.hudson.test.Bug;
import org.jvnet.hudson.test.HudsonTestCase;
import org.jvn... | 218 |
github-java-corpus | 2,012 | package hudson.plugins.build_timeout;
import static hudson.model.Result.SUCCESS;
import hudson.model.AbstractProject;
import hudson.model.DependencyGraph;
import hudson.model.FreeStyleProject;
import hudson.model.Result;
import hudson.model.Run;
import hudson.util.DescribableList;
import java.io.IOException;
import ja... | 765 |
github-java-corpus | 2,012 |
package me.jackcrawf3.ocarinasong.misc;
import me.jackcrawf3.ocarinasong.OcarinaSong;
import org.bukkit.Server;
import org.bukkit.block.Block;
import org.bukkit.material.Button;
/**
*
* @author Jackcrawf3
*/
public class KillButton implements Runnable {
Button button;
Block block;
OcarinaSong plugin;
... | 158 |
github-java-corpus | 2,012 | package me.jackcrawf3.ocarinasong.misc;
import java.util.ArrayList;
import java.util.List;
import me.jackcrawf3.ocarinasong.OcarinaSong;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Server;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukk... | 927 |
github-java-corpus | 2,012 |
package me.jackcrawf3.ocarinasong.misc;
import me.jackcrawf3.ocarinasong.OcarinaSong;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Server;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player;
/**
*
* @author Jackcrawf3
*/
public class KeyCheck implements Runnable {
... | 484 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.