answer stringlengths 17 10.2M |
|---|
package gorden.album.utils;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.MediaStore.Images.Media;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.CursorLoader;
import android.support.v4.content.Loader;
import android.support.v7.app.AppCompatActivity;
i... |
package edu.vu.isis.ammo.core.network;
import java.io.BufferedInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.NetworkInterface;
import java.net.Socket;
import java.net.SocketException;
i... |
package com.RSG.AndroidPlugin;
import android.os.Environment;
import android.os.BatteryManager;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.Context;
public class AndroidPlugin
{
// Needed to get the battery level.
private Context context;
public AndroidPlugin(C... |
package com.gravity.root;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;
/**
*
* @author dxiao
*/
public class PlatformerGame extends StateBasedGame {
//@formatter:off
private LevelInfo... |
package com.kaltura.playersdk;
import java.util.Timer;
import java.util.TimerTask;
import android.content.Context;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Handler;
import android.widget.VideoView;
import com.kaltura.playersdk.events.OnPlayerStateChangeListener;
import com.kaltura.pla... |
package mil.nga.giat.mage.sdk.location;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import mil.nga.giat.mage.sdk.R;
import mil.nga.giat.mage.sdk.datastore.common.GeometryType;
import mil.nga.giat.mage.sdk.datast... |
package DashboardInterface;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.util.Date;
import javax.swing.JPanel;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.annotations.XYTextAnnotation;
import o... |
package net.yadan.banana.utils;
import net.yadan.banana.utils.LRU.Callback;
import net.yadan.banana.utils.LRU.DataType;
public class LRUExample {
public static void main(String[] args) {
int maxCapacity = 5;
LRU lru = new LRU(maxCapacity, DataType.OBJECT);
// adding 10 items to an LRU with size 5 with lea... |
/*
* QseqToTBTPlugin
*/
package net.maizegenetics.gbs.pipeline;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.InputStreamReader;
import net.maizegenetics.util.MultiMemberGZIPInputStream;
import net.maizegenetics.gbs.homology.ParseBarcodeR... |
package org.coffeeshop.swing;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.MouseInfo;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.util.Collection;
import javax.swing.AbstractAction;
im... |
package gcm2sbml.parser;
import gcm2sbml.util.GlobalConstants;
import gcm2sbml.util.Utility;
import java.awt.AWTError;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.ev... |
package com.example.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
public class Main implements EntryPoint{
@Override
public void onModuleLoad(){
Element textDiv = Document.get().getElementById("text");
t... |
package com.malhartech.stram;
import com.malhartech.api.BackupAgent;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.... |
package erogenousbeef.core.multiblock;
import java.util.LinkedList;
import java.util.List;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import erogenousbeef.core... |
package sorts;
public class Sorts {
public static void bubbleSort(int[] a, int n) {
if (n <= 1) return;
for (int i = 0; i < n; ++i) {
boolean flag = false;
for (int j = 0; j < n - i - 1; ++j) {
if (a[j] > a[j+1]) {
int tmp = a[j];
a[j] = a[j+1];
a[j+1] = tmp;
... |
package com.fatecpg.data;
import br.com.fatecpg.helpers.ConnectionFactory;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
public class Partida {
private Integer _id;... |
package net.katsuster.ememu.ui;
import java.lang.reflect.*;
import java.io.*;
import java.awt.event.*;
import javax.swing.*;
/**
*
*
* @author katsuhiro
*/
public class VirtualTerminal extends JPanel {
//Keyboard -> KeyListener -> inPout -> inPin -> (other class)
private PipedInputStream inPin;
private ... |
package com.google.refine;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.tools.tar.... |
package org.voovan.tools;
import java.lang.ref.WeakReference;
import java.util.LinkedList;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.function.Supplier;
public class ThreadLocalPool<T> {
private final ConcurrentLinkedQueue<T> GLOBAL_POOL = new ConcurrentLinkedQueue<T>();
private final T... |
package org.endeavourhealth.queuereader.routines;
import com.google.common.base.Strings;
import jdk.nashorn.internal.objects.NativeJSON;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
import org.apache.commons.io.FileUtils;
import org.endeavour... |
package org.bouncycastle.crypto.tls;
import org.bouncycastle.asn1.x509.RSAPublicKeyStructure;
import org.bouncycastle.crypto.InvalidCipherTextException;
import org.bouncycastle.crypto.encodings.PKCS1Encoding;
import org.bouncycastle.crypto.engines.RSABlindedEngine;
import org.bouncycastle.crypto.params.ParametersWithRa... |
package gov.nih.nci.cananolab.service.common.impl;
import gov.nih.nci.cananolab.domain.common.ExperimentConfig;
import gov.nih.nci.cananolab.domain.common.Instrument;
import gov.nih.nci.cananolab.domain.common.Technique;
import gov.nih.nci.cananolab.exception.CaNanoLabException;
import gov.nih.nci.cananolab.exception.E... |
package net.hawkengine.services;
import net.hawkengine.db.IDbRepository;
import net.hawkengine.db.redis.RedisRepository;
import net.hawkengine.model.JobDefinition;
import net.hawkengine.model.MaterialDefinition;
import net.hawkengine.model.PipelineDefinition;
import net.hawkengine.model.ServiceResult;
import net.hawken... |
package org.exist.xquery.functions.util;
import java.net.URLDecoder;
import org.exist.dom.QName;
import org.exist.xquery.BasicFunction;
import org.exist.xquery.Cardinality;
import org.exist.xquery.FunctionSignature;
import org.exist.xquery.XPathException;
import org.exist.xquery.XQueryContext;
import org.exist.xquery.v... |
package org.jamocha.dn.compiler;
import static java.util.stream.Collectors.toCollection;
import static java.util.stream.Collectors.toMap;
import static java.util.stream.Collectors.toSet;
import static org.jamocha.util.ToArray.toArray;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
im... |
// This file is part of the Whiley-to-Java Compiler (wyjc).
// The Whiley-to-Java Compiler is free software; you can redistribute
// it and/or modify it under the terms of the GNU General Public
// The Whiley-to-Java Compiler is distributed in the hope that it
// You should have received a copy of the GNU General Publi... |
package org.kepler.webview.server.handler;
import java.net.HttpURLConnection;
import org.kepler.webview.server.MetadataUtilities;
import org.kepler.webview.server.WebViewServer;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.RoutingContext;
/** Handler for logins.
*
... |
package com.coviu.examples;
import com.coviu.core.ApiClient;
import com.coviu.core.ApiException;
import com.coviu.sessions.api.SessionApi;
import com.coviu.sessions.model.*;
import static org.joda.time.DateTime.now;
public class Main {
public static void main(String[] args) {
try {
String apiKey... |
package meizhuo.org.lightmeeting.acty;
import java.util.ArrayList;
import java.util.List;
import meizhuo.org.lightmeeting.R;
import meizhuo.org.lightmeeting.adapter.RelationListAdapter;
import meizhuo.org.lightmeeting.adapter.RelationListAdapter.OnItemClickListener;
import meizhuo.org.lightmeeting.api.RelationAPI;
impo... |
package org.nschmidt.ldparteditor.data;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import org.lwjgl.util.vector.Matrix4f;
import org.nschmidt.ldparted... |
package com.exedio.cronjob.example;
import com.exedio.cope.util.JobContext;
final class InterruptableJob extends AbstractJob
{
InterruptableJob()
{
super("Interruptable", 1000, 0);
}
@Override
public void run(final JobContext ctx)
{
System.out.println(name + ".run start");
... |
import java.util.ArrayList;
import java.util.List;
class BowlingGame {
private static final int NUMBER_OF_FRAMES = 10;
private static final int MAXIMUM_FRAME_SCORE = 10;
private List<Integer> rolls = new ArrayList<>();
void roll(int pins) {
rolls.add(pins);
}
int score() {
int sc... |
package cgeo.geocaching;
import cgeo.geocaching.activity.AbstractListActivity;
import cgeo.geocaching.ui.AddressListAdapter;
import org.apache.commons.collections.CollectionUtils;
import android.app.ProgressDialog;
import android.location.Address;
import android.location.Geocoder;
import android.os.AsyncTask;
import an... |
package net.lucenews.opensearch;
import java.util.*;
import javax.xml.parsers.*;
import org.w3c.dom.*;
public class OpenSearchResponse {
private String title;
private String id;
private Calendar updated;
private String description;
private String topUrl;
private Integer totalResults;
... |
package caris.framework.handlers;
import caris.framework.basehandlers.Handler;
import caris.framework.basereactions.MultiReaction;
import caris.framework.basereactions.Reaction;
import caris.framework.library.Constants;
import caris.framework.library.Variables;
import caris.framework.reactions.ReactionMessage;
import c... |
package org.exist.xslt.expression;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.exist.xquery.AnalyzeContextInfo;
import org.exist.xquery.Expression;
import org.exist.xquery.LocationStep;
import org.exist.xquery.NodeTest;
import org.exist.xquery.TextConstructor;
import org.exist.xq... |
package cgeo.geocaching;
import cgeo.geocaching.compatibility.Compatibility;
import cgeo.geocaching.concurrent.BlockingThreadPool;
import cgeo.geocaching.files.LocalStorage;
import cgeo.geocaching.geopoint.GeopointFormatter.Format;
import cgeo.geocaching.network.Network;
import cgeo.geocaching.network.Parameters;
impor... |
package net.mafro.android.wakeonlan;
import android.app.PendingIntent;
import android.database.Cursor;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Intent;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;... |
package cgeo.geocaching.maps;
import cgeo.geocaching.Settings;
import cgeo.geocaching.cgCoord;
import cgeo.geocaching.cgeopopup;
import cgeo.geocaching.cgeowaypoint;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.maps.interfaces.CachesOverlayItemImpl;
imp... |
package net.finkn.inputspec.tools;
import net.finkn.inputspec.tools.X;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.Stre... |
package com.example;
import armyc2.c2sd.JavaLineArray.CELineArray;
import android.graphics.Typeface;
import java.util.ArrayList;
import armyc2.c2sd.JavaLineArray.TacticalLines;
import armyc2.c2sd.JavaLineArray.POINT2;
import armyc2.c2sd.JavaTacticalRenderer.clsMETOC;
import armyc2.c2sd.JavaRendererServer.RenderMultipoi... |
package com.deuteriumlabs.dendrite.view;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.jsp.PageContext;
import com.deuteriumlabs.dendrite.model.PageId;
import com.deuteriumlabs.dendrite.model.StoryBeginning;
import com.deuteriumlabs.dendrite.model.StoryOption;
import com.deuteriumlabs.dendrite... |
package pt.webdetails.cda.utils.kettle;
import java.util.concurrent.Callable;
import javax.swing.table.TableModel;
import org.pentaho.di.core.row.RowMeta;
import org.pentaho.di.core.row.RowMetaInterface;
import org.pentaho.di.core.row.ValueMeta;
import org.pentaho.di.core.row.ValueMetaInterface;
public class TableModel... |
package org.bimserver.plugins;
import java.io.ByteArrayInputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import... |
package io.flutter.sdk;
import com.google.common.annotations.VisibleForTesting;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.intellij.execution.ExecutionException;
import com.intellij.ide.util.PropertiesComponent;
... |
package me.shzylo.mansionazazel.level;
import java.util.Random;
/**
* A randomly generated level
*/
public class RandomLevel extends Level {
public static final Random random = new Random();
public RandomLevel(int width, int height) {
super(width, height);
}
@Override
protected void genera... |
package com.axelby.podax.ui;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import com.axelby.podax.R;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import a... |
package br.com.fiap.teste;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import br.com.fiap.commands.NetgifxCommand;
import br.com.fiap.entity.Categoria;
import br.com.fiap.entity.Gif;
import br.com.fiap.entity.Usuario;
public class Main {
static NetgifxCommand n... |
package com.ecyrd.jspwiki.plugin;
import java.util.Map;
import com.ecyrd.jspwiki.WikiContext;
import com.ecyrd.jspwiki.parser.PluginContent;
/**
* Implements a Plugin interface for the parser stage. Please see PluginManager
* for further documentation.
*
* @author jalkanen
* @since 2.5.30
*/
public interface... |
package com.github.noxan.aves.demo.chat;
import java.io.IOException;
import com.github.noxan.aves.client.ClientAdapter;
import com.github.noxan.aves.client.SocketClient;
public class ChatClient extends ClientAdapter {
public static void main(String[] args) {
SocketClient client = new SocketClient(new ChatCl... |
package edu.umd.cs.findbugs;
import edu.umd.cs.daveho.ba.*;
import java.io.*;
import java.util.*;
import org.apache.bcel.classfile.JavaClass;
/**
* BugReporter to output warnings in Emacs format.
*
* @author David Li
*/
public class EmacsBugReporter extends TextUIBugReporter {
private HashSet<BugInstance> seenA... |
package edu.umd.cs.findbugs;
import edu.umd.cs.pugh.visitclass.BetterVisitor;
import edu.umd.cs.pugh.visitclass.DismantleBytecode;
/**
* A BugAnnotation specifying a particular method in a particular class.
*
* @see BugAnnotation
* @author David Hovemeyer
*/
public class MethodAnnotation extends PackageMemberAnnot... |
//FILE: AcqControlDlg.java
//PROJECT: Micro-Manager
//SUBSYSTEM: mmstudio
// This file is distributed in the hope that it will be useful,
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// ... |
// Package
package com.hp.hpl.jena.ontology.impl;
// Imports
import com.hp.hpl.jena.rdf.model.*;
import com.hp.hpl.jena.rdf.model.impl.*;
import com.hp.hpl.jena.util.iterator.*;
import com.hp.hpl.jena.vocabulary.*;
import com.hp.hpl.jena.ontology.*;
import com.hp.hpl.jena.graph.*;
import com.hp.hpl.jena.graph.compose.M... |
package com.jstewart.testamazonlogin;
import java.util.Iterator;
import android.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageButton;
impor... |
package com.monstarlab.servicedroid.util;
import com.monstarlab.servicedroid.R;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.pm.PackageInfo;
import... |
package com.openxc.gaugedriver;
import java.util.Set;
import java.util.Timer;
import java.util.TimerTask;
import jp.ksksue.driver.serial.FTDriver;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
i... |
package com.openxc.gaugedriver;
import java.util.Timer;
import java.util.TimerTask;
import jp.ksksue.driver.serial.FTDriver;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.... |
package com.techhounds.commands.auton;
import com.techhounds.RobotMap;
import com.techhounds.commands.angler.SetAnglerPosition;
import com.techhounds.commands.angler.SetStateDown;
import com.techhounds.commands.angler.SetStateUp;
import com.techhounds.commands.collector.SetCollectorPower;
import com.techhounds.commands... |
package com.vaadin.data.util;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import com.vaadin.data.Container;
import com.vaadin.data.Container.Filterable;
import com.vaadin.data.Container.PropertySetCh... |
package ifc.sheet;
import com.sun.star.sheet.XScenario;
import com.sun.star.table.CellRangeAddress;
import com.sun.star.uno.Any;
import com.sun.star.uno.XInterface;
import lib.MultiMethodTest;
import lib.Status;
import util.ValueComparer;
public class _XScenario extends MultiMethodTest {
public XScenario oObj = nul... |
package raptor.connector.ics;
import java.util.StringTokenizer;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import raptor.Raptor;
import raptor.chat.ChatType;
import raptor.chat.Bugger.BuggerStatus;
import raptor.chess.AtomicGame;
impo... |
package j2s;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import org.eclipse.jface.text.ITextSelection;
import ... |
/**
* File: Board.java
* Purpose: A Chess Board implementation using the 0x88 board representation.
*/
package model;
import static lookup.Pieces.*;
import static lookup.Masks.*;
import static lookup.Coordinates.*;
import static lookup.PieceTables.*;
import java.util.ArrayList;
public class Board {
priv... |
package model;
import dataSet.*;//`ll be changed
import view.UI.FileSaveUI;
import view.UI.Position;//`ll be changed
import java.io.File;
import java.util.List;
import java.util.ArrayList;
public class Model implements ModelInterface{
private FileManager fm;
private Document left;
private Document right;
... |
package robot;
import config.Config;
import config.DynamicConfigurable;
import exceptions.ActionneurException;
import exceptions.UnableToMoveException;
import utils.Log;
import utils.Vec2RO;
public abstract class Robot implements DynamicConfigurable
{
public abstract long getTempsDepuisDebutMatch();
protected C... |
package server;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.util.Iterator;
import javax.crypto.Cipher;
import rmi.CertusServer;
import database.DatabaseConnector;
import dto.*;
import enumeration.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-ge... |
package snake;
import java.io.IOException;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.UnsupportedAudioFileException;
/**
* @author Aaron
*
*/
public class Sound {... |
package ui;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
public class RGBPanel extends JPanel {
private BufferedImage image;
public RGBPanel(){
super();
setPreferredSize(new Dimension(600, 400));
image = new BufferedImage(100, 100, BufferedImage.TYPE_3BYT... |
public class Door
{
public static final String START = "AA";
public static final String EXIT = "ZZ";
public Door (Coordinate position, boolean horizontalRepresentation)
{
_location = position;
_horizontal = horizontalRepresentation;
}
private Coordinate _location;
private boo... |
public class Tile
{
} |
import java.util.*;
import java.io.*;
public class Util
{
public static final Vector<Tile> loadData (String inputFile)
{
/*
* Open the data file and read it in.
*/
BufferedReader reader = null;
Vector<Tile> data = new Vector<Tile>();
try
{
re... |
package com.amos.project4.models;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.... |
package edu.vu.isis.ammo.api;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicReference;
import org.slf4j.Logger;
import org.slf4j.LoggerF... |
package bugfree.example;
import static org.assertj.core.api.BDDAssertions.then;
import org.junit.Test;
/**
* This is an example whose goal is to show that writing the simplest code first
* and them add code only driven by additional requirements helps avoid trivial
* but dangerous bugs.
*
* @author ste
*/
public ... |
package com.cedarsoftware.ncube;
import org.junit.Test;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Calendar;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
public class TestCellInfo
{
@Test
... |
// This file is part of the Fuel Java SDK.
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify,
// of the Software, and to permit persons to whom the Software
// is furni... |
package com.tinkerpop.pipes;
import com.tinkerpop.blueprints.pgm.Graph;
import com.tinkerpop.blueprints.pgm.Vertex;
import com.tinkerpop.blueprints.pgm.impls.tg.TinkerEdge;
import com.tinkerpop.blueprints.pgm.impls.tg.TinkerGraphFactory;
import com.tinkerpop.blueprints.pgm.impls.tg.TinkerVertex;
import com.tinkerpop.pi... |
package datastructures;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
/**
* @author Pavel Nichita
*
*/
public class DFJointProjectionTest {
private SetUpClass setUpObject;
/**
* Set up.
*/
@Before
public void setUp() {
this.setUpObject = new SetUp... |
package guitests.guihandles;
import guitests.GuiRobot;
import javafx.collections.ObservableList;
import javafx.scene.input.KeyCode;
import javafx.stage.Stage;
/**
* A handle to the Command Box in the GUI.
*/
public class CommandBoxHandle extends GuiHandle {
private static final String COMMAND_INPUT_FIELD_ID = "#c... |
package de.gurkenlabs.litiengine.sound;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import de.gurkenlabs.litiengine.Game;
import de.gurkenlabs.litiengine.IGameLoop;
import de.gurkenlabs.litiengine.IUpdateable;
import de.gurkenlabs.li... |
package me.ysobj.sqlparser.parser;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNot.not;
import static org.hamcrest.core.IsNull.nullValue;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import me.ysobj.sqlparser.tokenizer.Tokenizer;
public class ParserTest {
@Test
... |
package openmods.geometry;
import com.google.common.collect.Lists;
import java.util.Optional;
import javax.vecmath.Vector3f;
import net.minecraft.util.EnumFacing;
import org.junit.Assert;
import org.junit.Test;
public class FaceClassifierTest {
private static void test(FaceClassifier classifier, EnumFacing result, ... |
package org.takes.rq;
import com.google.common.base.Joiner;
import java.io.IOException;
import java.util.Collections;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Test;
/**
* Test case for {@link RqWithDefaultHeader}.
* @author Andrey Eliseev (aeg.exper0@gmail.com)
* @version $Id... |
package seedu.address.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_TASK_DISPLA... |
package dr.app.tools;
import dr.app.beast.BeastVersion;
import dr.app.util.Arguments;
import dr.evolution.io.*;
import dr.evolution.tree.*;
import dr.evolution.util.Taxon;
import dr.util.Version;
import java.io.*;
import java.util.*;
/**
* @author Philippe Lemey
* @author Marc Suchard
*/
public class TaxaMarkovJumpH... |
package dr.inference.operators.hmc;
import dr.inference.hmc.GradientWrtParameterProvider;
import dr.inference.model.Likelihood;
import dr.inference.model.Parameter;
import dr.inference.operators.CoercionMode;
import dr.inference.operators.GeneralOperator;
import dr.inference.operators.GibbsOperator;
import dr.math.Math... |
package dr.inferencexml.hmc;
import dr.inference.distribution.DistributionLikelihood;
import dr.inference.distribution.MultivariateDistributionLikelihood;
import dr.inference.hmc.CompoundDerivative;
import dr.inference.hmc.CompoundGradient;
import dr.inference.hmc.GradientWrtParameterProvider;
import dr.inference.model... |
package org.voltdb.licensetool;
import java.io.File;
import java.util.Calendar;
public interface LicenseApi {
public boolean initializeFromFile(File license);
public boolean isTrial();
public int maxHostcount();
public Calendar expires();
public boolean verify();
public boolean isWanReplicationA... |
package org.aikodi.chameleon.oo.type;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.aikodi.chameleon.core.Config;
import org.aikodi.chameleon.core.declaration.Declaration;
import org.aikodi.chameleon.core.element.Element;
import org.aikodi.chameleon.core.lookup.DeclarationSe... |
package gov.nih.nci.calab.ui.core;
import gov.nih.nci.calab.dto.characterization.CharacterizationBean;
import gov.nih.nci.calab.dto.common.LabFileBean;
import gov.nih.nci.calab.dto.common.UserBean;
import gov.nih.nci.calab.dto.function.FunctionBean;
import gov.nih.nci.calab.dto.inventory.AliquotBean;
import gov.nih.nci... |
package org.bouncycastle.jce.provider;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.security.InvalidKeyException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.SecureRandom;
import ... |
package org.camsrobotics.frc2016.auto;
/**
* Autonomous mode magic
*
* @author Wesley
*
*/
public class AutoExecutor {
private AutoMode m_auto;
private Thread m_thread = null;
/**
* Constructs the AutoExecutor with the given mode
*
* @param mode The mode to be executed
*/
public... |
package org.concord.datagraph.engine;
/**
* DataGraphable
* This class is an object that takes data from a
* data store and draws this data in a graph (it's a Graphable)
* as a countinuous set of points that can be connected or not
* (connected by default).
* It is itself a DataStore with 2 channels (x,y), so it ... |
package org.digidoc4j.impl;
import eu.europa.ec.markt.dss.DSSXMLUtils;
import eu.europa.ec.markt.dss.validation102853.report.Conclusion;
import eu.europa.ec.markt.dss.validation102853.report.Reports;
import eu.europa.ec.markt.dss.validation102853.report.SimpleReport;
import org.digidoc4j.ValidationResult;
import org.di... |
package org.exist.xmldb;
import java.util.Iterator;
import org.exist.EXistException;
import org.exist.dom.DocumentImpl;
import org.exist.security.Permission;
import org.exist.security.PermissionDeniedException;
import org.exist.security.SecurityManager;
import org.exist.security.User;
import org.exist.storage.BrokerPoo... |
package org.helioviewer.jhv.plugins.swek;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.image.BufferedImage;
import java.nio.FloatBuffer;
import java.util.ArrayList;
import java.util.HashMap;
import javax.an... |
package org.helioviewer.jhv.plugins.swek;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.image.BufferedImage;
import java.nio.FloatBuffer;
import java.util.ArrayList;
import java.util.HashMap;
import javax.annotation.Nullable;
impo... |
package org.jcodings.specific;
import org.jcodings.CaseFoldMapEncoding;
import org.jcodings.Config;
import org.jcodings.ISOEncoding;
import org.jcodings.IntHolder;
import org.jcodings.constants.CharacterType;
final public class Windows_1254Encoding extends CaseFoldMapEncoding {
protected Windows_1254Encoding() {
... |
// $Id: ClientGmsImpl.java,v 1.21 2005/09/14 08:57:07 belaban Exp $
package org.jgroups.protocols.pbcast;
import org.jgroups.*;
import org.jgroups.protocols.PingRsp;
import org.jgroups.util.Promise;
import org.jgroups.util.Util;
import java.util.*;
/**
* Client part of GMS. Whenever a new member wants to join a group,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.