answer stringlengths 17 10.2M |
|---|
package team.creative.creativecore.common.util.math.box;
import com.mojang.math.Vector3d;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Vec3i;
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.shapes.Shapes;
import net.minecraft.world.phys.shapes.VoxelShape;
import team.creative.crea... |
package modules;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Scanner;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import extras.urlparsers.YoutubeParser;
import bot.Message;
impo... |
package org.openspaces.admin.internal.gsm;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.S... |
package org.openspaces.admin.internal.gsm;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.S... |
package net.idlesoft.android.apps.github.ui.activities;
import com.google.gson.reflect.TypeToken;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.view.MenuItem;
import com.github.eddieringle.android.libs.undergarment.widgets.DrawerGarment;
import net.idlesoft.android.apps.github.R;
import net.i... |
package net.java.sip.communicator.impl.gui.main.contactlist;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Point;
import java.awt.event.InputEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import java.aw... |
package org.ensembl.healthcheck.testcase.generic;
import org.ensembl.healthcheck.DatabaseRegistry;
import org.ensembl.healthcheck.DatabaseType;
import org.ensembl.healthcheck.testcase.MultiDatabaseTestCase;
/**
* Check that the assembly table is the same in all necessary databases.
*/
public class AssemblyTablesAcros... |
package org.jetbrains.plugins.scala.lift.runner;
import com.intellij.execution.junit.RuntimeConfigurationProducer;
import com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl;
import com.intellij.execution.Location;
import com.intellij.execution.RunnerAndConfigurationSettings;
import com.intellij.execution.Ru... |
package org.pentaho.di.job.entries.evalfilesmetrics;
import static org.pentaho.di.job.entry.validator.AbstractFileValidator.putVariableSpace;
import static org.pentaho.di.job.entry.validator.AndValidator.putValidators;
import static org.pentaho.di.job.entry.validator.JobEntryValidatorUtils.andValidator;
import static o... |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
package ibis.ipl.impl.registry.central;
import ibis.ipl.impl.IbisIdentifier;
import ibis.ipl.impl.Location;
import ibis.util.ThreadPool;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashSet;
import ja... |
package info.guardianproject.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.util.Log;
public class AssetUtil {
/** Read a properties file from /as... |
package info.tregmine.commands;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import static org.bukkit.ChatColor.*;
import info.tregmine.events.TregminePortalEvent;
import org.bukkit.Server;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
imp... |
package org.commcare.suite.model;
import org.javarosa.core.util.externalizable.DeserializationException;
import org.javarosa.core.util.externalizable.ExtUtil;
import org.javarosa.core.util.externalizable.ExtWrapList;
import org.javarosa.core.util.externalizable.Externalizable;
import org.javarosa.core.util.externalizab... |
package verification;
import javax.swing.*;
import verification.platu.project.Project;
import verification.platu.stategraph.StateGraph;
import verification.timed_state_exploration.StateExploration;
import biomodel.gui.PropertyList;
import biomodel.util.Utility;
import java.awt.*;
import java.awt.event.*;
import java.io... |
package team316;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.math.Fraction;
import battlecode.common.Direction;
import battlecode.common.GameActionException;
import battlecode.com... |
package net.minecraftforge.gradle.patcher.task;
import org.gradle.api.DefaultTask;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputDirectory;
import org.gradle.api.tasks.InputFile;
import org.gradle.api.tasks.Optional;
import org.gradle.api.tasks.OutputFile;
import org.gradle.api.tasks.TaskAction;
i... |
package net.hyperic.sigar.cmd;
import java.util.Date;
import java.text.SimpleDateFormat;
import net.hyperic.sigar.SigarException;
public class Who extends SigarCommandBase {
public Who(Shell shell) {
super(shell);
}
public Who() {
super();
}
public String getUsageShort() {
re... |
package bitronix.tm.twopc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import bitronix.tm.BitronixTransaction;
import bitronix.tm.utils.Decoder;
import bitronix.tm.twopc.executor.Executor;
import bitronix.tm.twopc.executor.Job;
import bitronix.tm.internal.*;
import javax.transaction.HeuristicMixedException... |
package arjdbc.jdbc;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.io.Reader;
import java.io.StringReader;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.mat... |
package net.bettyluke.util;
import java.io.FilterReader;
import java.io.IOException;
import java.io.Reader;
public class XML10FilterReader extends FilterReader {
/**
* Creates filter reader which skips invalid xml characters.
*
* @param in
* original reader
*/
public XML10Fil... |
package com.akiban.server.test.mt.mtatomics;
import com.akiban.ais.model.Index;
import com.akiban.ais.model.TableName;
import com.akiban.ais.model.UserTable;
import com.akiban.server.api.dml.scan.CursorId;
import com.akiban.server.api.dml.scan.NewRow;
import com.akiban.server.api.dml.scan.ScanAllRequest;
import com.aki... |
package arjdbc.jdbc;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.io.StringReader;
import java.math.BigInteger;
import java.sql.Array;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
impor... |
package javaUtilities;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import java.util.concurrent.locks.Condition;
import javaUtilities.UpgradableLo... |
package com.microsoft.sqlserver.jdbc.unit.statement;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.junit.jupiter.api.AfterAll;
import org.junit.... |
package com.windh.util.neo;
import java.lang.reflect.Constructor;
import org.neo4j.api.core.Node;
import org.neo4j.api.core.Transaction;
import org.neo4j.impl.core.NodeManager;
import org.neo4j.impl.core.NotFoundException;
public abstract class NodeWrapper
{
private Node node;
protected NodeWrapper( Node node )... |
package org.apache.xmlrpc;
import java.net.*;
import java.io.*;
import java.util.*;
import org.xml.sax.*;
/**
* A multithreaded, reusable XML-RPC client object. Use this if you need a full-grown
* HTTP client (e.g. for Proxy and Cookies support). If you don't need that, <code>XmlRpcClientLite</code>
* may work bette... |
package org.orbeon.oxf.util;
import org.apache.commons.pool.ObjectPool;
import org.apache.commons.pool.PoolableObjectFactory;
import org.apache.log4j.Logger;
import org.orbeon.oxf.cache.Cache;
import org.orbeon.oxf.cache.InternalCacheKey;
import org.orbeon.oxf.cache.ObjectCache;
import org.orbeon.oxf.common.OXFExceptio... |
package org.mitallast.queue.action.queue.enqueue;
import org.junit.Test;
import org.mitallast.queue.common.BaseQueueTest;
import org.mitallast.queue.queue.QueueMessage;
public class EnQueueActionTest extends BaseQueueTest {
@Test
public void testSingleThread() throws Exception {
createQueue();
/... |
package orbitSimulator;
import java.awt.Font;
import java.awt.List;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Array;
import java.util.ArrayList;
import java.util.EventObject;
import java.util.HashMap;
import java.util.Map;
import javax.swing.JLabel;
import javax.swing.JPan... |
package org.appwork.controlling;
import java.util.ArrayList;
import org.appwork.utils.logging.Log;
public class StateMachine {
private State initState;
private State currentState;
private StateEventsender eventSender;
private State finalState;
private ArrayList<State> path;
private StateMachineI... |
package org.biojava.spice.Panel;
// Swing dependencies
import javax.swing.JTable;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JDialog;
import javax.swing.JComponent;
import javax.swing.JScrollPane;
import javax.swing.JDesktopPane;
import javax.swing.JInternalFrame;
import javax.swing.table.... |
package org.ensembl.healthcheck;
import java.util.logging.Logger;
/**
* Typesafe "enum" to store information about the type of a database. Declared final since it only
* has private constructors.
*/
public final class DatabaseType {
/** A core database */
public static final DatabaseType CORE = new DatabaseT... |
package org.ensembl.healthcheck;
import java.util.*;
import java.util.logging.*;
import org.ensembl.healthcheck.testcase.*;
/**
* Subclass of TestRunner that lists all tests.
*/
public class ListAllTests extends TestRunner {
String groupToList = "";
boolean showGroups = false;
boolean showDesc = false;
/**
... |
package org.ensembl.healthcheck.util;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Types;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
... |
package org.exist.xquery.test;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import junit.framework.TestCase;
import org.exist.xmldb.XPathQueryServiceImpl;
import org.xmldb.api.DatabaseManager;
import org.xmldb.api.base.Collection;
import org.xmldb.api.base.Database;
import org.xmldb.api.base.Resource... |
// $Id: ConfiguratorFactory.java,v 1.8 2004/07/30 04:43:52 jiwils Exp $
package org.jgroups.conf;
import org.w3c.dom.Element;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jgroups.ChannelException;
import java.io.IOException;
import java.io.InputStream;
import java.io.F... |
// $Id: STATE_TRANSFER.java,v 1.19 2006/03/17 08:33:38 belaban Exp $
package org.jgroups.protocols;
import org.jgroups.Address;
import org.jgroups.Event;
import org.jgroups.Message;
import org.jgroups.View;
import org.jgroups.blocks.GroupRequest;
import org.jgroups.blocks.RequestCorrelator;
import org.jgroups.blocks.Re... |
// $Id: JoinRsp.java,v 1.8 2005/12/08 13:13:07 belaban Exp $
package org.jgroups.protocols.pbcast;
import org.jgroups.View;
import org.jgroups.Global;
import org.jgroups.util.Streamable;
import org.jgroups.util.Util;
import java.io.Serializable;
import java.io.DataOutputStream;
import java.io.IOException;
import java.i... |
/*
* $Id: NewContentCrawler.java,v 1.39 2004-09-27 23:46:45 dcfok Exp $
*/
package org.lockss.crawler;
import java.util.*;
import org.lockss.util.*;
import org.lockss.config.Configuration;
import org.lockss.daemon.*;
import org.lockss.plugin.*;
import org.lockss.state.*;
public class NewContentCrawler extends FollowL... |
package org.nutz.json.entity;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Locale;
import java.u... |
package battlecode.world;
import static battlecode.common.GameConstants.*;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.google.common.base.Predicate;
import com.google.common.col... |
// This file is part of JavaSMT,
// an API wrapper for a collection of SMT solvers:
package org.sosy_lab.java_smt.test;
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth.assertWithMessage;
import static com.google.common.truth.Truth.assert_;
import static com.google.com... |
package belight;
import com.amazon.speech.speechlet.Session;
/**
* Created 4/16/16. Description...
*
* @author Neo Li. <neo.siqi.li@hotmail.com>
*/
public class ResponseGenerator {
public static String getInitialPrompt(Session session) {
return "I don't know. What did you have so far?";
}
public... |
package pathfinding.astar.arcs;
import java.awt.Graphics;
import java.util.ArrayList;
import java.util.List;
import config.Config;
import config.ConfigInfo;
import config.DynamicConfigurable;
import container.Service;
import container.dependances.HighPFClass;
import container.dependances.LowPFClass;
import graphic.Fene... |
package br.com.dbsoft.core;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
public final class DBSSDK {
public static final String DOMAIN = "br.com.dbsoft";
public static final int VERDADEIRO = -1;
public static final int FALSO = 0;
public static final... |
package com.emarsys.escher;
import com.emarsys.escher.util.DateTime;
import org.apache.http.client.utils.URIBuilder;
import javax.xml.bind.DatatypeConverter;
import java.net.InetSocketAddress;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Arrays;
import java.util.Date;
import java.util.List;... |
package com.gildedrose;
class GildedRose {
private static final int QUALITY_FLOOR = 0;
private static final int QUALITY_CEILING = 50;
private static final String AGED_BRIE = "Aged Brie";
private static final String BACKSTAGE_PASSES_TO_A_TAFKAL80ETC_CONCERT = "Backstage passes to a TAFKAL80ETC concert";
privat... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platforms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platforms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
// This program is free software: you can redistribute it and/or modify
// published by the Free Software Foundation, either version 3 of the
// T... |
package com.senac.petshop.app;
import com.senac.petshop.bean.Animal;
import com.senac.petshop.bean.CorPredominante;
import com.senac.petshop.bean.Dono;
import com.senac.petshop.bean.TipoAnimal;
import com.senac.petshop.infra.BancoDados;
import com.senac.petshop.infra.Propriedades;
import com.senac.petshop.rn.AnimalRN;
... |
package com.timepath.io;
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.StandardCharsets;
import java.util.logging.Logger;
public class BitBuffer {
private static final Logger LOG = Logger.getLogger(BitBuffer.class.getName());
/** Total numbe... |
package com.tomgibara.perfect;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import com.tomgibara.bits.BitStore;
import com.tomgibara.bits.BitStore.BitMatches;
import com.tomgibara.bits.BitStore.Positions;
import com.tomgibara.bits.BitVector;
import com.tomgib... |
package cyoastudio.gui;
import java.io.*;
import java.nio.charset.Charset;
import java.nio.file.*;
import java.util.Optional;
import java.util.stream.Collectors;
import org.apache.commons.io.FileUtils;
import org.controlsfx.dialog.ExceptionDialog;
import org.slf4j.*;
import org.zeroturnaround.zip.ZipUtil;
import cyoast... |
package net.imagej;
import io.scif.config.SCIFIOConfig;
import java.io.IOException;
import java.util.List;
import net.imagej.display.ImageDisplay;
import net.imglib2.img.ImgFactory;
import net.imglib2.meta.AxisType;
import net.imglib2.meta.ImgPlus;
import net.imglib2.type.NativeType;
import net.imglib2.type.numeric.Rea... |
package nl.vpro.poel.domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Date;
/**
* A match for users to predict the outcome of. Matches can have limited periods in which they can be predicted.
*/
@Entity
@Data
@EqualsAndHashCode(... |
package org.jsoup.select;
import org.jsoup.helper.Validate;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.FormElement;
import org.jsoup.nodes.Node;
import java.util.*;
/**
A list of {@link Element}s, with methods that act on every element in the list.
<p/>
To get an {@code Elements} object, use the {@link E... |
package org.jtrfp.trcl.tools;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import org.jtrfp.trcl.coll.BulkRemovable;
import org.jtrfp.trcl.coll.Repopulatable;
import com.ochafik.util.Adapter;
public class... |
package org.neo4j.rdf.model;
public interface Value
{
} |
package org.researchgraph.app;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import javax.xml.transform.Source;
import ja... |
package redis.clients.jedis;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import redis.clients.jedis.BinaryClient.LIST_POSITION;
import redis.clients.util.SafeEncoder;
public class Jedi... |
package us.corenetwork.limbo;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
public class Logs
{
public static void debug(String text)
{
if (Settings.DEBUG.bool())
sendLog("&f[&3Limbo&f]&f "+text);
}
public static void info(String text)
{
sendLog("&f[&fLimbo&f]&f ... |
package mondrian.xmla;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import mondrian.olap.*;
import mondrian.rolap.RolapC... |
package org.testng;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Simple ITestListener adapter.
*
* @author Cedric Beust, Aug 6, 2004
*
*/
public class TestListenerAdapter implements ITestListener {
private List<ITestNGMethod> m_allTestMethods = Collections.synchronizedLi... |
package org.tigris.subversion.javahl;
/**
* This class describes one property managed by Subversion.
*/
public class PropertyData
{
/**
* the name of the property
*/
private String name;
/**
* the string value of the property
*/
private String value;
/**
* the byte array v... |
package com.uber.tchannel.schemes;
import io.netty.buffer.ByteBuf;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
public class JSONSerializerTest {
private Serializer.SerializerInterface serializer;
@org.junit.Before
public void setUp() th... |
package com.mx3;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ListVi... |
package controller;
import model.SimulationFire;
import model.SimulationLife;
import model.SimulationSegregation;
import view.SimulationScreen;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.s... |
package com.dmdirc.ui.swing.dialogs.actionsmanager;
import com.dmdirc.actions.ActionManager;
import com.dmdirc.config.IdentityManager;
import com.dmdirc.harness.ui.ButtonTextFinder;
import com.dmdirc.harness.ui.ClassFinder;
import com.dmdirc.ui.swing.components.StandardInputDialog;
import java.lang.reflect.InvocationTa... |
package org.codehaus.groovy.grails.commons;
import java.net.URL;
import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource;
import junit.framework.TestCase;
public class GrailsResourceUtilsTests extends TestCase {
private static final String TEST_URL = "file:///test/grails/app/grai... |
package ch.hsr.ifs.pystructure.tests.typeinference;
import java.io.File;
import junit.framework.Assert;
import junit.framework.AssertionFailedError;
import org.python.pydev.parser.jython.ast.Expr;
import ch.hsr.ifs.pystructure.typeinference.basetype.IType;
import ch.hsr.ifs.pystructure.typeinference.inferencer.PythonTy... |
package ca.eqv.maven.plugins.tsc.mojo;
import org.apache.commons.io.FileUtils;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.BuildPluginManager;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotation... |
package twitter4j.examples.oauth;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import twitter4j.http.AccessToken;
import twitter4j.http.RequestToken;
import java.io.*;
import java.util.Properties;
/**
* @author Yusuke Yamamoto - yusuke at mac.com
* @since Twitter4J 2.1... |
// AbstractSwingUI.java
package imagej.ui.swing;
import imagej.ImageJ;
import imagej.event.EventService;
import imagej.event.EventSubscriber;
import imagej.ext.display.Display;
import imagej.ext.display.DisplayPanel;
import imagej.ext.display.event.DisplayCreatedEvent;
import imagej.ext.display.event.DisplayDeletedEven... |
import controls.sunburst.*;
import helpers.ISourceStrategy;
import helpers.SourceStrategyMockup;
import helpers.SourceStrategySQL;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Slider;
import javafx.scene.control.... |
// read a zip archive
package test.special;
import java.io.*;
import java.util.Set;
import com.sun.tools.javac.zip.ZipFileIndex;
public class ZipRead {
// Edit this to point to rt.jar
public static final String RT_PATH = "/Applicgggations/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/ja... |
package JavaProject;
import epic.sequences.SemiCRF;
import epic.sequences.SemiConllNerPipeline;
import org.apache.commons.lang3.math.NumberUtils;
import java.io.*;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class InfoDensTester {
public s... |
import javax.swing.*;
import java.awt.*;
import javax.swing.JOptionPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.Scanner;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.P... |
package org.wings;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
import j... |
import java.util.ArrayList;
/**
* @author lcartercondon
*
*/
public class DayTwo {
/**
* @param none
* Day two of class
* Talking about basic types, casting, basic operators
*/
public static void main(String[] args) {
Integer change = 99;
ArrayList<Integer> coins = new Arr... |
package mmlib4j.images.impl;
import java.util.LinkedList;
import mmlib4j.images.ColorImage;
import mmlib4j.images.GrayScaleImage;
import mmlib4j.segmentation.Labeling;
import mmlib4j.utils.AdjacencyRelation;
import mmlib4j.utils.ImageUtils;
/**
* MMLib4J - Mathematical Morphology Library for Java
* @author Wonder Ale... |
package net.kevxu.senselib;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.util.Log;
/**
* Class for providing orie... |
package org.exist.storage;
import org.apache.log4j.Logger;
import org.exist.management.Agent;
import org.exist.management.AgentFactory;
import org.exist.storage.cache.Cache;
import org.exist.util.DatabaseConfigurationException;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;
/**
* Cac... |
package org.exist.xquery.util;
import org.exist.Namespaces;
import org.exist.xquery.ErrorCodes;
import org.exist.xquery.Expression;
import org.exist.xquery.XPathException;
import org.exist.xquery.functions.fn.FnModule;
import org.exist.xquery.value.NodeValue;
import javax.xml.stream.XMLStreamException;
import javax.xml... |
package org.htmlcleaner;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import java.io.*;
impo... |
package ro.kuberam.xcrypt;
import java.util.List;
import java.util.Map;
import org.exist.xquery.AbstractInternalModule;
import org.exist.xquery.FunctionDef;
import java.util.List;
import java.util.Map;
import org.exist.xquery.XPathException;
/**
* Cryptographic module for eXist.
*
* @author Claudius Teodorescu (clau... |
import gui.CustomProgressVBox;
import javafx.application.Platform;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.TextArea;
import javafx.scene.paint.Color;
public class RocketRunnable implements Runnable {
/**
* holds the time difference between every ca... |
package org.jpos.ee.pm.struts;
import java.util.HashMap;
import java.util.Map;
import org.jpos.ee.pm.core.EntityContainer;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.util.MessageResources;
import org.jpos.ee.pm.core.Entity;
import org.jpos.ee.pm.core.EntityFilter;
import org.jpos.ee.pm.core.... |
/*
* $Id: GoslingCrawlerImpl.java,v 1.23 2003-05-30 01:49:02 aalto Exp $
*/
package org.lockss.crawler;
import java.io.*;
import java.util.*;
import java.net.URL;
import java.net.MalformedURLException;
import org.lockss.daemon.*;
import org.lockss.util.*;
import org.lockss.plugin.*;
/**
* The crawler.
*
* @author ... |
package org.obd.ws.application;
import org.restlet.Application;
import org.restlet.Context;
import org.restlet.Restlet;
import org.restlet.Router;
public class OBDApplication extends Application {
public OBDApplication(Context context){
super(context);
}
@Override
public Restlet createRoot() {
... |
package edu.umd.cs.findbugs.gui;
import java.io.File;
import java.util.*;
import javax.swing.tree.DefaultTreeModel;
import edu.umd.cs.findbugs.*;
import org.apache.bcel.Repository;
import org.apache.bcel.util.ClassPath;
import org.apache.bcel.util.SyntheticRepository;
/**
* Representation of a run of the FindBugs anal... |
package edu.umd.cs.findbugs.workflow;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Sorte... |
package org.pentaho.di.core.database;
import java.io.StringReader;
import java.sql.BatchUpdateException;
import java.sql.Blob;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ParameterMetaData;
import java.sql.PreparedStatem... |
package edu.umd.cs.findbugs.gui2;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import org.dom4j.DocumentException;
import org.xml.sax.SAXException;
impo... |
// Totally untested, just some initla code to get started.
package guessing_game;
public class Player {
private String name;
private int lowGuess;
private int highGuess;
private int lastGuess;
private int numGuesses;
public Player(String name){
this.name = name;
this.lowGuess = 0... |
package test;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import risk.RiskBoard;
import risk.RiskBoard.Colors;
import risk.Territory;
public class BoardTest {
RiskBoard board;
@Before
public voi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.