answer stringlengths 17 10.2M |
|---|
package org.cojen.tupl.repl;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.io.File;
import java.io.InputStream;
import java.io.InterruptedIOException;
import java.io.IOException;
import java.io.OutputStream;
import java.net.ConnectException;
import java.net.ServerSocket;
import j... |
package org.cojen.tupl.rows;
import java.lang.invoke.CallSite;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.lang.ref.WeakReference;
import java.util.Collection;
import java.util.Map;
import org.cojen.maker.ClassMaker;
import org.cojen.maker... |
package org.ehcache.service;
import org.ehcache.core.internal.service.ServiceLocator;
import org.ehcache.management.ManagementRegistryService;
import org.ehcache.repository.SomeRepository;
import org.springframework.stereotype.Service;
import org.terracotta.management.model.context.Context;
import org.terracotta.manage... |
package org.ftcTeam.opmodes;
import org.ftcTeam.opmodes.registrar1.AirAndScareMecanumOpMode;
import org.ftcTeam.opmodes.registrar1.AutonomousBlues;
import org.ftcTeam.opmodes.registrar1.AutonomousCopy;
import org.ftcTeam.opmodes.registrar1.AutonomousFirstTry;
import org.ftcTeam.opmodes.registrar1.AutonomousRedDistanceS... |
package org.jfree.chart.text;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.jfree.chart.ui.HorizontalAlignment;
impo... |
package org.lantern;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet... |
package org.lantern;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.URI;
import java.net.URISyntaxException;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmExc... |
package org.lightmare.jndi;
import java.io.IOException;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.naming.spi.InitialContextFactory;
import org.apache.log4j.Logger;
import org.lightmare.utils.CollectionUtils;
import org... |
package org.mitre.synthea.engine;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.... |
package org.myrobotlab.service;
import java.io.File;
import java.io.IOException;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.TreeSet;
import org.apache.commons.io.FilenameUtils;
import org.myrobotlab.framework.Service;
... |
package org.openforis.ceo;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Date;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.servlet.MultipartConfigElement;
imp... |
package org.voovan.tools.json;
import org.voovan.tools.TObject;
import org.voovan.tools.TReflect;
import org.voovan.tools.TString;
import org.voovan.tools.log.Logger;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class JSONPath... |
package org.xbill.DNS;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.... |
package sb.tasks.jobs.trupd;
import com.jcabi.http.request.JdkRequest;
import com.jcabi.http.response.JsoupResponse;
import com.jcabi.http.response.XmlResponse;
import com.jcabi.http.wire.CookieOptimizingWire;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import sb.tasks.jobs.... |
package scrum.client.common;
import java.util.HashMap;
import java.util.Map;
import scrum.client.Dao;
import scrum.client.ScrumGwtApplication;
/**
* Base class for entities.
*/
public abstract class AGwtEntity {
private String id;
private boolean inCreation;
public abstract String getEntityType();
pub... |
package sds.decompile;
import sds.assemble.BaseContent;
import sds.assemble.LineInstructions;
import sds.assemble.MethodContent;
import sds.assemble.controlflow.CFNode;
import sds.classfile.bytecode.CpRefOpcode;
import sds.classfile.bytecode.Iinc;
import sds.classfile.bytecode.IndexOpcode;
import sds.classfile.bytecode... |
package seedu.todo.storage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.LinkedList;
import org.bitbucket.cowwoc.diffmatchpatch.DiffMatchPatch;
import org.bitbucket.cowwoc.diffmatchpatch.DiffMatchPatch.Patch;
import com.fasterxml.jackson.core.Jso... |
package similarquestions;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import j... |
package sklearn2pmml.decoration;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.dmg.pmml.Counts;
import org.dmg.pmml.DataField;
import org.dmg.pmml.FieldName;
import org.dmg.pmml.InvalidValueTreatmentMethod;
import org.d... |
package tutorial.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.seasar.extension.jdbc.JdbcManager;
import org.seasar.framework.beans.util.Beans;
import org.seasar.struts.annotation.Execute;
import org.seasar.struts.annotation.IntegerType;
import org.seasar.struts.annotation.Requ... |
package vg.civcraft.mc.citadel;
import java.util.logging.Logger;
import org.bukkit.Bukkit;
import org.bukkit.event.HandlerList;
import vg.civcraft.mc.citadel.listener.BlockListener;
import vg.civcraft.mc.citadel.listener.EntityListener;
import vg.civcraft.mc.citadel.listener.ModeListener;
import vg.civcraft.mc.citadel.... |
package com.atlassian.sal.api.license;
public interface LicenseHandler
{
void setLicense(String license);
/**
* Gets the server ID of the currently running application. The server ID format is four quadruples of
* alphanumeric characters, each separated by a dash (<tt>-</tt>).
*
* @return t... |
package com.alibaba.otter.canal.common;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import com.alibaba.otter.canal.filter.aviater.AviaterRege... |
package fgis.server.support.geojson;
import java.io.ByteArrayOutputStream;
import java.io.StringReader;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.HashMap;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonReader;
import javax.json.JsonStructure;
import javax.js... |
package fgis.server.support.geojson;
import java.io.ByteArrayOutputStream;
import java.io.StringReader;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.HashMap;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonReader;
import javax.json.JsonStructure;
import javax.js... |
package io.spine.system.server;
import io.spine.server.DefaultRepository;
import io.spine.system.server.given.diagnostics.ValidatedAggregate;
import io.spine.system.server.given.diagnostics.ViolationsWatch;
import io.spine.system.server.test.InvalidText;
import io.spine.system.server.test.ValidateAndSet;
import io.spin... |
package org.elasticsearch.index.shard;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.lucene.index.CorruptIndexException;
import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.IndexFormatTooNewExceptio... |
package com.shc.silenceengine.input;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Sri Harsha Chilakapati
*/
public final class Controller
{
public static final int CONTROLLER_0 = 0;
public static final int CONTROLLER_1 = 1;
public s... |
package com.exedio.cope.instrument;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Writer;
import java.lang.reflect.Modifier;
import java.text.MessageFormat;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.u... |
package com.exedio.cope.instrument;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.lang.reflect.Modifier;
import java.te... |
package com.exedio.cope.instrument;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import bsh.EvalError;
import bsh.Interpreter;
import bsh.Primitive;
import bsh.UtilEvalError;
/**
* Represents a class parsed by the java par... |
package org.intermine.web;
import java.io.Reader;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.Map;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import jav... |
package org.intermine.util;
import java.text.MessageFormat;
import java.util.Map;
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.... |
package me.tatarka.ipromise;
import java.util.Arrays;
import java.util.concurrent.Executor;
import jdk.nashorn.internal.codegen.CompilerConstants;
import me.tatarka.ipromise.buffer.PromiseBuffer;
import me.tatarka.ipromise.buffer.PromiseBuffers;
/**
* A {@code Deferred} is the producer end of a {@link Promise}. An asy... |
/**
* For storing and syncing entities with Simperium. To create a bucket you use
* the Simperium.bucket instance method:
*
* // Initialize simperium
* Simperium simperium = new Simperium(...);
* Bucket notesBucket = simperium.bucket("notes", Note.class);
*
* Simperium creates a Bucket instance that is... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// * Neither the name of the <organization> nor the
// names of its contributors may be used to endorse or promote products
// ANY EXPRESS OR IMPLIED WARRAN... |
package nars.operator.mental;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import nars.core.EventEmitter.EventObserver;
import nars.core.Events;
import nars.core.Events.CycleEnd;
import nars.core.Memory... |
package net.acomputerdog.BlazeLoader.main;
/**
* Contains methods for obtaining information about the installed version of BlazeLoader.
* -MUST remain backward compatible!-
*/
public final class Version {
/**
* Gets the global version of BlazeLoader. A change here will RESET the status of the other two upd... |
package net.acomputerdog.BlazeLoader.main;
/**
* Contains methods for obtaining information about the installed version of BlazeLoader.
* -MUST remain backward compatible!-
*/
public class Version {
/**
* Gets the global version of BlazeLoader. A change here will RESET the status of the other two update co... |
package jasy.lang.ast;
import jasy.lang.ASMCompiler;
import jasy.lang.ASMCompiler.Region;
import jasy.lang.ClassResolver;
import jasy.lang.SingleClassLoader;
import jasy.runtime.asm.CommonClassTransformer;
import jasy.runtime.asm.CompositeTransformer;
import jasy.runtime.asm.IfAllTransformer;
import java.io.PrintWriter... |
package net.zephyrizing.http_server_test.integration;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import net.zephyrizing.http_server.HttpServer;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Asser... |
/**
* @author <a href="mailto:novotny@aei.mpg.de">Jason Novotny</a>
* @version $Id$
*/
package org.gridlab.gridsphere.portlet.impl;
import java.util.Properties;
import java.io.InputStream;
import java.io.IOException;
/**
* <code>SportletProperties</code> conatins all the "hidden" variable names
* that get transmit... |
package org.objectweb.proactive.examples.nbody.barneshut;
/**
* Class implementing physical gravitation force between bodies.
* In this Barnes-Hut package, building a force may yield an exception
* if the info has a too big diameter.
*/
import java.io.Serializable;
public class Force implements Serializable {
/... |
package org.owasp.esapi.reference;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Properti... |
package org.pentaho.reporting.platform.plugin.output;
import java.io.IOException;
import java.io.OutputStream;
import org.pentaho.reporting.engine.classic.core.MasterReport;
import org.pentaho.reporting.engine.classic.core.ReportProcessingException;
import org.pentaho.reporting.engine.classic.core.layout.output.YieldRe... |
package org.teachingkidsprogramming.section08tdd;
import java.awt.Cursor;
import org.junit.Assert;
import org.junit.Test;
import org.teachingextensions.logo.Tortoise;
//This deepdive is in progress!
public class DeepDive08TDD
{
// How to do deep dive:
// Step 1: Select the method name (stringsCanBeArrays on line ... |
package com.avairebot.language;
import com.avairebot.BaseTest;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.opentest4j.AssertionFailedError;
import java.util.Set;
import static org.junit.jupiter.api.Assertions.*;
public class LanguageTests extends BaseTest {
@BeforeAll
p... |
package org.usfirst.frc.team4795.robot.subsystems;
import org.usfirst.frc.team4795.robot.RobotMap;
import edu.wpi.first.wpilibj.CANJaguar;
import edu.wpi.first.wpilibj.CANJaguar.JaguarControlMode;
import edu.wpi.first.wpilibj.command.Subsystem;
public class ActiveIntake extends Subsystem {
CANJaguar arm;
CANJag... |
package com.couchbase.jdbc;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org... |
package org.usfirst.frc.team6706.robot.commands;
import edu.wpi.first.wpilibj.command.CommandGroup;
public class MyAutoCommand1 extends CommandGroup {
public MyAutoCommand1() {
// Add Commands here:
addSequential(new GyroDriveCommand(0.646, 0.605), 1); //2.47m
addSequential(new GyroDriveCom... |
package org.usfirst.frc.team997.robot.commands;
import org.usfirst.frc.team997.robot.Robot;
import org.usfirst.frc.team997.robot.DistanceEncoder;
import edu.wpi.first.wpilibj.PIDController;
import edu.wpi.first.wpilibj.PIDOutput;
import edu.wpi.first.wpilibj.PIDSource;
import edu.wpi.first.wpilibj.command.Command;
impo... |
/*
* @author max
*/
package com.jetbrains.python;
import com.intellij.openapi.application.Result;
import com.intellij.openapi.command.WriteCommandAction;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
impor... |
package com.levelup.java.date;
import static org.junit.Assert.assertEquals;
import java.time.LocalDate;
import java.time.temporal.ChronoField;
import java.time.temporal.TemporalAccessor;
import java.time.temporal.TemporalQuery;
import java.util.Calendar;
import org.junit.Test;
public class CurrentQuarter {
@Test
... |
package com.springapp.batch;
import com.springapp.batch.bo.Person;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.mock;
import static org... |
package edu.jhu.pacaya.autodiff;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Random;
import java.util.Set;
import org.... |
package net.spy.memcached;
import java.nio.ByteBuffer;
import net.spy.memcached.ops.Operation;
import net.spy.memcached.ops.OperationCallback;
import net.spy.memcached.ops.OperationStatus;
import net.spy.memcached.protocol.ascii.ExtensibleOperationImpl;
/**
*
* @author Matt Ingenthron <ingenthr@cep.net>
*/
public cl... |
package org.rapidoid.dao;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
import org.rapidoid.plugins.Plugins;
import org.rapidoid.util.U;
/**
* @author Nikolche Mihajlovski
* @since 2.0.0
*/
public abstract class DAO<E> {
private final Class<E> clazz;
/**
... |
package edu.cmu.sphinx.util.props;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.*;
import java.util.logging.Logger;
/**
* Manages a set of <code>Configurable</code>s, their parametrization and the relationships between them. Configurations
* can be specified either by xml or ... |
package ch.bind.philib.cache.lru.newimpl;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class LruListTest {
@Test
public void autoRemoveTail() {
Node a = new Node(), b = new Node(), c = new Node();
LruList lru = new LruList(2);
assertNull(lru.add(a));
... |
package org.se.lab.db.dao;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.se.lab.db.data.*;
import java.util.Date;
import java.util.List;
public class EnumerationDAOTest extends AbstractDAOTest {
private static EnumerationDAOImpl dao = new EnumerationDAOI... |
package com.fs.xml2json.service;
import com.fs.xml2json.listener.IFileReadListener;
import com.fs.xml2json.type.UnsupportedFileType;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.stream.Stream;
import org.junit.After;
import st... |
package org.se.lab.db.dao;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.se.lab.db.data.User;
import org.se.lab.db.data.UserProfile;
import java.util.List;
public class UserProfileDAOTest extends AbstractDAOTest {
private User u;
private UserProfile ... |
package com.lowtuna.jsonblob.core;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.dropwizard.util.Duration;
import lombok.extern.java.Log;
import org.apache.commons.io.FileUtils;
import org.bson.types.ObjectId;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.junit.Before;
import org.ju... |
package com.lowtuna.jsonblob.core;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.dropwizard.util.Duration;
import lombok.extern.java.Log;
import org.apache.commons.io.FileUtils;
import org.bson.types.ObjectId;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.junit.Before;
import org.ju... |
package se.tla.mavenversionbumper;
import org.junit.Assert;
import org.junit.Test;
import se.tla.mavenversionbumper.vcs.VersionControl;
import java.io.File;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Unit tests for the Module class.
*/
public class ModuleTest {
@Test
public void testSimple() thro... |
package carpentersblocks.util.handler;
import net.minecraft.block.Block;
import net.minecraft.client.audio.SoundPoolEntry;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraftforge.client.event.sound.PlaySoundEvent;
import net.minecraft... |
package com.rultor.agents.daemons;
import com.jcabi.immutable.ArrayMap;
import com.jcabi.matchers.XhtmlMatchers;
import com.jcabi.xml.XMLDocument;
import com.rultor.agents.shells.Shell;
import com.rultor.agents.shells.Sshd;
import com.rultor.agents.shells.TalkShells;
import com.rultor.spi.Agent;
import com.rultor.spi.P... |
package fr.eurecom.hybris.test.ycsb;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import java.util.Vector;
import com.yahoo.ycsb.ByteArrayByteIterator;
import com.yahoo.ycsb.ByteIterator;
import com.... |
package tk.hintss.jbrainfuck;
import org.junit.Test;
import static org.junit.Assert.*;
public class InterpreterTest {
@Test
public void interpretert() {
Interpreter bfInter = new Interpreter(".");
bfInter.exec();
assertEquals(". outputs the current byte and getOutput() returns output", "... |
package mho.wheels.iterables;
import mho.wheels.math.BinaryFraction;
import mho.wheels.structures.*;
import mho.wheels.testing.Testing;
import org.jetbrains.annotations.NotNull;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.u... |
package tid.pce.server.management;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import jav... |
package org.concord.data.util;
public class FFT
{
private final static int DIM_FFT = 32;
private static float []sin_fft = null;
/*
private static float []sin_fft =
{
1.2246467991473532E-16f,1.0f,0.7071067811865476f,0.3826834323650898f,0.19509032201612828f,
0.0980171403295606f,0.04906... |
package traci.lang.interpreter.node;
import java.util.EnumSet;
import java.util.Set;
import org.antlr.runtime.Token;
import traci.lang.interpreter.Context;
import traci.lang.interpreter.TraciValue;
import traci.lang.interpreter.TraciValue.Type;
import traci.lang.interpreter.exceptions.FunctionReturnException;
import tr... |
package org.elasticsearch.river.hbase;
import mockit.Mock;
import mockit.MockUp;
import org.elasticsearch.client.Client;
import org.elasticsearch.river.AbstractRiverComponent;
import org.elasticsearch.river.RiverName;
import org.elasticsearch.river.RiverSettings;
import org.testng.Assert;
import org.testng.annotations.... |
package org.jbpm.migration.xsl;
import java.io.File;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
/**
* @author... |
package org.ice4j.stack;
import java.io.*;
import java.net.*;
import java.security.*;
import java.util.*;
import java.util.logging.*;
import javax.crypto.*;
import org.ice4j.*;
import org.ice4j.attribute.*;
import org.ice4j.message.*;
import org.ice4j.security.*;
/**
* The entry point to the Stun4J stack. The class is... |
package seedu.taskmanager.logic;
import static seedu.taskmanager.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import seedu.taskmanager.logic.commands.EditCommand;
import java.util.List;
import org.junit.Test;
import seedu.taskmanager.commons.core.Messages;
import seedu.taskmanager.logic.commands.EditCommand;
i... |
package org.nutz.json;
import java.io.IOException;
import java.io.Reader;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.nutz.lang.Lang;
/**
* jsonMap+List
*
* @author wendal
*
*/
public class JsonCompile {
private int cursor;
private Re... |
package org.owasp.esapi;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.text.DateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.u... |
package org.rubyspa.droidgol;
import android.util.Pair;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
public class Game {
private final Pair<Integer, Integer> dimensions;
private Map<Pair<Integer, Integer>, Boolean> state;
private Random random = new Random();
public Game(fina... |
package org.jdesktop.swingx.hyperlink;
import java.awt.Desktop;
import java.awt.GraphicsEnvironment;
import java.awt.event.ActionEvent;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.logging.Logger;
import javax.swing.Action;
import junit.framework.TestCase;
import org.jdesktop.test.PropertyC... |
package org.trident.packet;
import org.jboss.netty.buffer.ChannelBuffer;
/**
* The packet structure
* @author Ares_
*
*/
public class Packet {
/**
* The op code of the packet
*/
private final short opcode;
/**
* The type of a packet
*/
private PacketType type;
/**
* The ... |
package us.kbase.common.performance.sortjson;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class MeasureSortRunner {
final static int NUM_SORTS = 500;
final static int TIME_INTER... |
package ru.job4j.chat;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertTrue;
public class ChatTest... |
package com.cc.service.impl;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.Timer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commo... |
package org.bimserver;
import java.util.HashSet;
import java.util.Set;
import org.bimserver.database.DatabaseSession;
import org.bimserver.database.OldQuery;
import org.bimserver.database.migrations.InconsistentModelsException;
import org.bimserver.database.migrations.MigrationException;
import org.bimserver.emf.IdEObj... |
package imj2.tools;
import static java.lang.Math.pow;
import static java.lang.Math.round;
import static java.lang.Math.sqrt;
import static net.sourceforge.aprog.swing.SwingTools.horizontalBox;
import static net.sourceforge.aprog.swing.SwingTools.show;
import static net.sourceforge.aprog.tools.Tools.array;
import static... |
package pandemic.game.board;
import java.awt.Color;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Observable;
import javax.imageio.ImageIO;
import pandemic.game.OtherActions;
import pandemic.game.board.parts.Drugs;
import pandemic.ga... |
package persistencia;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import javax.swing.JFileChooser;
public class ArchivoBinario {
private File file;
private FileOutputStream fileOutputStream;
private FileInputStream fileInputStream;
pu... |
package org.freedesktop.wayland.util;
import com.sun.jna.Memory;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import org.freedesktop.wayland.HasNative;
import org.freedesktop.wayland.client.Proxy;
import org.freedesktop.wayland.server.Resource;
import org.freedesktop.wayland.util.jna.wl_argument;
import org.f... |
package com.tesora.dve.worker;
import com.tesora.dve.common.catalog.*;
import com.tesora.dve.concurrent.CompletionHandle;
import com.tesora.dve.concurrent.DelegatingCompletionHandle;
import com.tesora.dve.concurrent.PEDefaultPromise;
import com.tesora.dve.db.DBConnection;
import com.tesora.dve.db.GroupDispatch;
import ... |
package project;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class DatabaseConnector {
private static Connection conn;
private static Statement stat;
private static ResultSet rs;
private static final String DATABASE_URL = "jdbc:... |
package com.lue.server;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.lue.client.tests.SleepTestParameters;
import com.lue.common.Schedule;
import com.lue.common.Schedule.ScheduleElem... |
package com.example.rollingball.app;
import com.hackoeur.jglm.Vec3;
import java.util.ArrayList;
import java.util.InputMismatchException;
import java.util.LinkedList;
public class Scene implements IUpdatable, IDrawable
{
public LinkedList<GameObject> game_objects;
public Camera camera;
public InputManager input_ma... |
/**
* When you make a task, you add it to this.
* When you need an already made task, you get it from this.
*
* When tasks are added or removed from this storage object,
* it does not guarantee synchronousness with other storage
* sources. It's just an object.
*
* @author gatchi (github.com/gatchi)
*/
class ... |
package com.mychess.mychess;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import org.k... |
package com.txt_nifty.sketch.flmml;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
public class MTrack {
public static final int TEMPO_TRACK = 0;
public static final int FIRST_TRACK = 1;
public static final int DEFAULT_BPM = 120;
public int mSignalInterval;
pr... |
package derpibooru.derpy.ui;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.eng... |
package io.vehiclehistory.api.model;
import java.io.Serializable;
public class Event implements Serializable {
private EventType type;
private String createdAt;
private String expireAt;
private Boolean firstOwner;
private String note;
private OwnerType ownerType;
private Location location;
... |
package lt.vilnius.tvarkau.entity;
import android.content.Context;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import lt.vilnius.tvarkau.utils.SharedPrefsManager... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.