Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | package TaskViews;
/**
* @author Adam J & Hammed Abiola
*
*/
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.table.DefaultTableModel;
import java.awt.Font;
@SuppressWarnings("serial")
public class TaskPanel extends JPanel {
private JT... | 611 |
github-java-corpus | 2,012 | package Tasks;
/**
* @file TaskFileReader.java
* @author Daniel Lewis
*
* @brief CSV file reader and writer for the tasks csv file
*
* This class reads in the tasks csv file and parses the input to insure the
* data is in the correct format
* then constructs the infomation in to tasks and saves the tasks in a
* a... | 1,371 |
github-java-corpus | 2,012 | package Tasks;
/**
* @file TaskManager.java
* @author Daniel Lewis & Hammed Abiola
*
*
* @brief preforms function to assist in task creation and task access
*
* this class allows for the creation of unique ids for use in the creation of tasks and allows for tasks to be located in
* a arraylist based on the tasks un... | 477 |
github-java-corpus | 2,012 | package Tasks;
/**
* The Task class is designed for folding Tasks.
* It is accessible through constructors and mutator
* it facilitates the creation, alteration and deletion of Tasks.
*
* @author Devin Taylor (& Adam Jama)
* @date 27/02/12
* @file Task.java
*
*/
import java.util.Date;
public class Task ... | 2,083 |
github-java-corpus | 2,012 | package CalendarViews;
import java.awt.Frame;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import javax.swing.JPanel;
import Classes.EventPanel;
import Events.Event;
/**
* @file DayPanel.java
* @author Sorin Dinu
* @brief This class makes a new dayPanel
*
*/
@SuppressWarning... | 1,233 |
github-java-corpus | 2,012 | package CalendarViews;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentAdapter;
import jav... | 2,437 |
github-java-corpus | 2,012 | package CalendarViews;
import java.awt.Frame;
import javax.swing.JLabel;
import javax.swing.JPanel;
/**
* @file TimescalePanel.java
* @author Sorin Dinu
* @brief This class calculates the timescale for the displayed event
*
* This class correctly calculates the size to make a new event appear on the
* day and ... | 280 |
github-java-corpus | 2,012 | package CalendarViews;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Calendar;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFr... | 1,636 |
github-java-corpus | 2,012 | package CalendarViews;
import java.awt.Color;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.ListIterator;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.... | 1,266 |
github-java-corpus | 2,012 | package CalendarViews;
import java.awt.Dimension;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.ListIterator;
import java.util.Locale;
import javax.swing.BoxLayout;
import javax.... | 863 |
github-java-corpus | 2,012 | package CalendarViews;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Calendar;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLa... | 1,715 |
github-java-corpus | 2,012 | package CalendarViews;
import java.awt.*;
import javax.swing.*;
import javax.swing.text.BadLocationException;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument;
/**
* @file AboutGUI.java
* @author Adam Barrell
*
* @brief A graphical interface displaying... | 915 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief this class makes a new appointment event
* @file Appointment.java
*/
public class Appointment extends Events.Event {
/**
* Main Method used for testing
*
* @param args
* Command line arguments
*/
public... | 374 |
github-java-corpus | 2,012 | package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief this class makes a new "other" event
* @file Other.java
*/
public class Other extends Events.Event {
/**
* Main Method used for testing
*
* @param args
* Command line arguments
*/
public static void main(String[] a... | 385 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief this class makes a new birthday event
* @file Birthday.java
*/
public class Birthday extends Events.Event {
protected String m_person;
private static final int MAX_PERSON = 30;
/**
* Main Method used for testing
*
*... | 641 |
github-java-corpus | 2,012 | package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief This class inherits from event and makes a new Accident event
* @file Accident.java
*/
public class Accident extends Events.Event {
protected String m_accidentType;
protected static final int MAX_ACCIDENT = 20;
/**
* Main Method us... | 710 |
github-java-corpus | 2,012 | package Events;
/**
* @file Event.java
* @author Daniel Lewis & James Alfei
* @brief makes a event object encapsulating all the need data
* @this class constructs an object from all of the events data
*
* This class defines the attributes that define an Event.
* This is accomplished by creating accessor and ... | 3,594 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief This class makes a new Happy Hour event
* @file HappyHour.java
*/
public class HappyHour extends Events.Event {
/**
* Main Method used for testing
*
* @param args
* Command line arguments
*/
public stat... | 392 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief This class makes a new concert event
* @file Concert.java
*/
public class Concert extends Events.Event {
public String m_bandName;
private static final int MAX_BAND = 20;
/**
* Main Method used for testing
*
* @para... | 654 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief this class makes a new meeting event
* @file Meeting.java
*/
public class Meeting extends Events.Event {
/**
* Main Method used for testing
*
* @param args
* Command line arguments
*/
public static void... | 385 |
github-java-corpus | 2,012 | package Events;
import java.util.ArrayList;
/**
*
* @author Daniel Lewis & James Alfei
* @brief preforms function to assist in event creation and event access
* @file EventManager.java
*
* this class allows for the creation of unique ids for use in the creation of
* events and allows for events to be
* located in... | 507 |
github-java-corpus | 2,012 | package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief this class makes a new Bank Holiday event
* @file BankHolidays.java
*/
public class BankHolidays extends Events.Event {
protected String m_holidayName;
private static final int MAX_HOLNAME = 20;
/**
* Main Method used for testing
... | 691 |
github-java-corpus | 2,012 | package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief This class makes a new Bill Payment event
* @file BillPayment.java
*/
public class BillPayment extends Events.Event {
protected String company;
private static final int MAX_COMPANY = 25;
/**
* Main Method used for testing
*
* @... | 642 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief This class makes a new WorkEvent
* @file WorkEvent.java
*/
public class WorkEvent extends Event {
/**
* Main Method used for testing
*
* @param args
* Command line arguments
*/
public static void main(S... | 387 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief this class makes a new Class Lecture event
* @file ClassLecture.java
*/
public class ClassLecture extends Events.Event {
protected String m_module;
private static final int MAX_MODULE = 20;
/**
* Main Method used for tes... | 662 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.ArrayList;
import java.util.Date;
/**
* @author James Alfei
* @brief This class inherits from Event and makes a new anniversary event
* @file Anniversary.java
*/
public class Anniversary extends Events.Event {
ArrayList<String> m_anniversees;
private static final i... | 691 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief This class makes a new WorkDeadline event
* @file WorkDeadline.java
*/
public class WorkDeadline extends Events.Event {
/**
* Main Method used for testing
*
* @param args
* Command line arguments
*/
pub... | 375 |
github-java-corpus | 2,012 | package Events;
import java.io.*;
import java.util.StringTokenizer;
import java.util.ArrayList;
import java.text.DateFormat;
import java.util.Date;
import java.text.*;
import java.io.FileWriter;
import javax.swing.JOptionPane;
/**
* @file EventFileReader.java
* @author Daniel Lewis, Adam Barrell & James Alfei
* ... | 1,561 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief this class makes a new Meal event
* @file Meal.java
*/
public class Meal extends Events.Event {
/**
* Main Method used for testing
*
* @param args
* Command line arguments
*/
public static void main(Str... | 385 |
github-java-corpus | 2,012 | /**
*
*/
package Events;
import java.util.Date;
/**
* @author James Alfei
* @brief This class makes a new social event
* @file SocialEvent.java
*/
public class SocialEvent extends Events.Event {
/**
* Main Method used for testing
*
* @param args
* Command line arguments
*/
public stat... | 389 |
github-java-corpus | 2,012 | package Search;
import java.util.ArrayList;
import Contacts.Contact;
import Contacts.ContactManager;
/**
* @file ContactSearcher.java
* @author Adam Barrell
*
* @brief This class finds and returns contacts that match a search criteria of
* type String.
*
* ContactSearcher contains methods whic... | 670 |
github-java-corpus | 2,012 | package Search;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import Contacts.Contact;
import javax.swing.*;
/**
* @file ContactSearchGUI.jav... | 1,272 |
github-java-corpus | 2,012 | package Search;
import java.io.IOException;
import java.util.ArrayList;
import Events.Event;
import Events.EventFileReader;
/**
* @file EventSearcher.java
* @author Adam Barrell
*
* @brief This class finds and returns events that match a search criteria of
* type String.
*
* EventSearcher cont... | 718 |
github-java-corpus | 2,012 | package Search;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import Events.Event;
import javax.swing.*;
/**
* @file EventSearchGUI.java
* @a... | 1,245 |
github-java-corpus | 2,012 | package Search;
import java.util.ArrayList;
import Contacts.Contact;
/**
* @file Searcher.java
* @author Adam Barrell
*
* @brief This class serves as a super class which searches for objects in a
* collection.
*
* Searcher defines static constants which it's sub classes use when
* defi... | 273 |
github-java-corpus | 2,012 | package com.infochimps.elasticsearch;
import java.io.IOException;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.io.*;
import org.apache.hadoop.conf.Confi... | 1,963 |
github-java-corpus | 2,012 | package com.infochimps.elasticsearch;
import java.io.IOException;
import java.io.DataInput;
import java.io.DataOutput;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
import org.apache.hadoop.mapreduce.InputSplit;
public class ElasticSearchSplit extends InputSplit implements Writable {
p... | 274 |
github-java-corpus | 2,012 | package com.infochimps.elasticsearch.hadoop.util;
import java.io.File;
import java.io.IOException;
import java.io.FileNotFoundException;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.conf.Configuration;
import org.apache.had... | 746 |
github-java-corpus | 2,012 | package com.infochimps.elasticsearch;
import java.io.IOException;
import org.apache.hadoop.mapreduce.JobContext;
import org.apache.hadoop.mapreduce.OutputCommitter;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
/**
* Small committer class that does not do anything.
*/
public class ElasticSearchOutputCommi... | 190 |
github-java-corpus | 2,012 | package com.infochimps.elasticsearch;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
import java.util.Random;
import java.util.Map;
import java.util.HashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFacto... | 800 |
github-java-corpus | 2,012 | package com.infochimps.elasticsearch.pig;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Properties;
import java.net.URI;
import org.codehaus.jackson.map... | 2,031 |
github-java-corpus | 2,012 | package com.infochimps.elasticsearch.pig;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Properties;
import java.net.URI;
import org.apache.commons.loggi... | 1,895 |
github-java-corpus | 2,012 | package com.infochimps.elasticsearch.pig;
import java.io.IOException;
import java.lang.InterruptedException;
import java.util.Properties;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.net.URI;
import java.net.URISyntaxException;
import org.apache.commons.logging.Log;
import org.ap... | 2,870 |
github-java-corpus | 2,012 | package com.infochimps.elasticsearch;
import java.io.File;
import java.io.IOException;
import java.util.Map;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
import java.util.Random;
import java.net.URI;
import org.apache.commons.logging.Log;
... | 2,638 |
github-java-corpus | 2,012 | /*
* Created on 04-Mar-2005
* Created by Paul Gardner
* Copyright (C) 2004, 2005, 2006 Aelitis, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* ... | 1,489 |
github-java-corpus | 2,012 | /*
* File : ByteEncodedKeyMap.java
* Created : 31-Oct-2003
* By : parg
*
* Azureus - a Java Bittorrent client
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2... | 238 |
github-java-corpus | 2,012 | /*
* BEncoder.java
*
* Created on June 4, 2003, 10:17 PM
* Copyright (C) 2003, 2004, 2005, 2006 Aelitis, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either ver... | 4,895 |
github-java-corpus | 2,012 | /*
* Created on Apr 12, 2004
* Created by Olivier Chalouhi
* Modified Apr 13, 2004 by Alon Rohter
* Copyright (C) 2004, 2005, 2006 Aelitis, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the F... | 9,313 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2007 Aelitis, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This p... | 335 |
github-java-corpus | 2,012 | /*
* BeDecoder.java
*
* Created on May 30, 2003, 2:44 PM
* Copyright (C) 2003, 2004, 2005, 2006 Aelitis, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either ver... | 4,626 |
github-java-corpus | 2,012 | /*
* Created on Apr 13, 2004
* Created by Alon Rohter
* Copyright (C) 2004, 2005, 2006 Aelitis, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
*... | 758 |
github-java-corpus | 2,012 | /*
* Created on 2 juil. 2003
* Copyright (C) 2003, 2004, 2005, 2006 Aelitis, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (... | 1,475 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.shared;
public class NoSuchUserException extends Exception {
private String key;
public NoSuchUserException(String base64PublicKey) {
super("No such user: " + base64PublicKey);
key = base64PublicKey;
}
public NoSuchUserException() {}
}
| 63 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.shared;
public class BadSessionException extends Exception {}
| 19 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.shared;
/**
* Just like CommunityAccount in the server package, except doesn't implement Principal (since GWT can't deal with it)
*/
public class CommunityAccountLite {
private String username;
private String pw_hash;
private String [] roles;
private int registrat... | 379 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.shared;
import java.util.Date;
public class KeyRegistrationRecord implements Comparable<KeyRegistrationRecord> {
String nickname;
String base64key;
String registrationIP;
long createdByID;
Date registeredDate;
Date lastRefreshedDate;
private Long mID;
/**
* Th... | 610 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.shared;
public final class CommunityConstants {
public static final String VERSION = "0.7pre";
/**
* Cookies
*/
public static final String ADMIN_SESSION_COOKIE = "community_session";
/**
* Form field names
*/
public static final String BASE64_PUBLIC_KEY = ... | 260 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.shared;
public class DuplicateAccountException extends Exception {
public String toString() {
return "Duplicate account name";
}
}
| 35 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.test;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStreamWriter;... | 671 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.test;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
i... | 3,020 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.test;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import... | 1,574 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.test;
import java.security.Key;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.Signature;
import com.sun.org.apache.xerces.internal.impl.dv.util.B... | 226 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.test;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class CDF {
private String name;
public CDF(Stri... | 216 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.test;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import java.u... | 1,120 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.IOException;
public class TooManyRegistrationsException extends IOException {
private int howmany;
public TooManyRegistrationsException( int howmany ) {
super("Too many registrations: " + howmany);
this.howmany = howmany;
}
public TooMany... | 85 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
public class Comment {
long swarmID;
long commentID;
String accountName;
long timestamp;
long replyTo;
int upvote, downvote;
String ip;
String comment;
public Comment( long swarmID, long commentID, String accountName, long timestamp,
long... | 285 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URLEncoder;
import java.s... | 6,122 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.IOException;
import java.io.PrintStream;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class CategoriesServlet extends javax.servlet.http.... | 206 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.security.Principal;
import edu.washington.cs.oneswarm.community2.server.CommunityDAO.UserRole;
public class CommunityAccount implements Principal {
private String username;
private String pw_hash;
private int registrations;
private long uid;
... | 543 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ... | 780 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Ht... | 997 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
public class PublishedSwarm {
long swarmID;
String name;
int fileCount;
long totalSize;
long uploadedTimestamp;
String category;
String infohash;
private boolean removed;
long uploadedBy;
boolean needs_moderated;
boolean hasTorrent;
public PublishedSw... | 391 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintStream;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
imp... | 3,352 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.http.H... | 723 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
public class PublishedSwarmDetails {
long swarmID;
String description;
int downloads;
String language;
int upvotes, downvotes;
byte [] previewPNG;
public PublishedSwarmDetails( long swarmID, String description,
int downloads, String language,
... | 235 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.security.Principal;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class DownloadServlet extends javax.servlet.http.HttpServlet {
private static final long serialVe... | 358 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.IOException;
public class DuplicateSwarmRegistrationException extends IOException {
public DuplicateSwarmRegistrationException(String torrentHashStr) {
super(torrentHashStr);
}
private static final long serialVersionUID = 1L;
}
| 58 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.IOException;
public class DuplicateRegistrationException extends IOException {
public DuplicateRegistrationException(String dup) {
super("Duplicate registration: " + dup);
}
}
| 45 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.file... | 811 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.security.MessageDigest;
import java.... | 16,788 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.server;
import java.io.IOException;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class PreviewImageServlet extends javax.servlet.http.HttpServlet {
private static final long serialV... | 326 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.utils;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.LinkedList;
import ... | 2,260 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.utils;
import java.io.IOException;
import java.io.PrintStream;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.se... | 537 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.utils;
import java.net.InetAddress;
import java.net.UnknownHostException;
public class ByteManip {
public static long btol(byte[] b) {
long l = 0;
for(int i =0; i < 8; i++){
l <<= 8;
l ^= (long) b[i] & 0xFF;
}
return l;
}
public static byte[] l... | 536 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.utils;
import java.net.UnknownHostException;
import java.util.BitSet;
public class IPFilter {
private BitSet prefix;
private int sigBits;
private int lower = Integer.MIN_VALUE, upper = Integer.MAX_VALUE; // if we're using an IP address range
public IPFilter( String... | 672 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.utils;
public class MutableLong {
public long v;
public MutableLong( long v ) {
set(v);
}
public long get() {
return v;
}
public void set(long v) {
this.v = v;
}
}
| 62 |
github-java-corpus | 2,012 | /**
* 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>
*
* URLUTF8Encoder: http://www.w3.or... | 1,839 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.utils;
import java.util.Date;
public class StringTools {
public static String formatRate(String inRateStr) {
return formatRate(Long.parseLong(inRateStr));
}
public static String formatRate(long inLongBytes) {
return formatRate(inLongBytes, "B");
}
public stat... | 866 |
github-java-corpus | 2,012 | package edu.washington.cs.oneswarm.community2.utils;
import java.text.DateFormat;
import java.util.Date;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;
public class ConciseLogFormatter extends Formatter {
public String format(LogRecord record) {
String [] nameToks = record.getLoggerName()... | 118 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
import java.util.HashMap;
import org.bukkit.entity.Player;
import com.narrowtux.MagnetBlock.RequestType;
public class MagnetBlockPlayer {
private Player player = null;
private static HashMap<String, MagnetBlockPlayer> instances = new HashMap<String, MagnetBlockPlayer>();
public ... | 445 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.Sign;
public class MagnetBlockBlock {
private Block blo... | 1,296 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Minecart;
import org.bukkit.entity.Player... | 1,634 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
//import org.bukkit.Material;
import org.bukkit.World;
//import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerListener;
import org.bukkit.event.pl... | 735 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
public class BlockPosition{
private int x, y, z;
private World world;
public BlockPosition(World world, int x, int y, int z){
this.x = x;
this.y = y;
this.z = z;... | 750 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.bukki... | 833 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
public enum RequestType {
AddMagnet,
SetReferenceMagnet,
None,
EditStructure,
RemoveMagnet,
Follow,
}
| 39 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
public class Permission {
private File pluginDir;
private String group = "users";
private HashMap<String, Bo... | 318 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
import org.bukkit.ChatColor;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockListener;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.block.BlockRedstoneEvent;
... | 652 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
import org.bukkit.util.Vector;
public class Matrix {
private double
a, b, c,
d, e, f,
g, h, i;
// Please keep the alignment as above as it shows how the matrix is aligned.
/*
* Creates a new Matrix from the given params.
*/
public Matrix(double a0, double a1, double ... | 1,772 |
github-java-corpus | 2,012 | package com.narrowtux.MagnetBlock;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.block.Block;
public class MagnetBlockMagnet{
private boolean powered;
private Block block;
static List<MagnetBlockMagnet> instances = new ArrayList<MagnetBlockMagnet>();
static public MagnetBlock plugin = null... | 447 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.