answer stringlengths 17 10.2M |
|---|
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
public class game {
public static void main(... |
package ru.thewizardplusplus.wizardbudget;
import java.io.*;
import java.text.*;
import java.util.*;
import java.net.*;
import org.json.*;
import android.annotation.SuppressLint;
import android.app.*;
import android.os.*;
import android.webkit.*;
import android.content.*;
import android.net.*;
import android.util.*;
im... |
package axo.core.operators;
import java.util.LinkedList;
import java.util.Objects;
import java.util.Queue;
import java.util.Stack;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import axo.core.Action0;
import axo.core.Action1;
import axo.core.Operator;
import axo.core.StreamContext;
im... |
package org.perl6.nqp.sixmodel.reprs;
import java.util.concurrent.locks.ReentrantLock;
import org.perl6.nqp.runtime.ExceptionHandling;
import org.perl6.nqp.runtime.ThreadContext;
import org.perl6.nqp.sixmodel.REPR;
import org.perl6.nqp.sixmodel.STable;
import org.perl6.nqp.sixmodel.SerializationReader;
import org.perl6... |
package algorithms.tsp;
import algorithms.SubsetChooser;
import junit.framework.TestCase;
public class TSPDynamicOutlineTest extends TestCase {
public TSPDynamicOutlineTest() {
}
public void test0() {
//nP = C(n-1,k) for 1 fixed node
int n = 10;
int k = 3;
SubsetChooser choos... |
package br.com.daniel.jdbc.teste.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.junit.Assert;
import org.junit.Test;
import br.com.daniel.jdbc.conexao.Conexao;
import br.com.daniel.jdbc.dao.Dao;
public class DaoTest {
@Test
public void deveraRealizarUmSelect() throws SQLException{
... |
package com.alibaba.rocketmq.storm;
import com.alibaba.rocketmq.storm.hbase.HBaseClient;
import com.alibaba.rocketmq.storm.hbase.exception.HBasePersistenceException;
import com.alibaba.rocketmq.storm.model.HBaseData;
import org.junit.Test;
import java.util.Calendar;
import java.util.List;
public class HBaseTest {
@... |
package com.auth0.client.mgmt;
import com.auth0.json.mgmt.jobs.Job;
import com.auth0.net.Request;
import okhttp3.mockwebserver.RecordedRequest;
import org.junit.Test;
import java.util.Map;
import static com.auth0.client.MockServer.*;
import static com.auth0.client.RecordedRequestMatcher.hasHeader;
import static com.aut... |
package sh.echo.decisionmaker.fragments;
import sh.echo.decisionmaker.ProgramManager;
import sh.echo.decisionmaker.R;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.suppor... |
package com.datdo.mobilib.base;
import android.support.v4.app.Fragment;
import com.datdo.mobilib.event.MblEventCenter;
import com.datdo.mobilib.event.MblEventListener;
import com.datdo.mobilib.util.MblUtils;
public class MblBaseFragment extends Fragment {
@Override
public void onDestroyView() {
if (this... |
package com.hearthsim.test.heroes;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import com.hearthsim.card.Card;
import com.hearthsim.card.D... |
package com.ltsllc.miranda.miranda;
import com.ltsllc.miranda.Message;
import com.ltsllc.miranda.Panic;
import com.ltsllc.miranda.StartupPanic;
import com.ltsllc.miranda.test.TestCase;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Matchers;
import java.util.concurrent.BlockingQueue;
import static o... |
package com.programmaticallyspeaking.tinyws;
import com.programmaticallyspeaking.tinyws.Server.WebSocketHandler;
import org.java_websocket.drafts.Draft;
import org.java_websocket.drafts.Draft_17;
import org.java_websocket.framing.Framedata;
import org.java_websocket.handshake.ServerHandshake;
import org.testng.annotati... |
package com.tastymonster.automation.codegen;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import jav... |
package io.github.classgraph.issues.issue260;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import io.github.classgraph.ClassGraph;
import io.github.classgraph.ScanResult;
public class Issue260Test {
@Test
public void issue260Test() {
try (ScanResult scanResult = new C... |
package javax.time.calendar.format;
import static org.testng.Assert.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier;
import java.util.Collections;
import javax.time.calendar.CalendricalProvider;
import javax.time.calendar.ISOChronology;
import javax.time.calendar.LocalDateTime;
import javax.t... |
package net.imagej.ops.threshold.apply;
import static org.junit.Assert.assertEquals;
import net.imagej.ops.AbstractOpTest;
import net.imagej.ops.threshold.LocalThresholdMethod;
import net.imagej.ops.threshold.ThresholdNamespace;
import net.imagej.ops.threshold.localBernsen.LocalBernsenThreshold;
import net.imagej.ops.t... |
package functionaltests.workflow;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.junit.Assert;
import org.ow2.proactive.scheduler.common.Scheduler;
import org.ow2.proactive.scheduler.common.job.Job;
import or... |
package soot.jimple.infoflow.problems;
import heros.FlowFunction;
import heros.FlowFunctions;
import heros.flowfunc.Identity;
import heros.flowfunc.KillAll;
import heros.solver.PathEdge;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import soot.ArrayType;
imp... |
package com.akiban.ais.util;
import com.akiban.ais.model.AkibanInformationSchema;
import com.akiban.ais.model.CharsetAndCollation;
import com.akiban.ais.model.Index;
import com.akiban.ais.model.IndexName;
import com.akiban.ais.model.TableName;
import com.akiban.ais.model.UserTable;
import com.akiban.ais.model.aisb2.AIS... |
package com.blogspot.geekabyte.krawkraw;
import com.blogspot.geekabyte.krawkraw.interfaces.KrawlerAction;
import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.AbstractHandler;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.junit.*;... |
package com.boundary.sdk.event;
import com.boundary.sdk.RawEvent;
import static org.junit.Assert.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.net.URL;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
i... |
package com.conveyal.gtfs.loader;
import com.conveyal.gtfs.TestUtils;
import com.conveyal.gtfs.util.CalendarDTO;
import com.conveyal.gtfs.util.FareDTO;
import com.conveyal.gtfs.util.FareRuleDTO;
import com.conveyal.gtfs.util.FeedInfoDTO;
import com.conveyal.gtfs.util.FrequencyDTO;
import com.conveyal.gtfs.util.InvalidN... |
package baseCode.bio.geneset;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import junit.framework.TestCase;
public class TestGeneAnnotations extends TestCase {
InputStream is;
/*
* @see TestCase#setUp()
*/
protected void setUp() throw... |
package com.datalogics.pdf.hsm.samples;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import com.adobe.pdfjt.core.credentials.PrivateKeyHolder;
import com.adobe.pdfjt.core.credentials.PrivateKeyHolderFactory;
import com.adobe.pdfjt.core.credentials.impl.ByteArrayKeyHolder;
impo... |
package com.github.nkzawa.engineio.client;
import org.junit.After;
import org.junit.Before;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.concurrent.*;
public abstract class Connection {
final static int TIMEOUT = 10000;
final static int PORT = 300... |
package com.github.sebhoss.units.storage;
import java.math.BigInteger;
import com.github.sebhoss.nullanalysis.Nullsafe;
import com.github.sebhoss.warnings.CompilerWarnings;
import org.junit.Assert;
import org.junit.Test;
/**
* Tests for Exabytes.
*/
@SuppressWarnings({ CompilerWarnings.NLS, CompilerWarnings.STATIC_ME... |
package com.github.wz2cool.dynamic;
import com.github.pagehelper.PageRowBounds;
import com.github.wz2cool.dynamic.mybatis.db.mapper.UserDao;
import com.github.wz2cool.dynamic.mybatis.db.model.entity.table.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.A... |
package com.pm.server.controller;
import static org.hamcrest.Matchers.hasSize;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
import static org.sprin... |
package org.jasig.portal.channels.portlet;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import javax.portlet.PortletMode;
import javax.portlet.PortletR... |
package org.jfree.chart.urls;
import java.io.Serializable;
import org.jfree.data.category.CategoryDataset;
import org.jfree.util.ObjectUtilities;
/**
* A URL generator that can be assigned to a
* {@link org.jfree.chart.renderer.category.CategoryItemRenderer}.
*/
public class StandardCategoryURLGenerator implements C... |
package com.cibuddy.hid.impl;
import com.codeminders.hidapi.HIDManager;
import java.util.Timer;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* "Mirko Jahn" <mirkojahn@gmail.com>
* @version 1.0
*/
public class Activ... |
package com.malhartech.stream;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.KryoException;
import com.esotericsoftware.kryo.io.Output;
import com.malhartech.api.Sink;
import com.malhartech.bufferserver.packet.*;
import com.malhartech.engine.Stream;
import com.malhartech.engine.StreamContext;
... |
package com.datatorrent.stram;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import junit.framework.Assert;
import org.apache.hadoop.yarn.api.records.NodeReport;
import org.apache.hadoop.yarn.api.records.NodeState;
import org.apache.hadoop.yar... |
package VASSAL.counters;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Point... |
package som.metascience.metrics;
import org.gephi.data.attributes.api.AttributeColumn;
import org.gephi.data.attributes.api.AttributeController;
import org.gephi.data.attributes.api.AttributeModel;
import org.gephi.data.attributes.api.AttributeTable;
import org.gephi.graph.api.*;
import org.gephi.io.importer.api.Contai... |
package com.silverpeas.jcrutil;
import java.util.Calendar;
import java.util.Random;
import org.apache.commons.lang.RandomStringUtils;
public class RandomGenerator {
protected static final String[] LANGUAGES = new String[] { "fr", "en", "de",
"ru", "cn", "se" };
protected static final Random random = new Rando... |
package dwarf.graphics;
import dwarf.util.Vector2;
import java.util.Objects;
import static dwarf.util.math.TWO_PI;
import static dwarf.util.math.sqr;
import static java.lang.Math.PI;
import static dwarf.graphics.draw.SHAPE_CIRCLE;
public class Circle extends Shape {
private double radius;
public Circle(double r... |
package cs437.som.learningrate;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
public class HyperbolicLearningRateFunctionTest {
private static final double MAXIMUM_DIFFERENCE = 0.000000000000000... |
package eg.utils;
import java.awt.Dimension;
import java.awt.Toolkit;
/**
* Static constants and methods to obtain quantities that depend on the
* screen size and resolution
*/
public class ScreenParams {
private final static boolean IS_WINDOWS
= System.getProperty("os.name").toLowerCase().contains("win"... |
package com.cloudera.impala.catalog;
import static com.cloudera.impala.thrift.ImpalaInternalServiceConstants.DEFAULT_PARTITION_ID;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.... |
package com.cordovaplugincamerapreview;
import android.Manifest;
import android.content.pm.PackageManager;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.hardware.Camera;
import android.util.DisplayMetrics;
import android.util.Log;
import android.util.TypedValue;
import andro... |
package me.schickling.ibeacon;
import org.apache.cordova.*;
import com.radiusnetworks.ibeacon.*;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.RemoteException;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
... |
package edu.mtholyoke.cs341bd.writr;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* @author jfoley
*/
public class UtilTest {
@Test
public void testJoin() {
String[] data = new String[] {"the", "quick", "brown", "fox"};
assertEquals("the quick brown fox", Util.join(data));
a... |
package hudson.plugins.ec2;
import com.amazonaws.services.ec2.AmazonEC2;
import com.amazonaws.services.ec2.model.AmazonEC2Exception;
import com.amazonaws.services.ec2.model.DescribeImagesRequest;
import com.amazonaws.services.ec2.model.DescribeImagesResult;
import com.amazonaws.services.ec2.model.DescribeInstancesReque... |
package org.cactoos.iterator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.NoSuchElementException;
import org.cactoos.list.ListOf;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Test;
/**
* Test case for {@link Partitioned}.
*
... |
package org.mvel.tests.main;
import junit.framework.TestCase;
import org.mvel.ExpressionCompiler;
import org.mvel.MVEL;
import org.mvel.debug.DebugTools;
import org.mvel.tests.main.res.Bar;
import org.mvel.tests.main.res.Base;
import org.mvel.tests.main.res.DerivedClass;
import org.mvel.tests.main.res.Foo;
import java.... |
package se.kits.gakusei.test_tools;
import se.kits.gakusei.content.model.Course;
import se.kits.gakusei.content.model.Fact;
import se.kits.gakusei.content.model.Lesson;
import se.kits.gakusei.content.model.Nugget;
import java.util.*;
public class TestTools {
public static List<Nugget> generateNuggets() {
Li... |
package seedu.manager.logic;
import com.google.common.eventbus.Subscribe;
import seedu.manager.commons.core.EventsCenter;
import seedu.manager.commons.events.model.TaskManagerChangedEvent;
import seedu.manager.commons.events.ui.JumpToListRequestEvent;
import seedu.manager.commons.events.ui.ShowHelpRequestEvent;
import ... |
package org.apache.lucene;
import java.io.IOException;
import java.util.Date;
import java.util.GregorianCalendar;
import org.apache.lucene.store.*;
import org.apache.lucene.document.*;
import org.apache.lucene.analysis.*;
import org.apache.lucene.index.*;
import org.apache.lucene.search.*;
import org.apache.lucene.quer... |
package us.kbase.typedobj.tests;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.URISyntaxException;
import java.net.UR... |
package timber.lint;
import com.android.annotations.NonNull;
import com.android.annotations.Nullable;
import com.android.tools.lint.checks.StringFormatDetector;
import com.android.tools.lint.client.api.JavaParser;
import com.android.tools.lint.detector.api.Category;
import com.android.tools.lint.detector.api.ClassConte... |
package timber.lint;
import com.android.annotations.NonNull;
import com.android.annotations.Nullable;
import com.android.tools.lint.checks.StringFormatDetector;
import com.android.tools.lint.client.api.JavaParser;
import com.android.tools.lint.detector.api.Category;
import com.android.tools.lint.detector.api.ClassConte... |
package org.bouncycastle.jsse.provider;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLEngineResult;
import javax.net.ssl.SSLEngineResult.HandshakeStatus;
import ja... |
package org.bouncycastle.jsse.provider;
import java.io.IOException;
import java.net.Socket;
import java.security.Principal;
import java.security.PrivateKey;
import java.security.cert.X509Certificate;
import java.util.Collection;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Set;
import java.uti... |
package ontology;
import java.io.File;
import java.net.URI;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.Vector;
import org.semanticweb.owlapi.apibinding.OWLManager;
import org.semanticweb.owlapi.model.AxiomType;
import org.semanticweb.owlapi.mode... |
// Revision 1.1 1999-01-31 13:33:08+00 sm11td
// Initial revision
package Debrief.Wrappers;
import java.awt.Color;
import java.awt.Font;
import java.awt.Point;
import java.beans.IntrospectionException;
import java.beans.MethodDescriptor;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;... |
// Revision 1.1 1999-01-31 13:33:08+00 sm11td
// Initial revision
package Debrief.Wrappers;
import java.awt.Color;
import java.awt.Font;
import java.awt.Point;
import java.beans.IntrospectionException;
import java.beans.MethodDescriptor;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;... |
package org.broad.igv.ui;
import com.jidesoft.plaf.LookAndFeelFactory;
import htsjdk.samtools.seekablestream.SeekableStreamFactory;
import jargs.gnu.CmdLineParser;
import org.apache.log4j.Logger;
import org.broad.igv.DirectoryManager;
import org.broad.igv.Globals;
import org.broad.igv.prefs.IGVPreferences;
import org.b... |
package fourmiz.abillity;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.newdawn.slick.geom.Shape;
import fourmiz.collision.Entity;
import fourmiz.engine.Abillity;
import fourmiz.touch.marker.LifeMarker;
public class Life extends Abillity{
private static Logger log=Lo... |
package com.coillighting.udder.scene;
import com.coillighting.udder.effect.woven.WovenEffect;
import com.coillighting.udder.geometry.Interpolator;
import com.coillighting.udder.mix.StatefulAnimator;
import com.coillighting.udder.mix.Layer;
import com.coillighting.udder.mix.Mixer;
import com.coillighting.udder.mix.TimeP... |
// $Id: Util.java,v 1.40 2005/06/03 07:44:23 belaban Exp $
package org.jgroups.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jgroups.*;
import org.jgroups.protocols.FD;
import org.jgroups.protocols.PingHeader;
import org.jgroups.protocols.UdpHeader;
import org.jgr... |
package com.coillighting.udder.scene;
import com.coillighting.udder.effect.woven.WovenEffect;
import com.coillighting.udder.geometry.Interpolator;
import com.coillighting.udder.mix.StatefulAnimator;
import com.coillighting.udder.mix.Layer;
import com.coillighting.udder.mix.Mixer;
import com.coillighting.udder.mix.TimeP... |
package org.jgroups.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jgroups.*;
import org.jgroups.auth.AuthToken;
import org.jgroups.blocks.Connection;
import org.jgroups.conf.ClassConfigurator;
import org.jgroups.protocols.FD;
import org.jgroups.protocols.PingHeade... |
package org.peg4d;
import org.peg4d.MemoMap.ObjectMemo;
public abstract class PExpression {
public final static int CyclicRule = 1;
public final static int HasNonTerminal = 1 << 1;
public final static int HasString = 1 << 2;
public final static int HasCharacter = 1 << 3;
public... |
package info.tregmine.gamemagic;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.util.TimeZone;
import java.util.logging.Logger;
i... |
package org.spine3.time;
import java.util.Calendar;
import static com.google.common.base.Preconditions.checkNotNull;
import static java.util.Calendar.DAY_OF_MONTH;
import static java.util.Calendar.HOUR;
import static java.util.Calendar.MILLISECOND;
import static java.util.Calendar.MINUTE;
import static java.util.Calend... |
package VASSAL.build.module;
import VASSAL.tools.ProblemDialog;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.event.KeyEvent;
import java.io.IOException;
import java.net.U... |
package VASSAL.build.module;
import VASSAL.Info;
import VASSAL.build.GameModule;
import VASSAL.build.module.properties.MutableProperty;
import VASSAL.command.Logger;
import VASSAL.tools.BugUtils;
import VASSAL.tools.SequenceEncoder;
import org.slf4j.LoggerFactory;
import java.awt.Desktop;
import java.io.File;
import ja... |
package net.bytebuddy.asm;
import net.bytebuddy.ClassFileVersion;
import net.bytebuddy.description.annotation.AnnotationDescription;
import net.bytebuddy.description.field.FieldDescription;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.description.method.MethodList;
import net.bytebudd... |
package com.annimon.ownlang.parser.ast;
import com.annimon.ownlang.exceptions.OperationIsNotSupportedException;
import com.annimon.ownlang.lib.NumberValue;
import com.annimon.ownlang.lib.Types;
import com.annimon.ownlang.lib.Value;
/**
*
* @author aNNiMON
*/
public final class ConditionalExpression implements Expres... |
package com.splicemachine.job;
import com.google.common.base.Throwables;
import com.splicemachine.derby.stats.TaskStats;
import com.splicemachine.derby.utils.Exceptions;
import org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException;
import org.apache.hadoop.hbase.client.Row;
import java.io.*;
import java.u... |
package th.ac.kmitl.ce.ooad;
public class Plan {
public String cloudProv, vmIP;
public String cpu, mem, network;
public String storage;
public float monthlyRate;
} |
package com.wizzardo.tools.collections.flow;
import org.junit.Assert;
import org.junit.Test;
import java.util.*;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicInteger;
public class FlowTest {
@Test
public void test_grouping_1() {
List<List<Integer>> result = Flow.of(1, ... |
package com.esotericsoftware.kryo.serializers;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arr... |
package ch.unibas.cs.dbis.cineast.core.util;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import boofcv.abst.distort.FDistort;
import boofcv.alg.filter.binary.BinaryImageOps;
import boofcv.alg.filter.binary.Contour;
i... |
package de.zalando.aruha.nakadi.domain;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.zalando.aruha.nakadi.config.JsonConfig;
import org.junit.Test;
import static de.zalando.aruha.nakadi.utils.TestUtils.resourceAsString;
import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assert.as... |
package controls.sunburst;
import javafx.geometry.Pos;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import java.util.ArrayList;
import java.util.List;
public class SunburstLegend extends VBox {
private SunburstView<?> sunburstView;
private List<LegendItem> legendItems = new ArrayList<>();
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ch.unizh.ini.jaer.projects.labyrinth;
import com.kitfox.svg.*;
import com.kitfox.svg.SVGUniverse;
import java.awt.Shape;
import java.awt.geom.*;
import java.io.*;
import java.net.MalformedURLException;
import jav... |
package cli;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.Form;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;... |
package org.smoothbuild.acceptance.lang;
import static com.google.common.truth.Truth.assertThat;
import static org.smoothbuild.testing.BooleanCreators.falseByteString;
import static org.smoothbuild.testing.BooleanCreators.trueByteString;
import static org.smoothbuild.util.Lists.list;
import java.io.IOException;
import ... |
package com.namelessmc.NamelessAPI.utils;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
import com.googl... |
package com.peterverzijl.softwaresystems.qwirkle.tui;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.uti... |
package org.apache.hadoop.hbase.hbql;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import org.apache.hadoop.hbase.hbql.client.HBqlException;
import org.apache.hadoop.hbase.hbql.query.object.client.ObjectQuery;
import org.apache.hadoop.hbase.hbql.query.object.client.ObjectQueryList... |
package dyvil.tools.compiler.ast.expression;
import dyvil.reflect.Opcodes;
import dyvil.tools.compiler.ast.annotation.IAnnotation;
import dyvil.tools.compiler.ast.context.IContext;
import dyvil.tools.compiler.ast.generic.ITypeContext;
import dyvil.tools.compiler.ast.parameter.ArgumentList;
import dyvil.tools.compiler.a... |
package VASSAL.configure;
import java.awt.Component;
import java.awt.Dimension;
import javax.swing.Box;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
/**
* A Configurer that returns a String from among a list of possible values
*/
public c... |
package io.strimzi.systemtest.log;
import io.fabric8.kubernetes.api.model.Container;
import io.fabric8.kubernetes.api.model.EnvVar;
import io.fabric8.kubernetes.api.model.Pod;
import io.strimzi.api.kafka.model.JvmOptions;
import io.strimzi.api.kafka.model.KafkaBridgeResources;
import io.strimzi.api.kafka.model.KafkaCon... |
package org.jboss.as.web;
import java.util.List;
import java.util.Locale;
import org.jboss.as.controller.AbstractAddStepHandler;
import org.jboss.as.controller.OperationContext;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.controller.PathAddress;
import org.jboss.as.controller.ServiceVer... |
package baseCode.xml;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.DefaultHandler... |
package lombok.core.configuration;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.net.URI;
import java.util.Collections;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.... |
package de.mrunde.bachelorthesis.instructions;
import de.mrunde.bachelorthesis.basics.Maneuver;
/**
* This is a now instruction.
*
* @author Marius Runde
*/
public class NowInstruction extends Instruction {
/**
* Constructor of the LandmarkInstruction class
*
* @param instruction
* ... |
package org.jdesktop.swingx.renderer;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.ut... |
package dr.inference.operators;
import java.util.ArrayList;
import java.util.List;
import dr.inference.model.Bounds;
import dr.inference.model.Parameter;
import dr.inferencexml.operators.RandomWalkOperatorParser;
import dr.math.MathUtils;
import dr.util.Transform;
/**
* A random walk operator that takes a (list of) pa... |
package edu.bath.transitivityutils;
import com.google.common.base.Function;
import com.google.common.base.Objects;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Iterators;
import com.google.common.collect.Maps;
import com.google.common.collect.SetMultimap;
import java.io.IOException;
i... |
package edu.iu.grid.oim.model.db;
import java.io.IOException;
import java.io.PrintWriter;
import java.security.cert.Certificate;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import jav... |
package nl.b3p.viewer.admin;
import java.io.File;
import java.net.URI;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.apache.commons.io.FileUtils;... |
package edu.iu.grid.oim.model.db;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.security.cert.Certificate;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.sql.Connection;
import java.sql.PreparedStatement;
import j... |
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// all copies or substantial... |
package flow.netbeans.markdown.options;
import java.util.prefs.Preferences;
import org.openide.util.NbPreferences;
import org.pegdown.Extensions;
public final class MarkdownGlobalOptions {
private static final MarkdownGlobalOptions INSTANCE = new MarkdownGlobalOptions();
private static final String SMARTS = "SM... |
package ru.job4j.condition;
/**
* Class Triangle.
* @author Yury Vlasov
* @since 13.04.2017
* @version 1.0
*/
public class Triangle {
private Point a;
private Point b;
private Point c;
public Triangle(Point a, Point b, Point c) {
this.a = a;
this.b = b;
this.c = c;
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.