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 com.pugh.sockso.cache;
import com.pugh.sockso.Utils;
import com.pugh.sockso.music.CoverArt;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import com.google.inject.Singleton;
@Singleton
public class CoverArtCache extends TimedCache {
... | 973 |
github-java-corpus | 2,012 |
package com.pugh.sockso.cache;
import java.io.IOException;
public interface Cache<T> {
/**
* checks if the key exists in the cache
*
* @param key unique key
*
* @return true if the object is cached, false otherwise
*
*/
public boolean isCached( final String key ) thr... | 310 |
github-java-corpus | 2,012 |
package com.pugh.sockso.events;
public interface LatestVersionListener {
/**
* Handler for when we receive the latest version
*
* @param version
*
*/
public void latestVersionReceived( final LatestVersionEvent evt );
}
| 56 |
github-java-corpus | 2,012 |
package com.pugh.sockso.events;
public class LatestVersionEvent {
private final String version;
public LatestVersionEvent( final String version ) {
this.version = version;
}
/**
* Returns the latest version number
*
* @return
*
*/
public String getV... | 78 |
github-java-corpus | 2,012 |
package com.pugh.sockso;
public class JsonUtils {
/**
* Creates a JSON string from the specified string
*
* @param string
*
* @return
*
*/
public static String string( final String string ) {
return "\"" +string.replace("\"","\\\"")+ "\"";
... | 82 |
github-java-corpus | 2,012 | /*
* Playlists.java
*
* Created on May 18, 2007, 12:13:17 PM
*
* displays the playlists in the collection for the specified mode. the items
* can be dragged off onto the playlist creation panel.
*
*/
package com.pugh.sockso.gui;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.resources.Resource... | 981 |
github-java-corpus | 2,012 | /*
* BooleanOptionField.java
*
* Created on Aug 7, 2007, 7:51:00 PM
*
* A checkbox property field
*
*/
package com.pugh.sockso.gui.controls;
import com.pugh.sockso.Properties;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JCheckBox;
public class BooleanOption... | 166 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui.controls;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.gui.AppFrame;
import com.pugh.sockso.music.Collection;
import com.pugh.sockso.music.CollectionManager;
import com.pugh.sockso.resources.Locale;
import com.pugh.sockso.resources.Resources;
import java.awt.event.ActionEven... | 995 |
github-java-corpus | 2,012 | /*
* DirectoryOptionField.java
*
* Created on Nov 23, 2007, 7:25:27 PM
*
* Implements an option field for selecting a directory
*
*/
package com.pugh.sockso.gui.controls;
import com.pugh.sockso.Properties;
import com.pugh.sockso.resources.Locale;
import javax.swing.JFrame;
import javax.swing.JPanel;
import ... | 568 |
github-java-corpus | 2,012 | /*
* UploadDirectoryOptionField.java
*
* Created on Nov 25, 2007, 2:54:00 PM
*
* This is a special version of the directory chooser which allows setting
* the uploads directory
*
*/
package com.pugh.sockso.gui.controls;
import com.pugh.sockso.Constants;
import com.pugh.sockso.Utils;
import com.pugh.sockso.P... | 442 |
github-java-corpus | 2,012 | /*
* Implements a combo box for a property
*
*/
package com.pugh.sockso.gui.controls;
import com.pugh.sockso.Properties;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JComboBox;
import org.apache.log4j.Logger;
public class ComboOptionField extends JComboBox implem... | 373 |
github-java-corpus | 2,012 | /*
* TextOptionField.java
*
* Created on Aug 7, 2007, 7:49:58 PM
*
* A string property field.
*
*/
package com.pugh.sockso.gui.controls;
import com.pugh.sockso.Properties;
import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;
import javax.swing.text.DefaultFormatter;
import javax.swing.JForm... | 371 |
github-java-corpus | 2,012 | /*
* NumberFieldOption.java
*
* Created on Aug 19, 2007, 3:46:59 PM
*
* Only allows the input of numbers
*
*/
package com.pugh.sockso.gui.controls;
import com.pugh.sockso.Properties;
import java.text.DecimalFormat;
import javax.swing.text.NumberFormatter;
public class NumberOptionField extends TextOption... | 160 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.resources.Resources;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import javax.swing.JScrollP... | 392 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.music.CollectionManager;
import com.google.inject.Inject;
/**
* holds a list of user playlists. these can then be deleted
*
*/
public class UserPlaylists extends Playlists {
... | 116 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.Constants;
import com.pugh.sockso.Utils;
import com.pugh.sockso.Properties;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.db.DBExporter;
import com.pugh.sockso.gui.action.RequestLogClear;
import com.pugh.sockso.gui.action.RequestLogExport;
import com.pu... | 2,070 |
github-java-corpus | 2,012 | /*
* MusicList.java
*
* Created on May 23, 2007, 9:38:45 PM
*
* A draggable list that contains MusicItems
*
*/
package com.pugh.sockso.gui;
import com.pugh.sockso.music.MusicItem;
import java.awt.dnd.DnDConstants;
import java.awt.dnd.DragSource;
import java.awt.dnd.DragSourceEvent;
import java.awt.dnd.D... | 489 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.Validater;
import com.pugh.sockso.ValidationException;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.resources.Locale;
import com.pugh.sockso.web.User;
import java.awt.BorderLayout;
import java.awt.FlowLayout... | 1,327 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.Utils;
import com.pugh.sockso.music.MusicItem;
import com.pugh.sockso.music.Artist;
import com.pugh.sockso.music.Album;
import com.pugh.sockso.music.Track;
import com.pugh.sockso.music.Collection;
import com.pugh.sockso.music.Coll... | 1,800 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.music.CollectionManager;
import com.google.inject.Inject;
/**
* shows playlists created by the site owner
*
*/
public class SitePlaylists extends Playlists {
@Inject
publ... | 111 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.music.MusicItem;
import java.awt.Component;
import javax.swing.ImageIcon;
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeCellRenderer;
import org.apache.log4j.Logger;
/**
* A custom renderer for the mus... | 506 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.commands.CommandExecuter;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.resources.Locale;
import java.awt.Font;
import java.awt.Container;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.... | 1,033 |
github-java-corpus | 2,012 | /*
* ForwardPortDialog.java
*
* Created on Jun 25, 2007, 9:54:35 PM
*
* A dialog for allowing the user to forward ports from UPNP enabled
* internet gateway devices
*
*/
package com.pugh.sockso.gui;
import com.pugh.sockso.UPNP;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.web.Server;
... | 1,201 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui.action;
import javax.swing.AbstractAction;
import java.util.ArrayList;
public abstract class RequestLogAction extends AbstractAction {
private final ArrayList<RequestLogChangeListener> listeners = new ArrayList<RequestLogChangeListener>();
/**
* Adds a listener fo... | 157 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui.action;
import com.pugh.sockso.Utils;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.gui.AppFrame;
import com.pugh.sockso.gui.PlaylistFileFilter;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.resources.Locale;
import com.pugh.sockso.music.Track;
import com.... | 1,169 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui.action;
import com.pugh.sockso.db.DBExporter;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.resources.Locale;
import java.awt.event.ActionEvent;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.JComboBox;
import javax.swing.JFil... | 461 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui.action;
/**
* Interface for objects that want to listen for changes in the request log
*
*/
public interface RequestLogChangeListener {
/**
* Signals that the request log has been exported
*
*/
public void requestLogChanged();
}
| 66 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui.action;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.resources.Locale;
import java.awt.event.ActionEvent;
import java.sql.SQLException;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import org.apache.log4j.Logger;
public class RequestLogClear extends Request... | 349 |
github-java-corpus | 2,012 | /*
* TrayIcon.java
*
* Created on Jun 10, 2007, 8:32:40 PM
*
* Tries to create a tray icon, and handle the difference between
* systems.
*
*/
package com.pugh.sockso.gui;
import com.pugh.sockso.resources.Resources;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing... | 832 |
github-java-corpus | 2,012 | /*
* This panel has options for setting the encoding applications sockso can
* use to change how music is streamed to the client
*
*/
package com.pugh.sockso.gui;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import com.jgoodies.forms.layout.FormLayout;
import com.jg... | 274 |
github-java-corpus | 2,012 | /*
* MusicTreeNode.java
*
* Created on May 15, 2007, 10:59:44 PM
*
* A node in the music tree
*
*/
package com.pugh.sockso.gui;
import com.pugh.sockso.music.MusicItem;
import javax.swing.tree.DefaultMutableTreeNode;
public class MusicTreeNode extends DefaultMutableTreeNode {
public MusicTreeNo... | 97 |
github-java-corpus | 2,012 | /*
* Controls encoding options for a particular file type
*
* When selecting the encoding type there are the following options:
*
* 1. Do nothing, stream unaltered
* 2. Use a built in encoding option
* 3. Specify your own encoding options
*
*/
package com.pugh.sockso.gui;
import com.pugh.so... | 1,659 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.Constants;
import java.awt.BorderLayout;
import java.io.File;
import javax.swing.JWindow;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
public class Splash extends JWindow {
private static Splash instance... | 277 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.resources.Locale;
import com.pugh.sockso.music.CollectionManager;
import com.pugh.sockso.gui.action.ImportPlaylist;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Dimension;
import java.awt.even... | 1,095 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.Utils;
import com.pugh.sockso.resources.Locale;
import java.io.File;
import javax.swing.filechooser.FileFilter;
/**
* A filter for playlist type files
*
*/
public class PlaylistFileFilter extends FileFilter {
public static final String[] VALID_EXTENSION... | 280 |
github-java-corpus | 2,012 | /*
* PlaylistPanelList.java
*
* Created on May 16, 2007, 11:52:07 PM
*
* Allows music items to be dropped onto it, then moved around
* to create playlists.
*
*/
package com.pugh.sockso.gui;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.Utils;
import com.pugh.sockso.music.Track;
import com.pugh.... | 2,286 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.Sockso;
import com.pugh.sockso.Constants;
import com.pugh.sockso.Manager;
import com.pugh.sockso.Properties;
import com.pugh.sockso.PropertiesListener;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.events.LatestVersionEvent;
import com.pugh.sockso.resou... | 2,948 |
github-java-corpus | 2,012 |
package com.pugh.sockso.gui;
import com.pugh.sockso.Properties;
import com.pugh.sockso.Utils;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.gui.controls.BooleanOptionField;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.web.User;
import java.sql.PreparedStatement;
import java.sql.Res... | 1,838 |
github-java-corpus | 2,012 | /**
* CollectionPanel.java
*
* Created on May 12, 2007, 4:52 PM
*
*/
package com.pugh.sockso.gui;
import com.pugh.sockso.db.Database;
import com.pugh.sockso.resources.Resources;
import com.pugh.sockso.resources.Locale;
import com.pugh.sockso.music.*;
import com.pugh.sockso.*;
import com.pugh.sockso.gui.controls.... | 1,860 |
github-java-corpus | 2,012 |
package com.pugh.sockso.mail;
import com.pugh.sockso.Constants;
import com.pugh.sockso.Properties;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.InternetAddress;
import java.... | 357 |
github-java-corpus | 2,012 |
package com.pugh.sockso;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import org.apache.log4j.Logger;
import com.google.inject.Inject;
import com.google.inject.Singleton;
@Sin... | 854 |
github-java-corpus | 2,012 |
package com.pugh.sockso;
import com.pugh.sockso.db.Database;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.google.inject.Inject;
import com.google.inject.Singleton;
/**
* Adds persistence by DB to the StringProperties class
*
*/
@Singleton
public class... | 625 |
github-java-corpus | 2,012 |
package com.pugh.sockso.inject;
import com.pugh.sockso.Console;
import com.pugh.sockso.DBProperties;
import com.pugh.sockso.Manager;
import com.pugh.sockso.Options;
import com.pugh.sockso.Properties;
import com.pugh.sockso.resources.Locale;
import com.pugh.sockso.auth.Authenticator;
import com.pugh.sockso.auth.DBAuth... | 811 |
github-java-corpus | 2,012 |
package com.pugh.sockso.inject;
import com.pugh.sockso.resources.Locale;
import com.pugh.sockso.resources.LocaleFactory;
import com.google.inject.Inject;
import com.google.inject.Provider;
public class LocaleProvider implements Provider<Locale> {
private final LocaleFactory localeFactory;
@Inject
... | 107 |
github-java-corpus | 2,012 |
package com.pugh.sockso.auth;
import com.pugh.sockso.Utils;
import com.pugh.sockso.db.Database;
import java.sql.ResultSet;
import java.sql.PreparedStatement;
import com.google.inject.Inject;
/**
* This class authenticates users from the database
*
*/
public class DBAuthenticator implements Authenticator {
... | 329 |
github-java-corpus | 2,012 |
package com.pugh.sockso.auth;
/**
* This interface defines an authenticator for Sockso to validate a user with
* a password.
*
*/
public interface Authenticator {
/**
* Authenticates a user by name and password.
*
* @param user
* @param pass
* @return
*/
public boolean authe... | 89 |
github-java-corpus | 2,012 |
package com.pugh.sockso;
public class Shutdown extends Thread {
/**
* We don't have long, so try and do the most important cleanup (shutting
* down the database connection cleanly atm)
*
*/
@Override
public void run() {
Main.shutdownDatabase();
}
} | 69 |
github-java-corpus | 2,012 | package com.thingtrack.org.simpleframework;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
| 46 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 750 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 447 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 826 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,678 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 627 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 486 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 348 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,337 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,308 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 816 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,238 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,393 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 4,020 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 882 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,509 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,154 |
github-java-corpus | 2,012 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 319 |
github-java-corpus | 2,012 | /*
* Created on Apr 27, 2007
*/
package jtwitter;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.text.ParseExce... | 935 |
github-java-corpus | 2,012 | /*
* Created on Apr 27, 2007
*/
package jtwitter;
import java.net.URL;
import java.net.MalformedURLException;
/**
* TwitterUser Class holds information about a given Twitter user
*
* @author Lukasz Grzegorz Maciak
*
*/
public class TwitterUser {
// Twitter User Nodes (each corresponds to a XML node with t... | 766 |
github-java-corpus | 2,012 | /**
*
*/
package jtwitter;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.net.MalformedURLException;
import java.text.ParseException;
import java.util.HashMap;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.x... | 1,009 |
github-java-corpus | 2,012 | package jtwitter;
import java.io.IOException;
import java.net.HttpURLConnection;
public class TwitterConnectionException extends Exception {
private HttpURLConnection conn;
public TwitterConnectionException(HttpURLConnection conn, Throwable cause) {
super(cause);
this.conn = conn;
}
public int getResponse... | 126 |
github-java-corpus | 2,012 | /*
* Created on Apr 27, 2007
*/
package jtwitter;
import java.net.MalformedURLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class TwitterEntry {
// Twitter Entry Nodes (each corresponds to a XML node with the same name)
pu... | 737 |
github-java-corpus | 2,012 | package com.fredbrunel.android.twitter;
import android.os.Handler;
import android.os.Message;
import jtwitter.TwitterConnection;
import jtwitter.TwitterConnectionException;
import jtwitter.TwitterResponse;
public class TwitterService {
public static final int RESPONSE_OK = 0;
public static final int RESPONSE_KO =... | 573 |
github-java-corpus | 2,012 | package com.fredbrunel.android.twitter;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
public class Config {
public static final String PREFS_NAME = "TwitterDroidPrefs";
private SharedPreferences settings;
private Editor editor;
public... | 236 |
github-java-corpus | 2,012 | package com.fredbrunel.android.twitter;
import oauth.signpost.exception.OAuthCommunicationException;
import oauth.signpost.exception.OAuthExpectationFailedException;
import oauth.signpost.exception.OAuthMessageSignerException;
import oauth.signpost.exception.OAuthNotAuthorizedException;
import android.app.Activity;
im... | 281 |
github-java-corpus | 2,012 | package com.fredbrunel.android.twitter;
import java.io.IOException;
import java.net.URL;
import java.util.concurrent.ConcurrentHashMap;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
public class BitmapCache {
private static BitmapCache instance = null;
private ConcurrentHashMap<URL, Bitmap... | 189 |
github-java-corpus | 2,012 | package com.fredbrunel.android.twitter;
import java.util.HashMap;
import java.util.Map;
import android.content.Context;
import android.database.DataSetObserver;
import android.graphics.Bitmap;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;... | 574 |
github-java-corpus | 2,012 | package com.fredbrunel.android.twitter;
import oauth.signpost.OAuth;
import oauth.signpost.exception.OAuthCommunicationException;
import oauth.signpost.exception.OAuthExpectationFailedException;
import oauth.signpost.exception.OAuthMessageSignerException;
import oauth.signpost.exception.OAuthNotAuthorizedException;
i... | 242 |
github-java-corpus | 2,012 | package com.fredbrunel.android.twitter;
import oauth.signpost.basic.DefaultOAuthConsumer;
import oauth.signpost.basic.DefaultOAuthProvider;
public interface AuthConstants {
public static final String CONSUMER_KEY = "YOUR_CONSUMER_KEY";
public static final String CONSUMER_SECRET = "YOUR_CONSUMER_SECRET";
public st... | 186 |
github-java-corpus | 2,012 | package com.fredbrunel.android.twitter;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Vie... | 1,030 |
github-java-corpus | 2,012 | package org.owasp.csrfguard.test;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class HelloServlet
*/
pub... | 207 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 424 |
github-java-corpus | 2,012 | package org.owasp.csrfguard.http;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
import org.owasp.csrfguard.CsrfGuard;
public class InterceptRedirectResponse extends HttpServletResponseWra... | 326 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 757 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 392 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 578 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 371 |
github-java-corpus | 2,012 | package org.owasp.csrfguard.log;
import java.util.logging.Level;
import java.util.logging.Logger;
public class JavaLogger implements ILogger {
private static final long serialVersionUID = -4857601483759096197L;
private final static Logger LOGGER = Logger.getLogger("Owasp.CsrfGuard");
@Override
public void log... | 374 |
github-java-corpus | 2,012 | package org.owasp.csrfguard.util;
public final class Strings {
public final static String EMPTY = "";
private Strings() {
/**
* Intentionally blank to force static usage
*/
}
@Override
public Object clone() throws CloneNotSupportedException {
throw new CloneNotSupportedException();
}
}
| 67 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 491 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 690 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 691 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 443 |
github-java-corpus | 2,012 | package org.owasp.csrfguard;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class CsrfGuardHttpSessionListener implements HttpSessionListener {
@Override
public void sessionCreated(HttpSessionEvent event) {
HttpSession sess... | 109 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 463 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 428 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 805 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 535 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 789 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 521 |
github-java-corpus | 2,012 | /**
* The OWASP CSRFGuard Project, BSD License
* Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... | 412 |
github-java-corpus | 2,012 | package org.owasp.csrfguard;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.owasp.csrfguar... | 493 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.