answer stringlengths 17 10.2M |
|---|
package burlap.behavior.singleagent.learning.lspi;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import org.ejml.simple.SimpleMatrix;
import burlap.behavior.singleagent.EpisodeAnalysis;
import burlap.behavior.singleagent.Policy;
import burlap.behavior.singleagent.QValue;
import burlap.... |
package ca.cumulonimbus.pressurenetsdk;
/**
* Store configurations for the PressureNet SDK
* @author jacob
*
*/
public class CbConfiguration {
public static final String SERVER_URL = "https://pressurenet.io/";
public static final String STAGING_URL = "http://pressurenet-staging.elasticbeanst... |
package com.dmdirc.addons.nowplaying;
import com.dmdirc.MessageTarget;
import com.dmdirc.Server;
import com.dmdirc.commandparser.CommandArguments;
import com.dmdirc.commandparser.commands.ChatCommand;
import com.dmdirc.commandparser.CommandManager;
import com.dmdirc.commandparser.commands.IntelligentCommand;
import com... |
package com.dmdirc.addons.ui_swing.components;
import com.dmdirc.Channel;
import com.dmdirc.addons.ui_swing.SwingController;
import com.dmdirc.addons.ui_swing.UIUtilities;
import com.dmdirc.addons.ui_swing.actions.NoNewlinesPasteAction;
import com.dmdirc.addons.ui_swing.components.frames.ChannelFrame;
import com.dmdirc... |
package com.gmail.fthielisch.chestkits;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockState;
import org.bukkit.block.Chest;
import org.bukkit.com... |
package org.apdplat.extractor.html.demo;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class BBC {
public static void ma... |
package com.google.sps.data;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
public final class User {
private String name;
private String email;
private Set<String> interests;
private Set<String> skills;
private Set<Event> eventsHosting;
private Set<Event> eventsParticip... |
package eu.amidst.huginlink.learning;
import COM.hugin.HAPI.*;
import com.google.common.base.Stopwatch;
import eu.amidst.core.datastream.DataInstance;
import eu.amidst.core.datastream.DataOnMemory;
import eu.amidst.core.datastream.DataStream;
import eu.amidst.core.distribution.Multinomial;
import eu.amidst.core.learnin... |
package com.jcwhatever.bukkit.rental.region;
import com.jcwhatever.bukkit.generic.file.GenericsByteReader;
import com.jcwhatever.bukkit.generic.file.GenericsByteWriter;
import com.jcwhatever.bukkit.generic.pathing.InteriorFinder;
import com.jcwhatever.bukkit.generic.pathing.InteriorFinder.InteriorResults;
import com.jc... |
package com.nilhcem.hostseditor.list;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import javax.inject.Inject;
import android.os.Bundle;
import android.util.Log;
import android.util.SparseBooleanArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewG... |
package com.pauldavdesign.mineauz.minigames;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Color;
import org.b... |
package algorithms.imageProcessing;
import junit.framework.TestCase;
/**
*
* @author nichole
*/
public class MorphologicalFilterTest extends TestCase {
public MorphologicalFilterTest() {
}
public void testBwMorphThin() {
System.out.println("bwMorphThin");
int[][] img = new int[4][];
... |
package com.redhat.ceylon.model.typechecker.model;
import static com.redhat.ceylon.model.typechecker.model.Module.LANGUAGE_MODULE_NAME;
import static com.redhat.ceylon.model.typechecker.model.Util.addToIntersection;
import static com.redhat.ceylon.model.typechecker.model.Util.addToUnion;
import static com.redhat.ceylon... |
package com.swabunga.spell.engine;
import com.swabunga.util.StringUtility;
import java.io.*;
import java.util.HashMap;
import java.util.Vector;
/**
* A Generic implementation of a transformator takes an aspell phonetics file and constructs
* some sort of transformation table using the inner class Rule.
*
* @author ... |
package com.tactfactory.harmony.plateforme;
import com.tactfactory.harmony.HarmonyContext;
import com.tactfactory.harmony.Harmony;
import com.tactfactory.harmony.meta.ApplicationMetadata;
/** Base Adapter of project structure. */
public abstract class BaseAdapter implements IAdapter {
// Structure
/** Project p... |
package com.thaiopensource.relaxng.impl;
import com.thaiopensource.xml.util.Name;
import java.util.Vector;
import java.util.Hashtable;
import org.relaxng.datatype.ValidationContext;
public class PatternMatcher implements Cloneable {
static private class Shared {
private final Pattern start;
private final Vali... |
package com.timepath.tf2.hudedit.loaders;
import com.timepath.tf2.hudedit.gui.EditorFrame;
import com.timepath.tf2.hudedit.util.DataUtils;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.logging.Level;
import java.u... |
package me.nallar.tickthreading.patcher;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.common.base.Splitter;
import javassist.CannotCompileException;
import javassist.ClassMap;
import javassist.CtBehavior;
import javassis... |
import com.sun.star.awt.FontDescriptor;
import com.sun.star.awt.XListBox;
import com.sun.star.wizards.common.*;
import java.util.*;
/**
*
* @author bc93774
*/
public class FieldSelection {
public UnoDialog CurUnoDialog;
public XListBox xFieldsListBox;
public XListBox xSelFieldsListBox;
public XField... |
package com.hotmail.kalebmarc.textfighter.main;
import com.hotmail.kalebmarc.textfighter.player.Achievements;
import com.hotmail.kalebmarc.textfighter.player.Coins;
import com.hotmail.kalebmarc.textfighter.player.Stats;
import com.hotmail.kalebmarc.textfighter.player.Xp;
import javax.swing.*;
import java.util.ArrayList... |
package org.intermine.dataloader;
import org.intermine.dataconversion.DataConverterStoreHook;
/**
* Loads information from a data source into the InterMine database.
* This class defines a member variable referencing an IntegrationWriter, which all DataLoaders
* require.
*
* @author Matthew Wakeling
* @author Ric... |
package com.iskrembilen.quasseldroid.gui;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ExpandableListActivity;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import... |
package org.intermine.web.struts;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.intermine.objectstore.query.BagConstraint;
import org.intermine.objectstore.query.ConstraintOp;
import org.intermine.objectstore.query.ConstraintSet;
import org.intermine.ob... |
package com.jcw.andriod.fileListView;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.widget.ImageView;
import com.jcw.android.fileListView.R;
import java.io.File;
class PictureGenerator {
File file;
FileExtension extension;
public static... |
package org.intermine.web.struts;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.Map.Entry;
import javax.servlet.Se... |
package io.flutter.pub;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.LangDataKeys;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.module.ModuleManager;
import com.intellij.openapi.project... |
package com.jcwhatever.bukkit.generic.utils;
import javax.annotation.Nullable;
/**
* Enum helper utilities.
*/
public class EnumUtils {
private EnumUtils() {}
/**
* Get an enum by its constant name. The constant name is case sensitive.
*
* @param constantName The name of the enum constant.
... |
package org.intermine.web.struts;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.Map.Entry;
import javax.servlet.Se... |
package algorithms.imageProcessing;
import algorithms.CountingSort;
import algorithms.MultiArrayMergeSort;
import algorithms.QuickSort;
import algorithms.util.PairIntArray;
import algorithms.util.PairInt;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import j... |
package com.lekebilen.quasseldroid.gui;
import java.util.ArrayList;
import android.app.ListActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
im... |
package com.sixsq.slipstream.util;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.persistence.EntityManager;
import com.sixsq.slipstream.con... |
package org.openqa.selenium.qtwebkit;
import com.google.common.collect.ImmutableMap;
import org.openqa.selenium.remote.Command;
import org.openqa.selenium.remote.CommandInfo;
import org.openqa.selenium.remote.HttpCommandExecutor;
import org.openqa.selenium.remote.HttpVerb;
import org.openqa.selenium.remote.Response;
im... |
package com.shaubert.contacts;
import android.content.Context;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;
import com.google.i18n.phonenumbers.NumberParseException;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.i18n.phonenumbers.Phonenumber... |
package com.maddyhome.idea.vim.ex.handler;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.LogicalPosition;
import com.intellij.openapi.editor.SelectionModel;
import com.intellij.openapi.util.text.StringUtil;
import com.maddyhome.idea.v... |
package com.chariotsolutions.nfc.plugin;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
// using wildcard imports so we can support Cordova 3.x
import ... |
package org.wysaid.myUtils;
import android.graphics.Bitmap;
import android.media.FaceDetector;
import android.os.Environment;
import android.util.Log;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
public class ImageUtil {
public static final S... |
package com.mebigfatguy.patchanim.gui;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowFocusListener;
import java.io.File;
import java.io.... |
package com.chariotsolutions.nfc.plugin;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IntentFilter.MalformedMimeTypeException;
import android.net.Uri;
import android.nfc.FormatException; // Cordova 3.x
import an... |
package org.wyona.yanel.servlet;
import java.io.InputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.Writer;
import java.net.URL;
import java.util.Enumeration;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http... |
package models;
import java.util.List;
/**
* Data access object for Question objects. It helps to perform database operations on the Question table in the database.
*/
public class CategoryDAO {
/**
* Constructor for CategoryDAO
*/
public CategoryDAO() {}
/**
* Searches the database for the... |
package com.africastalking;
import retrofit2.Call;
import retrofit2.http.*;
interface IVoice {
@FormUrlEncoded
@POST("call")
Call<String> call(@Field("username") String username, @Field("to") String to,
@Field("from") String from);
@FormUrlEncoded
@POST("/queueStatus")
Call... |
package org.jenkinsci.plugins.workflow.job;
import org.jenkinsci.plugins.workflow.actions.TimingAction;
import org.jenkinsci.plugins.workflow.flow.FlowExecutionList;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.SettableFuture;
import hudson.AbortException;
import h... |
package jade.core;
import jade.util.leap.Iterator;
import jade.util.leap.LinkedList;
import jade.lang.acl.ACLMessage;
/**
@author Giovanni Rimassa - Universita` di Parma
@version $Date$ $Revision$
*/
class MessageQueue {
// This class is sent onto the stream in place of the MessageQueue;
// when read and resolved, ... |
package nxt.http;
import nxt.Account;
import nxt.Alias;
import nxt.Appendix;
import nxt.Asset;
import nxt.AssetTransfer;
import nxt.Block;
import nxt.DigitalGoodsStore;
import nxt.Nxt;
import nxt.Order;
import nxt.Poll;
import nxt.Token;
import nxt.Trade;
import nxt.Transaction;
import nxt.crypto.Crypto;
import nxt.cry... |
package de.lmu.ifi.dbs.elki.algorithm.outlier;
import java.util.BitSet;
import java.util.List;
import de.lmu.ifi.dbs.elki.data.RealVector;
import de.lmu.ifi.dbs.elki.database.Database;
import de.lmu.ifi.dbs.elki.distance.distancefunction.DimensionsSelectingEuclideanDistanceFunction;
import de.lmu.ifi.dbs.elki.normaliza... |
package de.mrapp.android.adapter.util;
import java.util.List;
import java.util.ListIterator;
import java.util.NoSuchElementException;
/**
* A list iterator, which allows to iterate over the data of a list's items.
*
* @param <DataType>
* The type of the item's data
*
* @author Michael Rapp
*/
public c... |
package org.jpos.security;
import org.jpos.util.Loggeable;
import java.io.PrintStream;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.StringTokenizer;
import java.util.Vector;
/**
* Cryptographic Service Message (CSM for short).
*
* A message for transporting keys or
* related informatio... |
package jsettlers.graphics.map.minimap;
import jsettlers.common.Color;
import jsettlers.common.CommonConstants;
import jsettlers.common.buildings.IBuilding;
import jsettlers.common.map.IGraphicsGrid;
import jsettlers.common.mapobject.EMapObjectType;
import jsettlers.common.mapobject.IMapObject;
import jsettlers.common.... |
package jsettlers.graphics.messages;
import jsettlers.common.buildings.IBuilding;
import jsettlers.common.material.EMaterialType;
import jsettlers.common.position.ShortPoint2D;
import jsettlers.graphics.localization.Labels;
/**
* This is a message that states that the user was attacked by an other player.
*
* @autho... |
package dr.inference.model;
import cern.colt.matrix.DoubleMatrix1D;
import cern.colt.matrix.DoubleMatrix2D;
import cern.colt.matrix.impl.DenseDoubleMatrix2D;
import dr.evolution.tree.TreeTrait;
import dr.evomodel.continuous.MultivariateDiffusionModel;
import dr.evomodel.tree.TreeModel;
import dr.evomodel.treedatalikeli... |
package com.futurice.festapp.service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class ServiceBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent ) {
if (intent.getExtras() != nu... |
package com.intuit.karate.driver;
import com.intuit.karate.FileUtils;
import com.intuit.karate.Http;
import com.intuit.karate.KarateException;
import com.intuit.karate.LogAppender;
import com.intuit.karate.Logger;
import com.intuit.karate.driver.appium.AndroidDriver;
import com.intuit.karate.driver.chrome.Chrome;
impor... |
package com.itmill.toolkit.tests.featurebrowser;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import com.itmill.toolkit.... |
// CacheStrategy.java
package loci.formats.cache;
import java.util.*;
import loci.formats.FormatTools;
public abstract class CacheStrategy
implements CacheReporter, Comparator, ICacheStrategy
{
// -- Constants --
/** Default cache range. */
public static final int DEFAULT_RANGE = 0;
// -- Fields --
/** Leng... |
package com.peterson.markovchain;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Extension of the BasicMarkovChain to provide synchronized access to the generator.
* This overrides the basic structure of the generator to use a synchronized map and lists.
* @author Peterson, Ry... |
package com.airbnb.lottie.utils;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathM... |
package org.kaazing.robot.lang.ast;
import static java.lang.String.format;
import static org.kaazing.robot.lang.ast.util.AstUtil.equivalent;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import org.kaazing.robot.lang.ast.value.AstValue;
public class AstWriteConfigNode extends AstCom... |
package com.ralitski.util.math.graph.search;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.PriorityQueue;
import com.ralitski.util.math.graph.Edge;
import com.ralitski.util.math.graph.Graph;
import com.ralitski.util.math.graph.Node;
public class GraphSearchGreedy implemen... |
package org.languagetool.server;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.sun.net.httpserver.HttpServer;
import org.jetbrains.annotations.Nullable;
import org.languagetool.JLanguageTool;
import org.languagetool.Language;
import org.languagetool.Languages;
import java.io.IOException;
imp... |
package com.vaadin.demo.sampler.features.form;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
import java.util.UUID;
import com.vaadin.data.Item;
import com.vaadin.data.Validator;
import com.vaadin.data.util.BeanItem;
import com.vaadin.data.validator.StringLengthValidator;
import com.vaadi... |
package com.vaadin.terminal.gwt.client.ui;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import com.google.gwt.animation.client.Animation;
import com.google.gwt.core.client.Duration;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.NativeEvent;
import com.googl... |
package com.example.asm.resources;
import android.annotation.SuppressLint;
import android.content.DialogInterface;
import android.os.Build;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.content.Context;
import android.... |
package dyvil.tools.compiler.transform;
import dyvil.tools.parsing.lexer.Tokens;
public class DyvilKeywords
{
public static final int ABSTRACT = Tokens.KEYWORD | 0x00010000;
public static final int AS = Tokens.KEYWORD | 0x00020000;
public static final int BREAK = Tokens.KEYWORD | 0x0003... |
package org.voltdb;
import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.math.BigDecimal;
import java.nio.ByteBuffer;
import java.util.Vector;
import org.hsqldb_voltpatches.FunctionForVoltDB;
import org.voltcore.logging.VoltLogger;
import org.voltcore.utils.CoreUti... |
package org.voltdb.compiler;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.hsqldb_voltpatches.HSQLInterface;
import org.voltcore.logging.VoltLogger;
import org.voltdb.ProcInfo;
im... |
package de.mrapp.android.dialog;
import java.util.Locale;
import android.annotation.TargetApi;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface.OnClickListener;
import android.content.DialogInterface.OnMultiChoiceClickListener;
import android.content.res.TypedArray;... |
package org.apache.jmeter.modifiers;
import java.io.Serializable;
import java.util.Collection;
import java.util.LinkedList;
import org.apache.jmeter.engine.event.LoopIterationEvent;
import org.apache.jmeter.engine.event.LoopIterationListener;
import org.apache.jmeter.processor.PreProcessor;
import org.apache.jmeter.tes... |
package org.voltdb.compiler;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.CompletableFuture;
import org.hsqldb_voltpatches.HSQLInterface;
import org.voltcore.log... |
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Utils {
public static Scanner sc = new Scanner(System.in);
public static Trans getTransFromInput() {
Types type;
double km;
int yom;
int aveLife;
String vin;
int wheels;
boolean h... |
package garin.artemiy.quickaction.example;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import garin.artemiy.quickaction.R;
import garin.artemiy.quickaction.library.QuickAction;
public class MainActivity extends Activity {
private QuickAction... |
package hu.gaborkolozsy.dictionary.model;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class DictionaryBox {
/**
* DictionaryBox map.
*/
private final Map<String, String> dictionary = new HashMap<>();
/**
* Put the key-value paar in the dictionary.
* @para... |
package ibis.satin.impl.faultTolerance;
import ibis.ipl.IbisIdentifier;
import ibis.ipl.ReadMessage;
import ibis.ipl.ReceivePort;
import ibis.ipl.ReceivePortConnectUpcall;
import ibis.ipl.ReceivePortIdentifier;
import ibis.ipl.Registry;
import ibis.ipl.ResizeHandler;
import ibis.ipl.SendPort;
import ibis.ipl.SendPortCo... |
package org.apache.jmeter.control.gui;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;
import org.apache.jmeter.control.GenericController;
import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.util.... |
package de.danoeh.antennapod.fragment;
import org.apache.commons.lang3.StringEscapeUtils;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ClipData;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.... |
package dr.evomodel.continuous;
import dr.evolution.tree.MultivariateTraitTree;
import dr.evolution.tree.NodeRef;
import dr.evolution.tree.Tree;
import dr.evomodel.branchratemodel.DiscretizedBranchRates;
import dr.evomodel.tree.TreeModel;
import dr.evomodel.tree.TreeStatistic;
import dr.geo.math.SphericalPolarCoordinat... |
package edu.wpi.first.wpilibj.templates.subsystems;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.Gyro;
import edu.wpi.first.wpilibj.ADXL345_I2C;
import edu.wpi.first.wpilibj.templates.RobotMap;
import edu.wpi.first.wp... |
package edu.wheaton.simulator.statistics;
import java.util.HashMap;
import edu.wheaton.simulator.entity.Prototype;
import edu.wheaton.simulator.entity.Slot;
import edu.wheaton.simulator.simulation.Grid;
/**
* @author Daniel Gill, Nico Lasta
*
*/
class GridObserver {
private StatisticsManager statManager;
/**... |
package edu.wheaton.simulator.statistics;
import java.util.HashMap;
import java.util.Set;
/**
* A class representing all the information to track from slots in the game.
*
* @author akonwi
*
*/
public class SlotSnapshot extends EntitySnapshot {
/**
* How many agents are occupying this slot
*/
pub... |
package emergencylanding.k.library.lwjgl.render;
import emergencylanding.k.library.internalstate.ELEntity;
import emergencylanding.k.library.lwjgl.Shapes;
public class TextureRender extends Render<ELEntity> {
@Override
public void doRender(ELEntity entity, float posX, float posY, float posZ) {
VBAO quad... |
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* the project. */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.can.CANTimeoutException;
/**
* The VM is configured to ... |
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.AnalogChannel;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class RobotTemplate extends SimpleRobot {
// these inputs are to test weather t... |
package org.neo4j.server;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.neo4j.server.ServerBuilder.server;
import org.junit.Test;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
... |
package gov.nih.nci.caIntegrator.services.util;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.ejb.EJBLocalHome;
import javax.ejb.EJBHome;
import javax.rmi.PortableRemoteObject;
import java.util.Map;
import java.util.Collections;
import java.util.HashMap;
import java.util.Properti... |
package org.rstudio.studio.client.common;
import org.rstudio.core.client.VirtualConsole;
import org.rstudio.core.client.widget.FontSizer;
import org.rstudio.core.client.widget.PreWidget;
import org.rstudio.studio.client.workbench.views.console.ConsoleResources;
import com.google.gwt.user.client.ui.Composite;
import com... |
package fitnesse.responders.editing;
import util.RegexTestCase;
import fitnesse.FitNesseContext;
import fitnesse.http.MockRequest;
import fitnesse.http.SimpleResponse;
import fitnesse.testutil.FitNesseUtil;
import fitnesse.wiki.InMemoryPage;
import fitnesse.wiki.PageCrawler;
import fitnesse.wiki.PageData;
import fitnes... |
package flatland.protobuf;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.... |
package org.voltdb.dtxn;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.voltcore.messaging.HeartbeatMessage;
import org.voltcore.messaging.HeartbeatResponseMessage;
impo... |
package it.unimi.dsi.sux4j.scratch;
import it.unimi.dsi.Util;
import it.unimi.dsi.bits.Fast;
import it.unimi.dsi.bits.LongArrayBitVector;
import it.unimi.dsi.bits.TransformationStrategies;
import it.unimi.dsi.bits.TransformationStrategy;
import it.unimi.dsi.fastutil.ints.AbstractIntComparator;
import it.unimi.dsi.fastu... |
package org.xins.server;
/**
* Constants referring to all existing <code>ResponderState</code>
* instances.
*
* @version $Revision$ $Date$
* @author Ernst de Haan (<a href="mailto:znerd@FreeBSD.org">znerd@FreeBSD.org</a>)
*/
public interface ResponderStates {
/**
* Uninitialized state. In this state no out... |
package info.curtbinder.reefangel.phone;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.RejectedExecutionException;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.ContentVa... |
package com.couchbase.lite;
import android.content.res.Resources;
import com.couchbase.lite.util.Log;
import junit.framework.Assert;
import org.apache.commons.io.IOUtils;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import ja... |
package gov.nih.nci.calab.service.util;
public class CalabConstants {
public static final String DATE_FORMAT = "mm/dd/yyyy";
public static final String STORAGE_BOX = "Box";
public static final String STORAGE_SHELF = "Shelf";
public static final String STORAGE_RACK = "Rack";
public static final Strin... |
package com.couchbase.lite;
import com.couchbase.lite.internal.RevisionInternal;
import com.couchbase.lite.util.Log;
import junit.framework.Assert;
import org.apache.commons.io.IOUtils;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Has... |
package org.apache.commons.lang.exception;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util... |
package ibis.ipl.support.management;
import java.io.IOException;
import ibis.io.Conversion;
import ibis.ipl.IbisIdentifier;
import ibis.ipl.server.ManagementServiceInterface;
import ibis.ipl.support.Connection;
import ibis.smartsockets.virtual.VirtualSocketFactory;
import ibis.util.TypedProperties;
public class Managem... |
package org.xins.util.text;
import org.xins.util.MandatoryArgumentChecker;
/**
* Exception thrown if a character string does not match a certain format.
*
* @version $Revision$ $Date$
* @author Ernst de Haan (<a href="mailto:znerd@FreeBSD.org">znerd@FreeBSD.org</a>)
*/
public final class FormatException
extends Ru... |
package org.xins.server;
import java.util.List;
import org.xins.util.MandatoryArgumentChecker;
import org.xins.util.text.ParseException;
/**
* Authorization filter for IP addresses. An <code>IPFilter</code> object is
* created and used as follows:
*
* <blockquote><code>IPFilter filter = IPFilter.parseFilter("10.0.0... |
// samskivert library - useful routines for java programs
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You shoul... |
// samskivert library - useful routines for java programs
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You shoul... |
package net.cloudapp.wcnjenkins;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
public class TestBankAccount {
@Test
public void testDebitWithSufficientFunds(){
BankAccount account = new BankAccount(10);
double amount = account.debit(5);
Assert.assertEqual... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.