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 | /*
* EMULIB_VERSION.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2012, Peter Jakubčo
*
* 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 y... | 246 |
github-java-corpus | 2,012 | /*
* ContextType.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2012, Peter Jakubčo
*
* 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 o... | 311 |
github-java-corpus | 2,012 | /*
* APITest.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2012, Peter Jakubčo
*
* 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 optio... | 578 |
github-java-corpus | 2,012 | /*
* DeviceContextInterface.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2012, Peter Jakubčo
*
* 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
* ... | 259 |
github-java-corpus | 2,012 | /*
* CPUContextInterface.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2010-2012, Peter Jakubčo
*
* 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
... | 273 |
github-java-corpus | 2,012 | /*
* MemoryContextInterface.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2012, Peter Jakubčo
*
* 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
*... | 258 |
github-java-corpus | 2,012 | /*
* LoaderTest.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2010-2012, Peter Jakubčo
*
* 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 y... | 992 |
github-java-corpus | 2,012 | /*
* CompilerContextInterface.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2012, Peter Jakubčo
*
* 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
... | 257 |
github-java-corpus | 2,012 | /*
* RadixUtilsTest.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2012, Peter Jakubčo
*
* 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... | 1,249 |
github-java-corpus | 2,012 | /*
* StaticDialogsTest.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2010-2012, Peter Jakubčo
*
* 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
* ... | 321 |
github-java-corpus | 2,012 | /*
* MockBadHashCPUContext.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2012, Peter Jakubčo
*
* 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
* ... | 289 |
github-java-corpus | 2,012 | /*
* ContextPoolTest.java
*
* KISS, YAGNI, DRY
*
* (c) Copyright 2010-2012, Peter Jakubčo
*
* 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
* ... | 2,237 |
github-java-corpus | 2,012 | package it.ramiel.droidtracks;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import utils.TypeResources;
import it.ramiel._8tracks.Mix;
import it.ramiel._8tracks.MixCollection;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.Lay... | 920 |
github-java-corpus | 2,012 | package it.ramiel.droidtracks.services;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
public class EightTracksClientService extends Service {
@Override
public IBinder onBind(Intent arg0) {
// TODO Auto-generated method stub
return null;
}
}
| 63 |
github-java-corpus | 2,012 | package it.ramiel.droidtracks;
import android.app.Activity;
import android.os.Bundle;
public class Player extends Activity{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.la... | 94 |
github-java-corpus | 2,012 | package it.ramiel.droidtracks;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;
public class MainTabActivity extends TabActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onC... | 345 |
github-java-corpus | 2,012 | package it.ramiel.droidtracks;
import it.ramiel._8tracks.EightTClient;
import it.ramiel._8tracks.MixCollection;
import it.ramiel._8tracks.MixesDownloadedListener;
import it.ramiel._8tracks.exceptions.UnauthorizedActionException;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.os.Bund... | 820 |
github-java-corpus | 2,012 | package me.tomjw64.MaxHealth;
import java.util.HashMap;
import java.util.Map;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
public class PlayerManager {
private static Map<String,PlayerHook> hookList=new HashMap<String,PlayerHook>();
public static void register(Player p, MaxHealth plugin)... | 201 |
github-java-corpus | 2,012 | //MaxHealth plugin for bukkit
//Made by tomjw64 based on a plugin request from polkunus
//Thanks and credit to gabizou for help with testing and bug fixing!
package me.tomjw64.MaxHealth;
import java.io.File;
import java.io.IOException;
import java.util.logging.Logger;
import org.bukkit.ChatColor;
import o... | 1,320 |
github-java-corpus | 2,012 | package me.tomjw64.MaxHealth;
import net.minecraft.server.Packet38EntityStatus;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity... | 732 |
github-java-corpus | 2,012 | package me.tomjw64.MaxHealth;
import java.util.HashMap;
import java.util.Map;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.PlayerInventory;
public class PlayerHook {
public static MaxHealth plug... | 1,118 |
github-java-corpus | 2,012 | package omgrofl;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import omgrofl.interpreter.Memory;
import omgrofl.interpreter.Script;
import omgrofl.interpreter.ScriptParser;
import omgrofl.interpreter.exceptions.ScriptParseException;
import omgrofl.interpreter.exceptions.ScriptRuntimeExcept... | 260 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
import omgrofl.interpreter.exceptions.ScriptRuntimeException;
public interface Condition {
int EQUAL = 1;
int GREATER = 2;
int LESS = 3;
int GREATER_OR_EQUAL = 4;
int LESS_OR_EQUAL = 5;
int NOT_EQUAL = 6;
boolean evaluate() throws ScriptRuntimeExcepti... | 81 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import omgrofl.interpreter.exceptions.ScriptExitException;
import omgrofl.interpreter.exceptions.ScriptInterruptedException;
public class CommandSequence {
List<Command> commands = new ArrayList<Comma... | 190 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
public interface Procedure {
void addParameter(Parameter parameter);
void clearParameters();
String getName();
Object execute();
}
| 33 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
import omgrofl.interpreter.exceptions.ScriptExitException;
import omgrofl.interpreter.exceptions.ScriptInterruptedException;
import omgrofl.interpreter.exceptions.ScriptRuntimeException;
public class Script {
protected CommandSequence commandSequence;
Script(CommandSequence ... | 128 |
github-java-corpus | 2,012 | package omgrofl.interpreter.parameters;
import omgrofl.interpreter.Parameter;
import omgrofl.interpreter.Procedure;
public class ProcedureParameter implements Parameter {
protected Procedure procedure;
public ProcedureParameter(Procedure procedure) {
this.procedure = procedure;
}
... | 94 |
github-java-corpus | 2,012 | package omgrofl.interpreter.parameters;
import omgrofl.interpreter.Parameter;
public class ObjectParameter implements Parameter {
protected Object value;
public ObjectParameter(Object value) {
this.value = value;
}
@Override
public Object evaluate() {
return value;
}
... | 140 |
github-java-corpus | 2,012 | package omgrofl.interpreter.parameters;
import omgrofl.interpreter.Parameter;
import omgrofl.interpreter.Variable;
public class VariableParameter implements Parameter {
protected Variable variable;
public VariableParameter(Variable variable) {
this.variable = variable;
}
@Override
... | 105 |
github-java-corpus | 2,012 | package omgrofl.interpreter.factories;
import java.util.List;
import omgrofl.interpreter.Parameter;
import omgrofl.interpreter.Procedure;
import omgrofl.interpreter.procedures.PrintProcedure;
public class ProcedureFactory {
private Procedure createProcedure(String name) throws RuntimeException {
if (... | 196 |
github-java-corpus | 2,012 | package omgrofl.interpreter.factories;
import omgrofl.interpreter.Parameter;
import omgrofl.interpreter.Procedure;
import omgrofl.interpreter.Variable;
import omgrofl.interpreter.parameters.ObjectParameter;
import omgrofl.interpreter.parameters.ProcedureParameter;
import omgrofl.interpreter.parameters.VariableParamete... | 128 |
github-java-corpus | 2,012 | package omgrofl.interpreter.exceptions;
public class ScriptParseException extends Exception {
public ScriptParseException() {
super();
}
public ScriptParseException(String message) {
super(message);
}
}
| 43 |
github-java-corpus | 2,012 | package omgrofl.interpreter.exceptions;
public class ScriptExitException extends Exception {
public ScriptExitException(String message) {
super(message);
}
public ScriptExitException() {
super();
}
}
| 44 |
github-java-corpus | 2,012 | package omgrofl.interpreter.exceptions;
public class ScriptRuntimeException extends RuntimeException {
public ScriptRuntimeException(String message) {
super(message);
}
public ScriptRuntimeException() {
super();
}
}
| 41 |
github-java-corpus | 2,012 | package omgrofl.interpreter.exceptions;
public class ScriptInterruptedException extends Exception {
public ScriptInterruptedException() {
super();
}
public ScriptInterruptedException(String message) {
super(message);
}
}
| 43 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
public class Variable {
protected Memory memory;
protected String name;
public Variable(Memory memory, String name) {
this.memory = memory;
this.name = name;
}
public Object getValue() {
return memory.getVariable(name.toLowerCase()... | 99 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.Parameter;
import omgrofl.interpreter.exceptions.ScriptExitException;
import omgrofl.interpreter.exceptions.ScriptInterruptedException;
import omgrofl.interpreter.exceptions.ScriptRuntimeException;
public class SleepC... | 172 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.exceptions.ScriptInterruptedException;
public class BreakCommand implements Command {
@Override
public void execute() throws ScriptInterruptedException {
throw new ... | 82 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.Procedure;
public class CallProcedureCommand implements Command {
protected Procedure procedure;
public CallProcedureCommand(Procedure procedure) {
this.procedure = procedure;
}
@Override
... | 91 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.Parameter;
import omgrofl.interpreter.Variable;
public class AssignmentCommand implements Command {
protected Variable variable;
protected Parameter value;
public AssignmentCommand(Variable variable,... | 119 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.Memory;
import omgrofl.interpreter.Variable;
public class StackPushCommand implements Command {
protected Variable variable;
protected Memory memory;
public StackPushC... | 132 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.CommandSequence;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.exceptions.ScriptExitException;
import omgrofl.interpreter.exceptions.ScriptInterruptedException;
public class InfiniteLoopCommand implem... | 171 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.exceptions.ScriptExitException;
public class ExitCommand implements Command {
@Override
public void execute() throws ScriptExitException {
throw new ScriptExitExcep... | 85 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.Memory;
import omgrofl.interpreter.Variable;
public class DequeueCommand implements Command {
protected Variable variable;
protected Memory memory;
public DequeueComma... | 131 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.CommandSequence;
import omgrofl.interpreter.Condition;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.exceptions.ScriptExitException;
import omgrofl.interpreter.exceptions.ScriptInterruptedException;
p... | 186 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import java.io.IOException;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.Variable;
import omgrofl.interpreter.exceptions.ScriptExitException;
import omgrofl.interpreter.exceptions.ScriptInterruptedException;
import omgrofl.inte... | 199 |
github-java-corpus | 2,012 | package omgrofl.interpreter.commands;
import omgrofl.interpreter.Command;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.Memory;
import omgrofl.interpreter.Variable;
public class StackPopCommand implements Command {
protected Variable variable;
protected Memory memory;
public StackPopCom... | 131 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
import java.util.*;
public class Memory {
protected Map<String, Object> variables = new HashMap<String, Object>();
protected Deque<Object> stackQueue = new LinkedList<Object>();
public void setVariable(String name, Object value) {
variables.put(name, value);
... | 199 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.NoSuchElementException;
import java.util.Scanner;
import omgrofl.interpreter.commands.*;
import omgrofl.interpreter.exceptions.ScriptParseException;
import omgrofl.interpreter.factories.ParameterFactory;
import omg... | 2,000 |
github-java-corpus | 2,012 | package omgrofl.interpreter.procedures;
import omgrofl.interpreter.Globals;
public class DecrementVariableProcedure extends AbstractVariableProcedure {
@Override
public String getName() {
return Globals.decrementVariableOperator;
}
@Override
public Object execute() {
incrementVar... | 73 |
github-java-corpus | 2,012 | package omgrofl.interpreter.procedures;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.Parameter;
import omgrofl.interpreter.Variable;
import omgrofl.interpreter.exceptions.ScriptRuntimeException;
import omgrofl.interpreter.parameters.VariableParameter;
public abstract class AbstractVariableProcedure ... | 176 |
github-java-corpus | 2,012 | package omgrofl.interpreter.procedures;
import java.util.ArrayList;
import java.util.List;
import omgrofl.interpreter.Parameter;
import omgrofl.interpreter.Procedure;
import omgrofl.interpreter.exceptions.ScriptRuntimeException;
public abstract class AbstractProcedure implements Procedure {
protected List<Pa... | 175 |
github-java-corpus | 2,012 | package omgrofl.interpreter.procedures;
import omgrofl.interpreter.Globals;
import omgrofl.interpreter.Parameter;
import omgrofl.interpreter.exceptions.ScriptRuntimeException;
public class PrintCharacterProcedure extends AbstractProcedure {
@Override
public String getName() {
return Globals.print... | 170 |
github-java-corpus | 2,012 | package omgrofl.interpreter.procedures;
import omgrofl.interpreter.Globals;
public class IncrementVariableProcedure extends AbstractVariableProcedure {
@Override
public String getName() {
return Globals.incrementVariableOperator;
}
@Override
public Object execute() {
incrementVar... | 71 |
github-java-corpus | 2,012 | package omgrofl.interpreter.procedures;
public class PrintProcedure extends AbstractProcedure {
@Override
public String getName() {
return "print";
}
@Override
public Object execute() {
requireNumberOfParameters(1);
System.out.println(parameters.get(0).evaluate());
... | 69 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
import omgrofl.interpreter.exceptions.ScriptExitException;
import omgrofl.interpreter.exceptions.ScriptInterruptedException;
public interface Command {
void execute() throws ScriptInterruptedException, ScriptExitException;
}
| 45 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
public interface Parameter {
Object evaluate();
}
| 16 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
import java.util.Scanner;
public class Globals {
public static final String numberPattern = "^[0-9]+$";
public static final String variablePattern = "^l[o]+l$";
public static final String breakOperator = "tldr";
public static final String endOperator = "brb";
publ... | 424 |
github-java-corpus | 2,012 | package omgrofl.interpreter;
import omgrofl.interpreter.exceptions.ScriptRuntimeException;
public class SimpleCondition implements Condition {
protected Parameter left, right;
protected int operation;
public SimpleCondition(Parameter left, Parameter right, int operation) {
this.left = left;
... | 393 |
github-java-corpus | 2,012 | /*
* Copyright 2006 - 2012
* Stefan Balev <stefan.balev@graphstream-project.org>
* Julien Baudry <julien.baudry@graphstream-project.org>
* Antoine Dutot <antoine.dutot@graphstream-project.org>
* Yoann Pigné <yoann.pigne@graphstream-project.org>
* Guilhelm Savin <guilhelm.savin@graph... | 7,722 |
github-java-corpus | 2,012 | /*
* Copyright 2006 - 2012
* Stefan Balev <stefan.balev@graphstream-project.org>
* Julien Baudry <julien.baudry@graphstream-project.org>
* Antoine Dutot <antoine.dutot@graphstream-project.org>
* Yoann Pigné <yoann.pigne@graphstream-project.org>
* Guilhelm Savin <guilhelm.savin@graph... | 7,878 |
github-java-corpus | 2,012 | /*
* Copyright 2006 - 2012
* Stefan Balev <stefan.balev@graphstream-project.org>
* Julien Baudry <julien.baudry@graphstream-project.org>
* Antoine Dutot <antoine.dutot@graphstream-project.org>
* Yoann Pigné <yoann.pigne@graphstream-project.org>
* Guilhelm Savin <guilhelm.savin@graph... | 613 |
github-java-corpus | 2,012 | /*
* Copyright 2006 - 2012
* Stefan Balev <stefan.balev@graphstream-project.org>
* Julien Baudry <julien.baudry@graphstream-project.org>
* Antoine Dutot <antoine.dutot@graphstream-project.org>
* Yoann Pigné <yoann.pigne@graphstream-project.org>
* Guilhelm Savin <guilhelm.savin@graph... | 22,569 |
github-java-corpus | 2,012 | /*
* Copyright 2006 - 2012
* Stefan Balev <stefan.balev@graphstream-project.org>
* Julien Baudry <julien.baudry@graphstream-project.org>
* Antoine Dutot <antoine.dutot@graphstream-project.org>
* Yoann Pigné <yoann.pigne@graphstream-project.org>
* Guilhelm Savin <guilhelm.savin@graph... | 611 |
github-java-corpus | 2,012 | import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ConnectException;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
import org.graphstream.graph.Graph;
import org.graphstream.graph.im... | 745 |
github-java-corpus | 2,012 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.LinkedList;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.graphstream.graph.Graph;
import org.graphst... | 1,007 |
github-java-corpus | 2,012 | package gamemode.scranner;
import java.util.logging.Logger;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.Server;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
public class gamemode e... | 1,754 |
github-java-corpus | 2,012 | package br.com.caelum.vraptor.environment;
import java.io.IOException;
import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.Path;
import br.com.caelum.vraptor.Put;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
import br.com.caelum.vraptor.freemarker.Freemarker;
import freemarke... | 298 |
github-java-corpus | 2,012 | package br.com.caelum.vraptor.environment;
import javax.servlet.http.HttpServletRequest;
import br.com.caelum.vraptor.InterceptionException;
import br.com.caelum.vraptor.Intercepts;
import br.com.caelum.vraptor.core.InterceptorStack;
import br.com.caelum.vraptor.interceptor.Interceptor;
import br.com.caelum.vraptor.r... | 213 |
github-java-corpus | 2,012 | package br.com.caelum.vraptor.environment;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.NoSuchElementException;
import java.util.Properties;
import javax.servlet.ServletContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import br.com.caelum.vraptor.ioc... | 467 |
github-java-corpus | 2,012 | package br.com.caelum.vraptor.environment;
import java.net.URL;
/**
* An environment has a set of key/value properties to be
* used within your application
*
* @author Alexandre Atoji
* @author Guilherme Silveira
*/
public interface Environment {
/**
* Returns the environment name
*
*/
String getName... | 222 |
github-java-corpus | 2,012 | package br.com.caelum.vraptor.environment;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.NoSuchElementException;
import java.util.Properties;
import javax.servlet.ServletContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import br.com.caelum.vraptor.ioc... | 198 |
github-java-corpus | 2,012 | package br.com.caelum.vraptor.environment;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.io.... | 441 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import org.collegelabs.library.bitmaploader.caches.DiskCache;
import org.collegelabs.library.bitmaploader.caches.SimpleLruDiskCache;
import org.collegel... | 547 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader;
import java.io.File;
import java.io.IOException;
import org.collegelabs.library.bitmaploader.BitmapLoader.SourceType;
import org.collegelabs.library.bitmaploader.caches.DiskCache;
import org.collegelabs.library.bitmaploader.caches.StrongBitmapCache;
import org.collegelabs... | 697 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.UnknownHostException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apac... | 875 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader;
public abstract class Constants {
public static final String TAG = "BitmapLoader";
public static final boolean DEBUG = false;
}
| 34 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader.caches;
import java.lang.ref.WeakReference;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
public class WeakBitmapCache {
//TODO create an interface so weakBitmapCache can still be used,
//wrap all calls to the LruCache
private LruCache<Strin... | 242 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader.caches;
import java.io.File;
import java.io.IOException;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;
import java.util.TreeSet;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.regex.Matcher;
... | 2,228 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader.caches;
import org.collegelabs.library.bitmaploader.Constants;
import android.app.ActivityManager;
import android.content.Context;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
import android.util.Log;
public class StrongBitmapCache extends LruC... | 320 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader.caches;
import java.io.File;
public interface DiskCache {
public enum Location{
Internal,
External
}
public DiskCache.Location getCacheLocation();
public File getCacheDirectory();
/**
* Maps filename to a File object.
*
* Returns a file even if it do... | 174 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader.views;
import java.lang.ref.WeakReference;
import org.collegelabs.library.bitmaploader.BitmapLoader;
import org.collegelabs.library.bitmaploader.BitmapLoader.SourceType;
import org.collegelabs.library.bitmaploader.Constants;
import org.collegelabs.library.bitmaploader.Requ... | 1,412 |
github-java-corpus | 2,012 | package org.collegelabs.library.bitmaploader;
import java.lang.ref.WeakReference;
import java.util.concurrent.Future;
import org.collegelabs.library.bitmaploader.views.AsyncImageView;
public class Request {
protected WeakReference<AsyncImageView> mImageView;
private String mUrl;
private Future<?> mFuture;
pub... | 206 |
github-java-corpus | 2,012 | package org.collegelabs.library.utils;
import java.io.File;
import java.io.IOException;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.os.Environment;
import android.os.StrictMode;
import android.util.Log;
/*
* A collection of random methods that may be ... | 974 |
github-java-corpus | 2,012 | package org.collegelabs.library.utils;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public abstract class StreamUtils {
public st... | 325 |
github-java-corpus | 2,012 | package com.reindeermobile.hunapknotifier.network;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import android.util.Log;
import java.i... | 290 |
github-java-corpus | 2,012 | package com.reindeermobile.hunapknotifier.network;
import com.reindeermobile.hunapknotifier.entities.HunApkInfo;
import org.apache.http.client.ClientProtocolException;
import android.os.Parcelable;
import android.util.Log;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
im... | 739 |
github-java-corpus | 2,012 |
package com.reindeermobile.hunapknotifier.network;
import com.reindeermobile.hunapknotifier.entities.HunApkInfo;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpPost;
import org.apache.ht... | 756 |
github-java-corpus | 2,012 | package com.reindeermobile.hunapknotifier.entities;
import com.reindeermobile.reindeerutils.db.BaseDbEntity;
import com.reindeermobile.reindeerutils.db.DbAdapterFactory.Column;
import com.reindeermobile.reindeerutils.db.DbAdapterFactory.NotNull;
import com.reindeermobile.reindeerutils.db.DbAdapterFactory.Table;
... | 1,058 |
github-java-corpus | 2,012 | package com.reindeermobile.hunapknotifier;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
public class JumpToLinkActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);... | 135 |
github-java-corpus | 2,012 | package com.reindeermobile.hunapknotifier.model;
import com.reindeermobile.hunapknotifier.entities.HunApkInfo;
import com.reindeermobile.reindeerutils.db.DbAdapterFactory;
import com.reindeermobile.reindeerutils.db.IDatabaseAdapter;
import com.reindeermobile.reindeerutils.mvp.AbstractController;
import com.reindeermob... | 723 |
github-java-corpus | 2,012 | package com.reindeermobile.hunapknotifier.model;
import com.reindeermobile.hunapknotifier.entities.HunApkInfo;
import com.reindeermobile.hunapknotifier.services.HunApkService;
import com.reindeermobile.reindeerutils.mvp.AbstractController;
import com.reindeermobile.reindeerutils.mvp.ListWrapper;
import com.reindeermob... | 708 |
github-java-corpus | 2,012 |
package com.reindeermobile.hunapknotifier;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.HandlerThread;
import... | 735 |
github-java-corpus | 2,012 | package com.reindeermobile.hunapknotifier.view.adapters;
import com.reindeermobile.hunapknotifier.R;
import com.reindeermobile.hunapknotifier.entities.HunApkInfo;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.Vi... | 717 |
github-java-corpus | 2,012 | package com.reindeermobile.hunapknotifier.services;
import com.reindeermobile.hunapknotifier.entities.HunApkInfo;
import com.reindeermobile.hunapknotifier.model.RemoteController;
import com.reindeermobile.hunapknotifier.network.HunApkClient;
import org.apache.http.client.ClientProtocolException;
import android.app.I... | 616 |
github-java-corpus | 2,012 | package com.reindeermobile.hunapknotifier;
import com.reindeermobile.hunapknotifier.entities.HunApkInfo;
import com.reindeermobile.hunapknotifier.view.adapters.HunApkListAdapter;
import com.reindeermobile.reindeerutils.mvp.ListWrapper;
import com.reindeermobile.reindeerutils.mvp.MessageObject;
import com.reindeermobil... | 1,422 |
github-java-corpus | 2,012 | /*******************************************************************************
* Copyright (c) 2012, Yahoo! Inc.
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the following
* conditions are met:
*
* *... | 905 |
github-java-corpus | 2,012 | /*******************************************************************************
* Copyright (c) 2012, Yahoo! Inc.
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the following
* conditions are met:
*
* *... | 958 |
github-java-corpus | 2,012 | /*******************************************************************************
* Copyright (c) 2012, Yahoo! Inc.
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the following
* conditions are met:
*
* *... | 656 |
github-java-corpus | 2,012 | /*******************************************************************************
* Copyright (c) 2012, Yahoo! Inc.
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the following
* conditions are met:
*
* *... | 1,055 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.