answer stringlengths 17 10.2M |
|---|
package com.github.tonivade.resp;
import org.junit.jupiter.api.extension.AfterAllCallback;
import org.junit.jupiter.api.extension.BeforeAllCallback;
import org.junit.jupiter.api.extension.ExtensionContext;
public class RespServerExtension implements BeforeAllCallback, AfterAllCallback {
private final RespServer serve... |
package com.jonnyware.timetracker;
import org.joda.time.DateTime;
import org.joda.time.Interval;
import org.joda.time.LocalDate;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class DurationParserTest {
private final LocalDate day = new LocalDate(2014, 1, 1);
@Test
public void ho... |
package edu.asu.zoophy.rest.index;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import edu... |
package jenkins.plugins.git;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.Action;
import hudson.model.Actionable;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.plugins.git.UserRemoteConfig;
import hudson.plugins.git.extensions.impl.IgnoreNotifyCommit;
import hudson.scm.... |
package net.masterthought.cucumber;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import java.io.File;
import java.util.ArrayList;
import... |
package ol.source;
import jsinterop.annotations.JsType;
import ol.Attribution;
import ol.proj.Projection;
/**
* Abstract base class; normally only used for creating subclasses and not
* instantiated in apps. Base class for {@link ol.layer.Layer} sources.
*
* A generic `change` event is triggered when the state of t... |
package ai.h2o.automl;
import ai.h2o.automl.UserFeedbackEvent.Stage;
import hex.Model;
import hex.ModelBuilder;
import hex.ScoreKeeper.StoppingMetric;
import hex.ensemble.StackedEnsembleModel;
import hex.ensemble.StackedEnsembleModel.StackedEnsembleParameters;
import hex.deeplearning.DeepLearningModel.DeepLearningParam... |
package cc.hughes.droidchatty;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
i... |
// modification, are permitted provided that the following conditions are met:
// and/or other materials provided with the distribution.
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// ANY DIRECT, INDIRECT, ... |
package ch.unizh.ini.jaer.projects.npp;
import com.jogamp.opengl.GL2;
import com.jogamp.opengl.GLAutoDrawable;
import eu.visualize.ini.convnet.DeepLearnCnnNetwork_HJ;
import java.awt.Dimension;
import java.util.Arrays;
import java.util.logging.Logger;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import java... |
package ch.unizh.ini.jaer.projects.minliu;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;
import java.beans.PropertyChangeEvent;
import java.util.Arrays;
import java.util.O... |
package ikube.deploy;
import ikube.deploy.action.IAction;
import ikube.deploy.model.Server;
import ikube.toolkit.FileUtilities;
import ikube.toolkit.Logging;
import ikube.toolkit.ThreadUtilities;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concur... |
package com.xiaopo.flying.sticker;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PointF;
import android.graphics.RectF;
import android.graphics.drawable... |
package me.lucko.luckperms.common.utils;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.google.common.cache.RemovalListener;
import com.google.common.collect.ImmutableMap;
import com.google.common.util.concurrent.Futures;
... |
package com.akjava.gwt.modelweight.client;
import java.io.IOException;
import java.util.List;
import javax.annotation.Nullable;
import com.akjava.gwt.html5.client.download.HTML5Download;
import com.akjava.gwt.html5.client.file.File;
import com.akjava.gwt.html5.client.file.FileUploadForm;
import com.akjava.gwt.html5.cli... |
package net.digitalid.utility.storage;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import net.digitalid.utility.annotations.generics.Specifiable;
import net.digitalid.utility.annotations.method.CallSuper;
import net.digitalid.utility.annotations.method.Pure;
import net.digitalid.utility.annotatio... |
package com.dattasmoon.pebble.plugin;
import java.io.File;
import java.io.IOException;
import java.util.*;
import java.util.regex.Pattern;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.accessibilityservice.AccessibilityService;
import android.accessibilityservice.A... |
package com.akjava.gwt.lib.client;
/*
* simple data
*/
public class HeaderAndValue{
private int id;
private String header;
private String data;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getHeader() {
return heade... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.carlosgb.poi.excel.utils;
import com.carlosgb.poi.excel.elements.DataPoiRow;
import com.carlosgb.poi.excel.elements.Header;
import java.io.*;
import java.math.BigDecimal;
import java.util.ArrayList;
import ja... |
package com.ecyrd.jspwiki.modules;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.URL;
import org.jdom.Element;
import com.ecyrd.jspwiki.FileUtil;
/**
* A WikiModule describes whatever JSPWiki plugin there is: it can be a plugin,
* an editor, a ... |
package com.esotericsoftware.clippy;
import java.awt.Color;
import java.awt.EventQueue;
import java.util.Timer;
import java.util.TimerTask;
import com.esotericsoftware.clippy.Win.LASTINPUTINFO;
import com.esotericsoftware.clippy.util.Util;
public class BreakWarning {
final Clippy clippy = Clippy.instance;
final... |
package loci.tests.testng;
import java.io.File;
import loci.common.Location;
import loci.formats.ChannelFiller;
import loci.formats.ChannelSeparator;
import loci.formats.FormatTools;
import loci.formats.IFormatReader;
import loci.formats.ImageReader;
import loci.formats.MinMaxCalculator;
import loci.formats.ReaderWrapp... |
package com.github.igotyou.FactoryMod.Factorys;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Location;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import com.github.igotyou.FactoryMod.properties.CompactorProperties;
imp... |
package com.yahoo.search.dispatch.rpc;
import ai.vespa.searchlib.searchprotocol.protobuf.SearchProtocol;
import com.google.protobuf.InvalidProtocolBufferException;
import com.yahoo.compress.CompressionType;
import com.yahoo.compress.Compressor;
import com.yahoo.prelude.Pong;
import com.yahoo.search.cluster.ClusterMonit... |
package com.lid.intellij.translateme.yandex;
import org.jetbrains.annotations.Nullable;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.util.List;
public class YandexClient {
... |
package com.opengamma.engine.value;
import com.opengamma.livedata.normalization.MarketDataRequirementNames;
/**
* A set of common names used to refer to particular computed values. These should be used by
* {@link FunctionDefinition}s to state their required inputs and their potential outputs, in order that a common ... |
package imagej.data.autoscale;
import net.imglib2.IterableInterval;
import net.imglib2.algorithm.stats.ComputeMinMax;
import net.imglib2.ops.util.Tuple2;
import net.imglib2.type.numeric.RealType;
import org.scijava.plugin.Plugin;
/**
* Computes he data range from the entire set of values in an
* {@link IterableInterv... |
package com.maddyhome.idea.vim.group;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.editor.*;
import com.intellij.openapi.editor.event.*;
import com.intellij.openapi.editor.ex.DocumentEx;
import com.intellij.openapi.editor.e... |
package com.simplenote.android.persistence;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.provider.BaseColumns;
import android.util.Log;
import com.simpl... |
package com.maddyhome.idea.vim.group;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.*;
import com.intellij.openapi.editor.event.*;
import com.intellij.openapi.fileEditor.... |
package com.syntacticsugar.vooga.social;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.Collection;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.syntact... |
package com.robrua.orianna.type.core.match;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import com.robrua.orianna.api.core.RiotAPI;
import com.robrua.orianna.type.core.OriannaObject;
import com.robrua.orianna.type.core.common.Side;
import com.robrua.orianna.typ... |
package com.tilioteo.hypothesis.common;
import java.util.LinkedHashSet;
/**
* @author Kamil Morong - Hypothesis
*
*/
@SuppressWarnings("serial")
public class StringSet extends LinkedHashSet<String> {
public StringSet() {
super();
}
public StringSet(StringSet stringSet, String... strings) {
... |
package alluxio.master.file.meta.options;
import alluxio.AlluxioURI;
import alluxio.master.file.options.MountOptions;
import com.google.common.base.Preconditions;
import javax.annotation.concurrent.ThreadSafe;
/**
* This class holds information about a mount point.
*/
@ThreadSafe
public final class MountInfo {
priv... |
package de.unisb.cs.depend.ccs_sem.semantics.expressions;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import de.unisb.cs.depend.ccs_sem.exceptions.ParseExc... |
package hex.kmeans;
import hex.ModelMojoWriter;
import java.io.IOException;
public class KMeansMojoWriter extends ModelMojoWriter<KMeansModel, KMeansModel.KMeansParameters, KMeansModel.KMeansOutput> {
@SuppressWarnings("unused") // Called through reflection in ModelBuildersHandler
public KMeansMojoWriter() {}
pu... |
package algorithm;
import java.io.IOException;
import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
import common.Config;
import languages.*;
public class HangmanSolver {
private static Language langOld;
private static TabFile wiktDatabase;
private static TabFile cldrDatabase;
public st... |
package is2011.reproductor.vista;
import java.awt.BorderLayout;
import java.awt.Choice;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Iterator;
import is20... |
package net.teamio.taam.rendering;
import java.util.Random;
import org.lwjgl.opengl.GL11;
import com.google.common.base.Function;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.GlStateManager;
i... |
package org.musetest.core.values;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*;
import com.sun.javafx.collections.*;
import org.musetest.builtins.value.*;
import org.musetest.core.*;
import org.musetest.core.project.*;
import org.musetest.core.resource.*;
import org.musetest.core.v... |
package it.crs4.pydoop.mapreduce.pipes;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLClassLoader;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.StringTokenizer;
import org.apache.commons.logg... |
package org.podcastpedia.core.searching;
import org.apache.log4j.Logger;
import org.podcastpedia.common.domain.Episode;
import org.podcastpedia.common.domain.Podcast;
import org.podcastpedia.common.types.OrderByOption;
import org.podcastpedia.common.types.SearchModeType;
import org.springframework.beans.factory.annotat... |
package de.gurkenlabs.litiengine.environment;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.EnumMap;
import java.util.List;
imp... |
package dr.app.beauti.treespanel;
import dr.app.beauti.options.PartitionTreeModel;
import dr.app.beauti.options.PartitionTreePrior;
import dr.app.beauti.types.PopulationSizeModelType;
import dr.app.beauti.types.TreePriorParameterizationType;
import dr.app.beauti.types.TreePriorType;
import dr.app.beauti.util.PanelUtils... |
package edu.isi.pegasus.planner.common;
import edu.isi.pegasus.planner.classes.NameValue;
import edu.isi.pegasus.planner.catalog.transformation.TCMode;
import edu.isi.pegasus.common.util.CommonProperties;
import edu.isi.pegasus.common.util.Boolean;
import edu.isi.pegasus.planner.catalog.classes.Profiles;
import edu.isi... |
package edu.washington.escience.myriad.table;
import java.io.Serializable;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.tuple.Pair;
import edu.washington.escience.myriad.Predicate;
import edu.washington.escience.myriad.Schema;
import edu.w... |
package org.apache.log4j.chainsaw;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.MDC;
import org.apache.log4j.NDC;
import org.apache.log4j.helpers.Constants;
import org.apache.log4j.plugins.Receiver;
import org.apache.log4j.spi.LoggingEvent;
/**
* Class designed to stress, and/... |
package edu.wustl.common.querysuite.queryobject;
/**
* Enum of the possible types of {@link ITerm} and related utility methods.
*
* @author srinath_k
* @see ITerm
*/
public enum TermType {
// TODO String?
// TODO Boolean ??
Date, Timestamp, YMInterval, DSInterval, Numeric, Invalid;
/**
* Retur... |
package org.apache.poi.sl.draw;
import java.awt.RenderingHints;
public class DrawableHint extends RenderingHints.Key {
public DrawableHint(int id) {
super(id);
}
public boolean isCompatibleValue(Object val) {
return true;
}
public String toString() {
switch (intKey()) {
... |
package ge.edu.freeuni.sdp.snake.presenter;
import java.io.File;
import ge.edu.freeuni.sdp.snake.model.BeingKind;
import ge.edu.freeuni.sdp.snake.model.Caretaker;
import ge.edu.freeuni.sdp.snake.model.Direction;
import ge.edu.freeuni.sdp.snake.model.GameFacade;
import ge.edu.freeuni.sdp.snake.model.Point;
public class ... |
package org.apache.velocity.runtime;
import java.io.InputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.net.MalformedURLException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.Hashtable;
import java.u... |
package tiffit.talecraft.util;
import java.util.List;
import java.util.Map;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockStoneBrick;
import net.minecraft.block.BlockStoneBrick.EnumType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockSta... |
package gov.nih.nci.rembrandt.web.ajax;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import org.genepattern.webservice.AnalysisWebServiceProxy;
import org.genepattern.webservice.JobInfo;
import org.genepattern.webservice.WebServiceException;
import uk.ltd.getahead.dwr.ExecutionContext;
import ... |
package org.apache.jorphan.test;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.Iterator;
import java.util.Properties;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
i... |
package jsettlers.main.android;
import go.graphics.android.AndroidSoundPlayer;
import go.graphics.android.GOSurfaceView;
import go.graphics.area.Area;
import go.graphics.region.Region;
import java.io.File;
import jsettlers.common.map.IGraphicsGrid;
import jsettlers.common.resources.ResourceManager;
import jsettlers.com... |
package org.neo4j.index.impl.lucene;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.index.Index;
import org.neo4j.graphdb.index.IndexProvider;
import org.neo4j.graphdb.index.Relationship... |
package uk.ac.ebi.eva.server.ws;
import com.jayway.restassured.RestAssured;
import com.jayway.restassured.path.json.JsonPath;
import com.jayway.restassured.response.Response;
import org.junit.BeforeClass;
import org.junit.Test;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.... |
package com.eduworks.cruncher.net;
import com.eduworks.lang.threading.EwThreading;
import com.eduworks.lang.util.EwJson;
import com.eduworks.resolver.Context;
import com.eduworks.resolver.Cruncher;
import com.eduworks.resolver.exception.SoftException;
import com.eduworks.util.io.InMemoryFile;
import org.apache.http.Htt... |
package com.mercadopago.android.px.utils;
import android.support.annotation.NonNull;
import android.support.v4.util.Pair;
import com.mercadopago.SamplePaymentProcessorNoView;
import com.mercadopago.android.px.configuration.AdvancedConfiguration;
import com.mercadopago.android.px.configuration.DiscountConfiguration;
imp... |
package io.rapidpro.sdk.chat;
import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.support.annotation.DrawableRes;
import android.support.v7.widget.RecyclerView;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.util.TypedValue;
imp... |
package org.opennms.netmgt.trapd;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlE... |
package edu.umd.cs.findbugs.classfile.impl;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Enumeration;
import java.util.NoSuchElementException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFi... |
package edu.umd.cs.findbugs.detect;
import java.util.HashSet;
import java.util.Set;
import org.apache.bcel.classfile.Code;
import edu.umd.cs.findbugs.BugInstance;
import edu.umd.cs.findbugs.BugReporter;
import edu.umd.cs.findbugs.LocalVariableAnnotation;
import edu.umd.cs.findbugs.OpcodeStack;
import edu.umd.cs.findbug... |
package com.almasb.fxgl.core.reflect;
import com.almasb.fxgl.core.collection.Array;
import com.almasb.fxgl.core.util.Function;
import com.almasb.fxgl.core.util.Optional;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.u... |
package net.sourceforge.texlipse.builder;
import java.util.Stack;
import java.util.StringTokenizer;
import net.sourceforge.texlipse.properties.TexlipseProperties;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.... |
package org.jasig.portal.layout.alm;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Set;
import java.util.HashSet;
import java.util.Vector;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jasig.portal.PortalException;
import org.jasig.portal.la... |
package us.kbase.typedobj.test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.P... |
package slavetest;
import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.Map;
import org.neo4j.graphdb.Direction;
import org.neo4j.graphdb.DynamicRelationshipType;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j... |
package com.growthbeat.analytics;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import android.content.Context;
import android.os.Handler;
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
import com.goo... |
package matt.lyoko;
import java.util.Random;
import matt.lyoko.world.*;
import matt.lyoko.world.portals.*;
import matt.lyoko.blocks.*;
import matt.lyoko.client.GuiHandler;
import matt.lyoko.items.*;
import matt.lyoko.entities.*;
import net.minecraftforge.common.*;
import net.minecraftforge.oredict.OreDictionary;
import... |
package com.exedio.cope;
public class TransactionOnlyTest extends AbstractLibTest
{
public TransactionOnlyTest()
{
super( Main.cacheIsolationModel );
}
public void testNesting()
{
assertEquals( true, model.hasCurrentTransaction() );
Transaction tx = model.getCurrentTransactio... |
package cloudatlas;
import java.util.ArrayList;
import java.util.List;
import cloudatlas.ByteSerializator;
import pl.edu.mimuw.cloudatlas.serialization.Serializator;
import test.SerializatorTest;
public class ByteSerializatorTest extends SerializatorTest<Byte> {
public List<Byte> getObjects() {
List<Byte> r... |
package de.klimek.scanner;
import android.graphics.ImageFormat;
import android.graphics.Rect;
import android.hardware.Camera;
import android.hardware.Camera.Parameters;
import android.os.AsyncTask;
import android.util.Log;
import java.util.Timer;
import java.util.TimerTask;
class Decoder implements Camera.PreviewCallba... |
package com.ecyrd.jspwiki.rss;
import java.io.IOException;
import java.io.StringWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import javax.servlet.ServletContext;
import javax.xml.transform... |
package com.example.beer.dao;
import java.util.Collection;
import javax.ejb.Singleton;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import com.example.beer.model.Project;
import com.example.beer.mode... |
package com.example.roulette;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.provider.ContactsContract;
import android.telephony.SmsManager;
import java.util.ArrayList;
import java.util.Locale;
public class Punishment {
private ContentResolver ... |
/*
* Floern, dev@floern.com, 2015, MIT Licence
*/
package com.floern.android.app;
import java.util.List;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.EditText;
import android.widget.ImageView;
import android.widge... |
package com.freiheit.gnupg;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
/**
Start here, because for all operations, you first need to create a
GnuPGContext. Use one context object for every single thread or
(really) take care about synchronizing access... |
package com.fsck.k9.mail;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import com.fsck.k9.Account;
/**
* This is an abstraction to get rid of the store- and transport-specific URIs.
*
* <p>
* Right now it's only used for settings import/export. But the goal is to get rid of
* store... |
package com.gh4a;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.view.ViewGroup;
import com.actionbarsherlock.app.Act... |
package com.interview.string;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.PriorityQueue;
/**
* Given a list of lists. Each element in the list is sorted. Sort the
* entire list.
* Test cases
* One or more lists are empty
* All elements in one list are smaller than a... |
package com.opencms.workplace;
import com.opencms.file.*;
import com.opencms.core.*;
import com.opencms.util.*;
import com.opencms.template.*;
import java.util.*;
import javax.servlet.http.*;
public class CmsWpMain extends CmsWorkplaceDefault {
private Vector m_viewNames = null;
private Vector m_viewLinks = nul... |
package com.redomar.game.entities;
import javax.swing.JOptionPane;
import com.redomar.game.Game;
import com.redomar.game.gfx.Colours;
import com.redomar.game.gfx.Screen;
import com.redomar.game.level.LevelHandler;
public class Dummy extends Mob{
private int colour, shirtCol, faceCol; //= Colours.get(-1, 111, 240, 3... |
package com.renomad.xenos;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.renomad.xenos.Database_access;
import com.renomad.xenos.Request;
import com.renomad.xenos.Others_Request;
import java.sql.SQLException;
import java.sql.ResultSet;
import java.sql.Connection;
import java.sql... |
package org.jfree.chart.renderer.xy.junit;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.f... |
package com.vatedroid;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
public class VateDroidActivity extends Activity
{
// static initializer loads native library
static {
System.loadLibrary("vatedroid");
}
// native instance method declaration
private native... |
package hu.pazsitz.pacuse.pageObjects;
import hu.pazsitz.pacuse.pages.AbstractPage;
import hu.pazsitz.pacuse.pages.AbstractWidget;
import org.apache.log4j.Logger;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import com.google.common... |
package io.intercom.api;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.Maps;
import java.net.URI;
import jav... |
package org.intermine.api.mines;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Represents an instance of an InterMine. Contains generic data structures to populate with
* queryable values.
*
* @author Julie Sullivan
*/
public class... |
package org.intermine.util;
import java.net.URLEncoder;
import java.text.MessageFormat;
import java.util.Map;
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.m... |
package io.trivium.glue.binding.http;
import io.trivium.Central;
import io.trivium.anystore.ObjectRef;
import io.trivium.anystore.statics.ContentTypes;
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.nio.protocol.BasicAsyncRequestCons... |
// $Id: EditorApp.java 19661 2005-03-09 02:40:29Z andrzej $
package com.threerings.stage.tools.editor;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.DisplayMode;
import java.awt.EventQueue;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import javax.swing.JLabel;
import ... |
package fr.paris.lutece.portal.service.init;
/**
* this class provides informations about application version
*/
public final class AppInfo
{
/** Defines the current version of the application */
private static final String APP_VERSION = "5.1.0-RC-03";
/**
* Creates a new AppInfo object.
*/
... |
package org.apache.velocity.runtime;
import java.io.InputStream;
import java.io.File;
import java.io.IOException;
import java.io.Reader;
import java.util.Map;
import java.util.Hashtable;
import java.util.Properties;
import java.util.Enumeration;
import java.util.HashMap;
import org.apache.velocity.Template;
import org.... |
package complex;
import complexlib.ComplexTestCase;
import java.io.*;
import java.awt.Rectangle;
import java.awt.Insets;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.awt.image.PixelGrabber;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
im... |
package org.jivesoftware.spark.util;
import java.awt.Desktop;
import java.net.URI;
public class BrowserLauncher {
public static void openURL(String url) throws Exception {
if (url.startsWith("http") ||
url.startsWith("ftp")) {
Desktop.getDesktop().browse(new URI(url));
}
... |
package org.orbeon.oxf.xforms;
import org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity;
import org.apache.log4j.Logger;
import org.dom4j.*;
import org.dom4j.io.DocumentSource;
import org.orbeon.oxf.common.ValidationException;
import org.orbeon.oxf.pipeline.api.ExternalContext;
import org.orbeon.ox... |
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* the project. */
package org.frc1675;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler... |
// $Id: Message.java,v 1.42 2005/11/07 06:47:00 belaban Exp $
package org.jgroups;
import EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jgroups.conf.ClassConfigurator;
import org.jgroups.stack.IpAddress;
import o... |
package au.id.chenery.mapyrus;
import java.io.*;
import java.net.URL;
import java.net.MalformedURLException;
/**
* Main class for Mapyrus, a program for generating plots of points, lines and polygons
* to various output formats. Runs as either a GUI, a server or interpreter for files
* given on the command line.
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.